Changes

Jump to navigation Jump to search
635 bytes removed ,  05:35, 23 July 2006
m
removed duplicate code
Here some short examples of how to use math with the [http://source.contextgarden.net/m-newmat.tex newmat] module, which "collects macros that TeX users kind of expect to be available when typesetting math," according to the documentation. These currently include the <cmd>frac</cmd> family (<cmd>frac</cmd>, <cmd>dfrac</cmd>, <cmd>tfrac</cmd>, <cmd>binom</cmd>, etc.), the <cmd>QED</cmd> symbol, the <cmd>boxed</cmd> command, and the <tt>subarray</tt>, <tt>substack</tt>, and <tt>smallmatrix</tt> environments, along with a few others. At one time it also included the <cmd>text</cmd> command, though that has now been moved to the core.
Inline maths:<texcodecontext source="yes" text="produces">
\usemodule[newmat]
Inline math: $x = \frac{y}{2z} + x_{\text{center}}$
</texcode>
 
<context>
\usemodule[newmat]
Inline math: $x = \frac{y}{2z} + x_{\text{center}}$
</context>
<texcode>
Display math:
<context source="yes" text"produces">
\usemodule[newmat]
\startformula
q = \delta \frac{\partial p}{\partial x} =
\delta(\phi) p_{vsat}(\theta) \frac{\partial \phi}{\partial x} =
\left[ \frac{\delta_a}{\mu(\theta)} p_{vsat}(\theta) \right] \frac{\partial \phi}{\partial x} =
k \frac{\partial \phi}{\partial x}
\stopformula
</texcode>
 
<context>
\usemodule[newmat]
Display math:
 
\startformula
q = \delta \frac{\partial p}{\partial x} =
</context>
<texcode>
Legends:
 \startlegend\leg k \\ water vapor permeability \\ \\\leg K \\ water vapor permeance \\ \\\leg S \\ surface \\ \\\leg L \\ length \\ \\\stoplegend</texcode> <contextsource="yes">
\usemodule[newmat]
Legends:
\startlegend
</context>
 
<texcode>
Aligned display math:
<context source="yes">
\usemodule[newmat]
\startformula\eqalign{
t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr
& = 6\ \mu m \cr
}\stopformula
</texcode>
 
<context>
Aligned display math:
 
\usemodule[newmat]
\startformula\eqalign{
t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr
6

edits

Navigation menu