Close this window

Using the <equation> tag

Description

The equation tag is used to set off equations in CNXML documents by using the Math Mark-up Language (MathML) or embedded media to display math.

Note:

You are strongly encouraged to use equation with Content MathML tags when you want to display mathematical formulas or equations in your CNXML document.

Example

This CNXML:


<equation id="simpleaddmathml">
  <title>Addition using MathML</title>
  <m:math>
    <m:apply>
      <m:eq/>
      <m:apply>
        <m:plus/>
          <m:cn>1</m:cn>
          <m:cn>2</m:cn>
        </m:apply>
      <m:cn>3</m:cn>
    </m:apply>
  </m:math>
</equation>
        

Results in this display:

Addition using MathML

1 + 2 = 3 (1)

Example

This CNXML:


<equation id="simpleaddplain">
  <title>Addition without MathML</title>
  1 + 2 = 3
</equation>
        

Results in this display:

Addition without MathML

1 + 2 = 3 (2)

Attributes(what's this?)

Children(what's this?)

First, equation may contain an optional label tag. Next, it may contain an optional title tag. Finally, equation must contain either media, MathML, or Unicode Text.

Parents(what's this?)

content, section, preformat, para, quote, footnote, note, item, example, problem, solution, commentary, meaning, statement, proof, entry
Close this window