Math with newmat

From Wiki
Revision as of 13:15, 9 August 2020 by Taco (talk | contribs) (Text replacement - "<cmd>" to "{{cmd|")
Jump to navigation Jump to search

< Math | MathML | Math with amsl | Math with nath >

Here some short examples of how to use math with the 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 subarray, substack, and smallmatrix 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:


Inline math: $x = \frac{y}{2z} + x_{\text{center}}$


Display math:


Display math:
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}



\leg k \\ water vapor permeability \\ \\
\leg K \\ water vapor permeance \\ \\
\leg S \\ surface \\ \\
\leg L \\ length \\ \\

Aligned display math:


t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr
& = 6\ \mu m \cr

(These samples are adapted from an example sent to the mailing list on 2005-06-28 by Wolfgang Zillig.)