Difference between revisions of "Command/startformula"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|")
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>startformula</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 23: Line 26:
 
== Example ==
 
== Example ==
  
<code source="tex">
+
<context source=yes mode=mkiv>
 
\starttext
 
\starttext
  
Line 53: Line 56:
 
(Note that the above equation is {\it not\/} numbered).
 
(Note that the above equation is {\it not\/} numbered).
 
\stoptext
 
\stoptext
</code>
+
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
== ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|startformula]]
+
[[Category:Command/Mathematics|startformula]]

Latest revision as of 00:26, 15 November 2019

\startformula

Syntax (autogenerated)

\startformula[...,...] ... \stopformula
[...,...]packed tight middle frame depth line halfline -line -halfline inherits from \setupbodyfont


\startformula[...=...,...] ... \stopformula
optionpacked tight middle frame depth line halfline -line -halfline see \setupbodyfont
marginyes no standard dimension
gridsee \snaptogrid


Syntax

\startformula ... \stopformula

Description

comment

Note: these are defined by the following lines in strc-mat.mkiv:

\setvalue{\e!start\v!formula}{\dostartformula{}}
\setvalue{\e!stop \v!formula}{\dostopformula}

Example

\starttext

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).
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: