Synopsis Markup for a variable.
  • $ VarName $
  • $ Varname _ Index $
  • $ Varname ^ Index $
Description Creates variables in text and code. A variable name may be followed by _ (or ^) and an index (a number or an identifier) which will be displayed as a subscript (or superscript).

Example 1

$Var$ gives Var.

Example 2

$Var_1$ gives Var1.

Example 3

$Var^1$ gives Var1.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit