Open main menu

Changes

\startsubformulas[eq:total]
\placeformulastartplaceformula
\startformula
\startalign
\stopformula
\stopsubformulas
\stopplaceformula
Formula \eqref[eq:total] states the Pythagora's Theorem twice,
You can compare without \tex{startsubformulas}:
\placeformulastartplaceformula
\startformula
\startalign
\stopalign
\stopformula
\stopplaceformula
We now have references for \eqref[eq2:first] and \eqref[eq2:second].
</context>
 
 
= Combination of formulae with {{cmd|startformulas}} =
 
To use subformula numbering, you have to use {{cmd|startsubformulas}}/{{cmd|stopsubformulas}} and {{cmd|startalign}}. For example
 
<context source="yes" text="This, when typeset, produces the following:">
The famous result (once more) is given by
 
\startformulas
\startplaceformula
\startformula
\startalign
\NC a^2 + b^2 \NC = c^2 \NR[eq:first]
\NC a^2 + b^2 \NC = c^2 \NR[eq:second]
\stopalign
\stopformula
 
\startformula
\startalign
\NC a^2 + b^2 \NC = c^2 \NR[eq2:third]
\NC a^2 + b^2 \NC = c^2 \NR[eq2:forth]
\stopalign
\stopformula
\stopplaceformula
\stopformulas
 
We now have references for \eqref[eq:first] and \eqref[eq2:forth].
</context>
1,005

edits