# ਫਰਮਾ:Tmath/doc

Wraps a math expression written in TeX code in [itex] tags using the {{#tag:}} parser function. Intended to be used for very short expressions like variables.

## Usage

{{tmath|expressin}}

### Examples

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