Template:Tmath/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> <br /> Wraps a math expression written in TeX code in <tt><nowiki><math></now...") |
mNo edit summary |
||
Line 34: | Line 34: | ||
[[Category:Mathematical formatting templates]] | [[Category:Mathematical formatting templates]] | ||
</includeonly> | </includeonly> | ||
[[Category:Templates]] |
Latest revision as of 21:42, 14 December 2012
This is a documentation subpage for Template:Tmath (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
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.
Usage[edit source]
{{tmath|expressin}}
Examples[edit source]
{{tmath|a}}
gives <math>a</math>
{{tmath|\pi}}
gives <math>\pi</math>
{{tmath|x_0}}
gives <math>x_0</math>
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 <math>E=mc^2</math>
{{tmath|x {{=}} {{!}} \vec {{(}} x {{)}} {{!}} }}
gives <math>x = | \vec { x } | </math>