Changes

Jump to navigation Jump to search
230 bytes added ,  13:17, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
< [[Math]] | [[MathML]] | [[Math with amsl]] | [[Math with nath]] >
Here a some short example 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}} family (you can use inline math {{cmd|frac}}, {{cmd|dfrac}}, {{cmd|tfrac}}, {{cmd|binom}}, etc.), the {{cmd|QED}} symbol, the {{cmd|boxed}} command, and the <tt>subarray</tt>, <tt>substack</tt>, and <tt>smallmatrix</tt> environments, along with $ some math $ ):a few others. At one time it also included the {{cmd|text}} command, though that has now been moved to the core.
Inline maths:<texcodecontext source="yes" text="produces">
\usemodule[newmat]
\startformulaq = \delta \frac{\partial p}{\partial Inline math: $x} = \delta(\phi) p_{vsat}(\theta) \frac{\partial \phiy}{\partial x2z} = \left[ \frac+ x_{\delta_a}text{\mu(\theta)center} p_{vsat}(\theta) \right] \frac{\partial \phi}{\partial x} = k \frac{\partial \phi}{\partial x}\stopformula \startlegend\leg k \\ water vapor permeability \\ \\\leg K \\ water vapor permeance \\ \\\leg S \\ surface \\ \\\leg L \\ length \\ \\\stoplegend Aligning is also possible: \startformula\eqalign{t_{L,early} & = t_{L,late} = t_{L,ray} \cr& = 6\ \mu m \cr}\stopformula$</texcodecontextlooks like:
Display math:<contextsource="yes" text"produces">
\usemodule[newmat]
Display math:
\startformula
q = \delta \frac{\partial p}{\partial x} =
k \frac{\partial \phi}{\partial x}
\stopformula
</context>
 
Legends:
<context source="yes">
\usemodule[newmat]
\startlegend
\leg L \\ length \\ \\
\stoplegend
</context>
Aligning is also possibleAligned 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
</context>
</context>(These samples are adapted from an example sent to the mailing list on 2005-06-28 by Wolfgang Zillig.)
(The sample was sent to the mailing list on 2005-06-28 by Wolfgang Zillig.)[[Category:Math]]

Navigation menu