Open main menu

Changes

no edit summary
= Display math environment =
Display math is enclosed in a {{cmd|startformula}} / {{cmd|stopformula}} pair.
</context>
== Numbering Formulae == ConTeXt provides an easy way to number the display maths equations. Simply, insert the {{cmd|startformula}} in the {{cmd|startplaceformula}} environment, and you will get numbered equations.
ConTeXt provides an easy way to number the display maths equations. Simply, insert the formula in the {{cmd|startplaceformula}} environment, and you will get numbered equations. Thus,
<table width="100%" cols="3"><tr valign="top"><td width="48%">
<texcode>
The famous result (once more) is given by
\startplaceformula
\startformula
c^2 = a^2 + b^2.
\stopformula
\stopplaceformula
</texcode>
<td></td>
<td width="48%">
This, when typeset, produces the following:
<contextsource="yes" text="This, when typeset, produces the following:">\setuppapersize[A5]\setuplayout[width=8cm]
The famous result (once more) is given by
\startplaceformula
\stopplaceformula
</context>
</td></tr></table>
The {{cmd|placeformula}} command is optional, and produces the equation number; leaving it off produces an unnumbered equation.
1,005

edits