Changes

Jump to navigation Jump to search
4,420 bytes added ,  11:10, 14 September 2023
Created page with "Documentation for \startformula ... \stopformula"
<cd:commandgroup name="formula" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The environment <tt>\startformula ... \stopformula</tt> is used for displayed mathematical material
</cd:shortdesc>
<cd:variants>
<cd:command category="mathematics" file="strc-mat.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-formula.xml" level="document" name="formula" type="environment" variantnumber="1">
<cd:arguments>
<cd:keywords list="yes" optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="packed"></cd:constant>
<cd:constant type="tight"></cd:constant>
<cd:constant type="middle"></cd:constant>
<cd:constant type="frame"></cd:constant>
<cd:constant type="depth"></cd:constant>
<cd:constant type="line"></cd:constant>
<cd:constant type="halfline"></cd:constant>
<cd:constant method="none" prefix="-" type="line"></cd:constant>
<cd:constant method="none" prefix="-" type="halfline"></cd:constant>
<cd:inherit name="setupbodyfont"></cd:inherit>
</cd:keywords>
</cd:arguments>
</cd:command>
<cd:command category="mathematics" file="strc-mat.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-formula.xml" level="document" name="formula" type="environment" variant="assignment" variantnumber="2">
<cd:arguments>
<cd:assignments list="yes" optional="yes" ordinal="1">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:parameter name="option">
<cd:paramdoc></cd:paramdoc>
<cd:constant type="packed"></cd:constant>
<cd:constant type="tight"></cd:constant>
<cd:constant type="middle"></cd:constant>
<cd:constant type="frame"></cd:constant>
<cd:constant type="depth"></cd:constant>
<cd:constant type="line"></cd:constant>
<cd:constant type="halfline"></cd:constant>
<cd:constant method="none" prefix="-" type="line"></cd:constant>
<cd:constant method="none" prefix="-" type="halfline"></cd:constant>
<cd:inherit name="setupbodyfont"></cd:inherit>
</cd:parameter>
<cd:parameter name="margin">
<cd:paramdoc></cd:paramdoc>
<cd:constant type="yes"></cd:constant>
<cd:constant type="no"></cd:constant>
<cd:constant type="standard"></cd:constant>
<cd:constant type="cd:dimension"></cd:constant>
</cd:parameter>
<cd:parameter name="grid">
<cd:paramdoc></cd:paramdoc>
<cd:inherit name="snaptogrid"></cd:inherit>
</cd:parameter>
</cd:assignments>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>The contents of this environment are typeset in mathematical mode. The environment as a whole can also be used as an argument of and immediately preceding {{cmd|placeformula}}, in which case the typeset result can be numbered and referenced.


</cd:description>
<cd:examples><cd:example title=""><context source="yes">

This is the first mathematical formula
\placeformula[First]
\startformula
\sin^2(t)^2 + \cos^2(t) = 1.
\stopformula

This is another formula
\placeformula[eqn:tangent]
\startformula
\cos^2(t) = \frac{1}{1+\tan^2(t)}.
\stopformula
As one may see from relation~(\in[eqn:tangent]), $\cos(t)$ and
$\sin(t)$ can be determined by $\tan(t)$\dots

This is the third formula
\placeformula[Pythagora]
\startformula
|a+b|^2 = |a|^2 + |b|^2
\stopformula
Clearly equality (\in[Pythagora]) holds for $a,b \in {\Bbb R}^n$
if and only if $(a|b) =0$, where the scalar product
$(\cdot|\cdot)$ on ${\Bbb R}^n$ is defined to be
\startformula
(a|b) := a\cdot b =\sum_{j=1}^{n}a_jb_j, \qquad |a|^2 := (a|a).
\stopformula
(Note that the above equation is {\it not\/} numbered).
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="definebodyfont" originator="system"></cd:commandref>
<cd:commandref name="setupbodyfont" originator="system"></cd:commandref>
<cd:commandref name="snaptogrid" originator="system"></cd:commandref>
<cd:source file="strc-mat.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Mathematics"></cd:wikipage>
<cd:commandref name="defineformula">Allows the definition of special mathematical environments</cd:commandref>
<cd:commandref name="_startformula">For some predefined special mathematical environments</cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu