Template:Tmath/doc
Template:Documentation subpage
This template wraps a math expression written in TeX code between <math>...</math> tags using the {{#tag:}} parser function magic word. Intended to be used for very short expressions like variables.
Neither display="inline" nor TeX math mode textstyle is set by this template.
Usage
Examples
- Template:Tlc gives Template:Tmath
- Template:Tlc gives Template:Tmath
- Template:Tlc gives Template:Tmath
The template is intended to be used for very short LaTeX mathematical expressions like variables. It is more cumbersome to use for equations or other expressions containing special signs that have to be escaped, like the equal sign = with Template:Tl and the vertical pipe | with Template:Tl:
- Template:Tlc gives Template:Tmath
- Template:Tlc gives Template:Tmath
Use braces { and } with caution
Apart from using the Template:Tl and Template:Tl templates to get { and }, you may use the braces { and } as long as { is not preceded or followed by another {, and } is not preceded or followed by another }, e.g.
- Template:Tlc gives Template:Tmath
- Template:Tlc parses (you added that space!) to Template:Tmath
- Template:Tlc fails to parse (you forgot that space!), v.g. Template:Tmath}
- Template:Tlc parses (you added all those spaces!) to Template:Tmath
- Template:Tlc fails to parse (you forgot some of those spaces!), v.g. Template:Tmath }}
See also