LaTex formula syntax
Formula position
In-line formula
1 | inline: $a^2 + b^2 = c^2$ |
inline:
Line
1 | line: |
line:
Mathematical symbol
Subscript
1 | \sum_{K = 1}^3 ka^x + y \neq a^{x + y} |
Deriative symbol
1 | f(x) = x^2 \quad f'(x) = 2x \quad f''^{2} = 4 |
Fraction
1 | 3/8 \quad \frac{3}{8} \quad \dfrac{3, 8} \quad \tfrac{3}{8} |
Combination
1 | \binom{n}{k} = \binom{n-1}{k} + \binom{n-1}{k-1} |
Probability
1 | P(A) \quad P(A \mid B) |
Radical
1 | \sqrt{x} \Leftrightarrow x^{1/2} |
Infinity
1 | \infty |
Ellipsis
1 | a_1, a_2, \dots, a_n |
Relationship symbol
1 | f_n(x) \approx 1 |
Symbol
1 | \sum_{i = 1}^n \quad |
Limit symbol
1 | \sum\limits_{i=1}^n \quad |
1 | \prod_{k_0,k_1,\ldots>0\atop |
1 | \lim_{x \to +\infty} \\ |
1 | {\lim_{x \to 0} \frac{3x^2 + 7x^3}{x^2 + 5x^4}} |
Norm
1 | \lVert x^2 \rVert |
Gradient
1 | \nabla |
Partial deriative symbol
1 | \left.\frac{\partial f(x, y)}{\partial x}\right|_{x=0} |
Integral
1 | \int_a^b f(x)mathrm{d}x |
1 | \newcommand\diff{\,\mathrm{d}} |
Related symbol
1 | \in \quad \notin \quad \emptyset \quad \subset \quad |
Mathematical stress and upper and lower bracket
1 | \bar{x_0} \quad \bar{x}_0 \\ |
1 | 0.\overline{3} = \underline{\underline{1/3}} \\ |
1 | \underbrace{\overbrace{a + b + c} ^ 6 \cdot \overbrace{d + e + f}^7}_\text{meaning of life} = 42 |
Arrow
1 | a \xleftarrow{x+y+z} b \\ |
$$
\begin{align}
a &\xleftarrow{x+y+z} b \notag \
c &\xrightarrow[x<y]{abc} d \notag
\end{align}
$$
Brackets and delimiters
1 | {a, b, c} \neq \{a.b.c\} |
1 | \left[ |
Multi-line formula
1 | \begin{equation} |
1 | \begin{multline} |
1 | \begin{align} |
1 | \begin{align} |
$$
\begin{align}
a ={} & b + c \
={} & d + e + f + g + h + i
- j + k + l \notag \
& + m + n + o \
={} & p + q + r + s
\end{align}
$$
1 | \begin{align} |
1 | \begin{equation} |
1 | \begin{gather} |
Matrix
1 | \mathbf{X} = \left( |
1 | |x| = \left\{ |
$$
|x| = \left{
\right.
$$
1 | |x| = |
1 | \begin{matrix} |
1 | \mathbf{H}= |
Mathematical letter
1 | \mathcal{R} \quad \mathfrak{R} \quad \mathbb{R} |
1 | P = \frac |
Symbol table
List of space types
Two quad spaces | a \qquad b | 2m width | |
Quad space | a \quad b | m width | |
Large space | a \␣ b | 1/3 m width | |
Mid space | a \; b | 2/7 m width | |
Small space | a \, b | 1/6 m width | |
No spaces | ab | Default | |
Close to | a \! b | Indent 1/6 m width |
General symbol for text/math mode
Symbol | Command | Symbol | Command |
---|---|---|---|
${$ | { | \S | |
} | % | ||
$$$ | $ | \dots |
Binary relation
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
< | > | = | |||
\leq or \le | \geq or \ge | \equiv | |||
\ll | \gg | \doteq | |||
\prec | \succ | \sim | |||
\preceq | \succeq | \simeq | |||
\subset | \supset | \approx | |||
\subseteq | \supseteq | \cong | |||
\sqsubset | \sqsupset | \Join | |||
\sqsubseteq | \sqsupseteq | \bowtie | |||
\in | \ni or \owns | \propto | |||
\vdash | \dashv | \models | |||
\mid | \parallel | \perp | |||
\smile | \frown | \asymp | |||
: | \notin | \neq or \ne |
Binary operator
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
+ | - | \triangleleft | |||
\pm | \mp | \triangleright | |||
\cdot | \div | \star | |||
\times | \setminus | \ast | |||
\cup | \cap | \circ | |||
\sqcup | \sqcap | \bullet | |||
\vee, \lor | \wedge,\land | \diamond | |||
\odot | \oslash | \otimes | |||
\bigcirc | \bigtriangleup | \bigtriangledown |
Greek alphabet
Symbol | Command | Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|---|---|
\alpha | \theta | o | \upsilon | ||||
\beta | \vartheta | \pi | \phi | ||||
\gamma | \iota | \varpi | \varphi | ||||
\delta | \kappa | \rho | \chi | ||||
\epsilon | \lambda | \varrho | \psi | ||||
\varepsilon | \mu | \sigma | \omega | ||||
\zeta | \nu | \varsigma | |||||
\eta | \xi | \tau |
Symbol | Command | Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|---|---|
\Gamma | \Lambda | \Sigma | \Psi | ||||
\Delta | \Xi | \Upsilon | \Omega | ||||
\Theta | \Pi | \Phi | |||||
\varGamma | \varLambda | \varSigma | \varPsi | ||||
\varDelta | \varXi | \varUpsilon | \varOmega | ||||
\varTheta | \varPi | \varPhi |
Symbol | Command | English phonetic | English | Commonly referred to |
---|---|---|---|---|
/‘ælfə/ | alpha | Angle, coefficient, angular acceleration, first, degree of ionization, conversion rate | ||
/‘beɪtə/ | beta | Flux coefficient, angle, coefficient | ||
/‘gæmə/ | gamma | Conductivity, angle, specific heat capacity ratio | ||
/‘deltə/ | delta | Change, enthalpy change, entropy change, diopter, discriminant in one-dimensional quadratic equation, chemical shift | ||
/‘epsɪlɒn/ | epsilon | Base of logarithm, dielectric constant, permittivity, strain | ||
/‘zi:tə/ | zeta | Coefficient, azimuth angle, impedance, relative viscosity | ||
/‘i:tə/ | eta | Hysteresis coefficient, mechanical efficiency | ||
/‘θi:tə/ | theta | Temperature, angle | ||
/aɪ’əʊtə/ | iota | Tiny, a little | ||
/‘kæpə/ | kappa | Dielectric constant, adiabatic index | ||
/‘læmdə/ | lambda | Planck constant of wavelength, volume, thermal conductivity | ||
/mju:/ | mu | Permeability, micro, dynamic friction system (factor), hydrodynamic viscosity, currency unit, Möbius function | ||
/nju:/ | nu | Magnetoresistance coefficient, fluid kinematic viscosity, light wave frequency, stoichiometric number | ||
/ˈsaɪ/ | xi | Random variable, an unknown specific value in a (small) interval | ||
o | /ˈɑmɪˌkrɑn/ | omicron | Higher-order infinitesimal function | |
/paɪ/ | pi | |||
/rəʊ/ | rho | Resistivity, polar diameter, density, radius of curvature in cylindrical and polar coordinates | ||
/‘sɪɡmə/ | sigma | Sum, surface density, transconductance, stress, conductivity | ||
/tɔ:/ | tau | Time constant, shear stress, |
||
/ˈʌpsɪlɒn/ | upsilon | Displacement | ||
/faɪ/ | phi | Magnetic flux, electric flux, angle, lens power, heat flow, electric potential, diameter, Euler function, empty set | ||
/kaɪ/ | chi | There is chi-square in statistics ( |
||
/ps/ | psi | Angular velocity, dielectric flux, |
||
/‘əʊmɪɡə/ | omega | Ohm, angular velocity, angular frequency, electrical angle of alternating current, mass fraction in chemistry, degree of unsaturation |
Notation
\sum | \bigcup | \bigvee | ||||
\prod | \bigcap | \bigwedge | ||||
\coprod | \bigsqcup | \biguplus | ||||
\int | \oint | \bigodot | ||||
\bigoplus | \bigotimes | \idotsint | ||||
\iint | \iiint | \iiiint |
Mathematical ascent
\hat{a} | \check{a} | \tilde{a} | |||
\acute{a} | \grave{a} | \breve{a} | |||
\bar{a} | \vec{a} | \mathring{a} | |||
\dot{a} | \ddot{a} | \dddot{a} | |||
\ddddot{a} | \widehat{AAA} | \widetilde{AAA} |
Arrows
\leftarrow or \gets | \longleftarrow | ||
\rightarrow or \to | \longrightarrow | ||
\leftrightarrow | \longleftrightarrow | ||
\Leftarrow | \Longleftarrow | ||
\Rightarrow | \Longrightarrow | ||
\Leftrightarrow | \Longleftrightarrow | ||
\leftharpoonup | \rightharpoonup | ||
\leftharpoondown | \rightharpoondown | ||
\rightleftharpoons | \updownarrow | ||
\uparrow | \downarrow |
\overrightarrow{AB} | \underrightarrow{AB} | ||
\overleftarrow{AB} | \underleftarrow{AB} | ||
\overleftrightarrow{AB} | \underleftrightarrow{AB} |
Delimiters
( | ) | ${$ | \{ | ||
[ | ] | \} | |||
\langle | \rangle | \vert | |||
/ | \backslash | \Vert | |||
\lgroup | \rgroup | \lmoustache | |||
\arrowvert | \Arrowvert | \bracevert | |||
\rmoustache |
Other
\dots | \cdots | \vdots | \ddots | ||||
\forall | \exists | \prime | \Box | ||||
\emptyset | \infty | \nabla | \triangle | ||||
\bot | \top | \angle | \surd |