# Latex formatting

*last updated: Oct 20, 2023*

To do subscript: `$N_2$`

: $N_2$

To do superscript: `$N^2$`

: $N^2$

You might need to escape the sub or superscript with `{}`

, `$N_{2}$`

is equivalent and allows latex in the braces

To do subscript: `$N_2$`

: $N_2$

To do superscript: `$N^2$`

: $N^2$

You might need to escape the sub or superscript with `{}`

, `$N_{2}$`

is equivalent and allows latex in the braces