Math and formulae

Formulae should be tagged using the formula element in DTD 4. Blackwell's currently requires the following:

  1. Maths tagged as MathML or as LaTeX 2e
  2. Graphics of individual equations

A sample equation and its corresponding markup is shown below. The following points should be noted in the 'Extract from XML':

  1. Alternative versions - Alternative versions of the formula are available, and these are tagged using the alternativemath element. Each alternative is specified in the element's type attribute.
  2. Markup characters in TeX - The contents of the tex element need to be enclosed in CDATA markers (<![CDATA[...]]>) markers so that any < or &, characters in the TeX code will be ignored during parsing. For an explanation of CDATA markers, see here.
  3. Punctuation - The comma separating the equation from the equation number is tagged as x in formula, not as part of any one of the equations.
  4. Formula numbers - The formula number is tagged using the number element in formula
  5. Equation ID numbers - The ID number, used for linking to the equation, is contained in the ID attribute of formula.

1. Display formula

display formula page image

The markup for the above display formula is shown below. Note the following which are highlighted in the sample XML code:

...

<p><formula format="display" id="m3">

<file name="gji_195_m3.gif" type="gif"/>

<alternativemath type="latex2e">
<tex><![CDATA[\mu \left(s\right) = 
\frac{\mu s}{s+\displaystyle \frac{\mu}{\nu}}]]></tex>
</alternativemath>

<alternativemath type="mathml">
 <math>
    <mrow>
       <mi>&mu;</mi><mo>(</mo><mi>s</mi><mo>)</mo><mo>=</mo>
       <mfrac>
          <mrow><mi>&mu;</mi><mi>s</mi></mrow>
          <mrow><mi>s</mi><mo>+</mo>
             <mfrac>
                <mrow><mi>&mu;</mi></mrow>
                <mrow><mi>&nu;</mi></mrow>
             </mfrac>
          </mrow>
       </mfrac>
    </mrow>
 </math>
 </alternativemath>

<x>,</x><number>(3)</number>


</formula></p>

<p>with &nu; denoting the Maxwell viscosity. The linearized equation of motion 
for an incompressible Maxwell body with constant density in each layer is</p>

...


2. Inline formula

inline formula page image

The markup for the above inline formulae is shown below. The inline formula highlighted above is highlighted in the XML markup below. Note the following:

<p>Three different classes of cosmological model are examined in this work, 
each with a simple cold dark matter (CDM) power spectrum. The models are specified 
in terms of the usual cosmological parameters: <formula format="inline"><simplemath>
&Omega;<sub>0</sub>&equals;<i>&rho;</i>&sol;<i>&rho;</i>
<sub>crit</sub></simplemath></formula> is the normalized matter density, <formula 
format="inline"><file name="mnr_5178_mu1.gif" type="gif"/><alternativemath type="latex2e">
<tex><![CDATA[\lambda _{0}=\Lambda _{0}\mathit{c}^{2}/(3\mathit{H}^{2}_{0})]]></tex>
</alternativemath></formula> is the normalized vacuum energy density, and Hubble's 
constant is <formula format="inline"><simplemath><i>H</i><sub>0</sub>
&equals;100&thinsp;<i>h</i>&thinsp;km&thinsp;s<sup>-1</sup>&thinsp;
Mpc<sup>-1</sup></simplemath></formula> with <formula format="inline"><simplemath>
0&lt;<i>h</i>&le;1</simplemath></formula>. The models are a standard CDM model 
(SCDM) with <formula format="inline"><simplemath>(&Omega;<sub>0</sub>,<i>&
lambda;</i><sub>0</sub>)&equals;(1.0,0.0)</simplemath></formula>, an open CDM 
model (OCDM) with <formula format="inline"><simplemath>(&Omega;<sub>0</sub>,<i>
&lambda;</i><sub>0</sub>)&equals;(0.3,0.0)</simplemath></formula> and a 
flat model with a cosmological constant (LCDM) where <formula format="inline"><simplemath>
(&Omega;<sub>0</sub>,<i>&lambda;</i><sub>0</sub>)&equals;(0.3,0.7)
</simplemath></formula>.</p>

Back