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">
  <name>Addition in a MathML module</name>
  <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 in a MathML module (1)
Example
This CNXML:
<equation id="simpleaddplain">
  <name>Addition in a non-MathML module</name>
  1 + 2 = 3
</equation>
	
Results in this display:
Simple addition in a non-MathML module 1 + 2 = 3 (2)
Attributes (what's this?)
Children (what's this?) First, equation may contain an optional name tag. Next, if the module supports MathML, it must contain one MathML math tag. If the module does not support MathML, it must contain either Unicode text, or one or more media tags.
Parents (what's this?)para, content, section, example, meaning, proof, statement, problem, solution
Close this window