Appearance
How to Type Superscripts, Subscripts, Left Scripts, Overscripts, and Underscripts
Video Tutorial
Written Tutorial
Enter Math Mode
- If you want to type a math formula, enter Math Mode first.
- For inline math, type
$. - For a display equation on its own line, use
Alt/Option+$.
Type Superscripts and Subscripts
- After entering Math Mode, type the base first, such as
x. - Press
^to add a superscript. For example, type2to getx^2. - Press
_to add a subscript. For example, typeito getx_i.
For example:
Type Left Superscripts and Left Subscripts
- After entering Math Mode, type the base first, such as
A. - Press
Alt/Option+l, then press^to add a left superscript. - Press
Alt/Option+l, then press_to add a left subscript. - You can also press
\to enter command mode, typelsuporlsub, and press Enter to insert one.
For example:
Type Overscripts and Underscripts
- An overscript is a mark placed directly above the base. Press
Alt/Option+ato insert one. - An underscript is a mark placed directly below the base. Press
Alt/Option+bto insert one. - You can also press
\to enter command mode, typeaboveorbelow, and press Enter to insert one. - For operators such as
lim,\sum, and\max, underscripts are commonly used for conditions placed underneath.
For example:
Common Shortcuts
- Superscript:
^ - Subscript:
_ - Left superscript:
Alt/Option+l, then^ - Left subscript:
Alt/Option+l, then_ - Overscript:
Alt/Option+a - Underscript:
Alt/Option+b
Optional Reading: How to Type Superscripts, Left Scripts, Overscripts, and Underscripts in LaTeX
In , ordinary superscripts use ^, and ordinary subscripts use _. If a superscript or subscript contains more than one character, wrap it in {}.
latex
x^2
x_i
x_i^2
x^{n+1}
x_{i,j}These render as:
Left scripts can usually be written with an empty group {}:
latex
{}^\ast T
{}_\alpha X
{}^\ast_\alpha TThese render as:
Overscripts and underscripts commonly use \overset{} and \underset{}:
latex
\overset{n \to \infty}{\longrightarrow}
\underset{x \in A}{\max} f(x)These render as:
If you already have existing code, you can convert it directly in Liii STEM with Magic Paste.