Template:Tmath

From Wikipedia, the free encyclopedia
Jump to: navigation, search

{{{1}}}

Documentation icon Template documentation[view] [edit] [history] [purge]

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]

{{tmath|expressin}}

Examples[edit]

  • {{tmath|a}} gives a
  • {{tmath|\pi}} gives \pi
  • {{tmath|x_0}} gives 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=mc^2
  • {{tmath|x {{=}} {{!}} \vec {{(}} x {{)}} {{!}} }} gives x = | \vec { x } |

See also[edit]