Wraps a math expression written in TeX code in <math> tags using the {{#tag:}}
parser function . Intended to be used for very short expressions like variables.
{{tmath |expressin }}
{{tmath|a}}
gives
a
{\displaystyle a}
{{tmath|\pi}}
gives
π
{\displaystyle \pi }
{{tmath|x_0}}
gives
x
0
{\displaystyle x_{0}}
The template is intended to be used for very short expressions like variables. It is more cumbersome to use for equations or other expressions containing special signs that have to be escaped:
{{tmath|E{{=}}mc^2}}
gives
E
=
m
c
2
{\displaystyle E=mc^{2}}
{{tmath|x {{=}} {{!}} \vec {{(}} x {{)}} {{!}} }}
gives
x
=
|
x
→
|
{\displaystyle x=|{\vec {x}}|}
Math templates
Conversions
convert many units (see: list ) cvt many units; abbreviated {{ convert }} convinfobox for use in infoboxes bbl to t barrels of oil to tonnes long ton long hundredweights, quarters and pounds to kilograms; long tons and hundredweights to pounds and metric tonnes miles-chains miles and chains to kilometres linking "chains" rndfrac decimals to fractions
Notation
bigmath for stand-alone formulas, using a bigger font to match \displaystyle PNG-rendered TeX formulas bra–ket notation frac for creating fractions ⅗ (not for use in science or mathematical articles; instead, use {{sfrac }}
) intmath integral symbol s angular bracket s multiline delimiters (2–5 lines inclusive) math for short inline formulas mathcal [mathematical] calligraphic font for use in mathematical formulas, as an alternative to \mathcal{...} in LaTeX markup
mvar a short form to refer to individual italicized maths variables in normal text arbitrary characters/diacritics set above/below one another radic Radicals √2 sfrac for creating fractions 3 / 5 (this template should be used in science or mathematical articles instead of {{frac }}
) Subscripts and superscripts tmath wraps a TeX math expression in <math> tags val to report measurement values, uncertainties and units vec for various overarrows, underarrows, pointing left, right or both ways