Math

Display math, and inline math that cannot be captured using text formatting elements (<sub>, <sup>, <italic>, etc.), should be captured as both .gif images and MathML. If (La)TeX is used to typeset math the (La)TeX code should also be captured in the XML. The <alternatives> element should be used to enclose all equivalent versions.

.gif images
Images for math should be provided as .gif images with a maximum width of 660 pixels. Images for inline math should be referenced in the XML using the <inline-graphic> element with the file name captured in the xlink:href attribute. See the file naming convention for instructions on how to name image files, and see the Image File Guidelines for information on image file formats.
<graphic xlink:href="TMPH_A_770175_M0007.gif"/>
<inline-graphic xlink:href="CFAI_A_629314_ILM0001.gif"/>
MathML
MathML should be tagged using mml as the namespace prefix. The MathML namespace http://www.w3.org/1998/Math/MathML may be defined either on the <article> root element or on the <mml:math> element. TF JATS uses MathML version 3.
<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:msub><mml:mi>R</mml:mi><mml:mn>1</mml:mn></mml:msub> </mml:math>
TeX and LaTeX
The TeX or LaTeX code for a formula, if used in typesetting, should be captured in the <tex-math> element using a CDATA section.
<tex-math><![CDATA[$\Delta E(\vec F) = E(F_i,F_j,F_k) - E_0$]]></tex-math>

Display Math

Display math should be tagged using the <disp-formula> element, with the <alternatives> element used to wrap equivalent renditions of the formula. For numbered formula, the <label> element should be used to tag the formula's label.

<disp-formula id="M0007"> 
    <label>(7)</label> 
    <alternatives> 
        <graphic xlink:href="TMPH_A_770175_M0007.gif"/> 
        <tex-math><![CDATA[ 
\begin{equation} 
\Delta \nu ^{i0} \approx C_{i0} |\Delta \nu _{i0} |^\xi, 
\end{equation} 
]]></tex-math> 
        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi mathvariant="normal">&#x394;</mml:mi><mml:msup><mml:mi>&#x3bd;</mml:mi><mml:mrow><mml:mi>i</mml:mi> <mml:mn>0</mml:mn></mml:mrow></mml:msup> <mml:mo>&#x2248;</mml:mo><mml:msub><mml:mi>C</mml:mi> <mml:mrow><mml:mi>i</mml:mi> <mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi mathvariant="normal">&#x394;</mml:mi><mml:msub><mml:mi>&#x3bd;</mml:mi> <mml:mrow><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:mrow></mml:msub> <mml:msup><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>&#x3be;</mml:mi></mml:msup><mml:mo>,</mml:mo></mml:math> 
    </alternatives> 
</disp-formula>

When multiple formula appear together in a group, the <disp-formula-group> element may be used to contain the group of formulas.

In-text call-outs to display formula should be tagged using the <xref> element. The rid attribute should contain the id attribute value of the referenced formula. For example:

<xref rid="M0007">(7)</xref>

Inline Math

Inline math should be tagged using the <inline-formula> element, with the <alternatives> element used to wrap equivalent renditions of the formula.

<p>After 30 min, unreacted <inline-formula id="ilm0001"> <alternatives> 
    <inline-graphic xlink:href="CFAI_A_629314_ILM0001.gif"/> 
    <tex-math><![CDATA[{\rm NO}_{\rm 2}^ -]]></tex-math> 
    <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow><mml:mtext>N</mml:mtext><mml:msubsup><mml:mtext>O</mml:mtext><mml:mtext>2</mml:mtext><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math> 
</alternatives></inline-formula> was eliminated by the addition of 7 mg of ammonium sulfamate in 140 &#x00B5;L of water until there were no more bubbles.</p>

Statements

The <statement> element should be used to tag formal statements such as Theorem, Lemma, Proof, Example, Remark, etc. The content-type attribute of <statement> should be set to one of the following choices to indicate the type of statement:

  • corollary
  • definition
  • example
  • hypothesis
  • lemma
  • postulate
  • proof
  • proposition
  • remark
  • theorem

Note: definition in this context refers to a definition given in the form of a statement with a label such as "Definition 1:". Definitions such as may appear in a glossary should be tagged using the <def-list> element.

<statement content-type="theorem">
<label>Theorem 1.2:</label><p>When <inline-formula><alternatives>
    <inline-graphic xlink:href="TCON_A_787494_ILM0004.gif"/>
    <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mfrac><mml:mi>K</mml:mi><mml:mi>&rho;</mml:mi></mml:mfrac><mml:mo>&ne;</mml:mo><mml:mfrac><mml:mrow><mml:mi>E</mml:mi><mml:mi>I</mml:mi></mml:mrow><mml:msub><mml:mi>I</mml:mi><mml:mi>&rho;</mml:mi></mml:msub></mml:mfrac></mml:mrow></mml:math>
    <tex-math><![CDATA[$\frac{K}{\rho }\ne \frac{EI}{I_{\rho }}$]]></tex-math>
    </alternatives></inline-formula> and &verbar;&alpha;<sub><italic>j</italic></sub>&verbar; &ne; &verbar;&beta;<sub><italic>j</italic></sub>&verbar;(<italic>j</italic> &equals; 1, 2), the energy functional of the system (<xref ref-type="disp-formula" rid="m0007">1.7</xref>) decays exponentially for any &tau; &gt; 0.</p>
</statement>

Rendering in PDF:

tagging-examples-theorem.png