Math Typesetting in Latex
This article is about the math typesetting using Latex.
Examples
Act only on the next character. Use curly braces {...} to affect several characters.
Special Characters
1 | \# \$ \% \{ \} \_ \\ |
Short Ones
- $a^2$
a^2 - $a_2$
a_2 - $\sqrt{a}$
\sqrt{a} - $\sqrt[n]{a}$
\sqrt[n]{a} - $\vec{a}$
\vec{a} - $37^\circ$
37^\circ - $\overrightarrow{AB}$
\overrightarrow{AB} - $\mathrm{d}x$
\mathrm{d}x - $\mathbf{\mu,M}$
\mathbf{\mu,M} - $\boldsymbol{\mu,M}$
\boldsymbol{\mu,M}
Large Ones
Sum, integral and product operator
1 | \sum_{i=1}^n \qquad |
Delimiter of auto size, use a pair of \left and \right. If the right is not necessary, use \right.
1 | \left( \frac{1}{1+x} \right) \qquad |
To specify the size manually, use
1 | \big| |
To group multiple equations, use align environment
1 | \left\{ |
To add a matrix, we may use environment array
1 | \mathbf{X} = |
or we may use environment matrix
1 | \mathbf{X} = |
we can draw a table as
1 | \begin{array}{c|cc} |
Space
1 | a \, b \\ |
Symbol
Math Mode Accents

Greeks Letters

Binary Relations

Binary Operators

Big Operators

Arrows

Arrows as Accents

Delimiters


Others

Fonts

Reference
- Tobias Oetiker. A short introduction to LATEX 2e. Available at: https://www.ctan.org/tex-archive/info/lshort
Related Posts
- Post link: https://triblemany.github.io/archives/706864ae/math-typesetting-in-latex.html
- Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.