Math Mode Triggers
Trigger Replacement Description Example mk$$0$Inline math $x^2$ → x 2 dm$$\n$0\n$$Display math block $$x^2$$ → x 2 beg\begin{$0}\n$1\n\end{$0}Begin/end environment \begin{align}...\end{align}
Greek Letters
Trigger Replacement Example @a\alphaα @b\betaβ @g\gammaγ @G\GammaΓ @d\deltaδ @D\DeltaΔ @e\epsilonϵ :e\varepsilonε @z\zetaζ @t\thetaθ @T\ThetaΘ :t\varthetaϑ @i\iotaι @k\kappaκ @l\lambdaλ @L\LambdaΛ @s\sigmaσ @S\SigmaΣ @u\upsilonυ @U\UpsilonΥ @o\omegaω @O\OmegaΩ ome\omegaω Ome\OmegaΩ
Text in Math Mode
Trigger Replacement Description Example text\text{$0}$1Text environment \text{hello} → hello "\text{$0}$1Quick text Same as above
Basic Operations
Trigger Replacement Description Example sr^{2}Square x sr → x 2 cb^{3}Cube x cb → x 3 rd^{$0}$1Power x rd → x n __{$0}$1Subscript x_ → x i sts_\text{$0}Text subscript x sts → x max sq\sqrt{ $0 }$1Square root sq → x //\frac{$0}{$1}$2Fraction // → b a eee^{ $0 }$1Exponential ee → e x invs^{-1}Inverse A invs → A − 1 conj^{*}Conjugate z conj → z ∗
Auto Subscripts
Trigger Replacement Description Example x2x_{2}Letter + digit x 2 x_12x_{12}Letter + two digits x 12 xnnx_{n}x sub n x n xiix_{i}x sub i x i xjjx_{j}x sub j x j xp1x_{n+1}x sub n+1 x n + 1 ynny_{n}y sub n y n yiiy_{i}y sub i y i yjjy_{j}y sub j y j
Font Styles
Trigger Replacement Description Example bf\mathbf{$0}Bold bf x → x rm\mathrm{$0}$1Roman rm Re → Re Re\mathrm{Re}Real part Re Im\mathrm{Im}Imaginary part Im
Accents and Decorations
Trigger Replacement Description Example xhat\hat{x}Hat (letter) x ^ hat\hat{$0}$1Hat (general) a ^ xbar\bar{x}Bar (letter) x ˉ bar\bar{$0}$1Bar (general) a ˉ xdot\dot{x}Dot (letter) x ˙ dot\dot{$0}$1Dot (general) a ˙ xddot\ddot{x}Double dot (letter) x ¨ ddot\ddot{$0}$1Double dot (general) a ¨ xtilde\tilde{x}Tilde (letter) x ~ tilde\tilde{$0}$1Tilde (general) a ~ xund\underline{x}Underline (letter) x und\underline{$0}$1Underline (general) a xvec\vec{x}Vector (letter) x vec\vec{$0}$1Vector (general) a x,. or x.,\mathbf{x}Bold shortcut x
Symbols and Infinity
Trigger Replacement Description Example ooo\inftyInfinity ∞ ...\dotsEllipsis … cdot\cdotCenter dot ⋅ xx\timesTimes × **\cdotDot product ⋅
Sums, Products, Limits
Trigger Replacement Description Example sum\sumSummation ∑ \sum (in math)\sum_{i=1}^{N}Sum with limits ∑ i = 1 N x i prod\prodProduct ∏ \prod (in math)\prod_{i=1}^{N}Product with limits ∏ i = 1 N x i lim\lim_{ n \to \infty }Limit lim n → ∞
Relations and Logic
Trigger Replacement Description Example in\inElement of ∈ inn\inElement of ∈ notin\not\inNot element of ∈ sub=\subseteqSubset or equal ⊆ sup=\supseteqSuperset or equal ⊇ eset\emptysetEmpty set ∅ set\{ $0 \}$1Set brackets a , b +-\pmPlus-minus ± -+\mpMinus-plus ∓ !=\neqNot equal = >=\geqGreater or equal ≥ <=\leqLess or equal ≤ >>\ggMuch greater ≫ <<\llMuch less ≪ simm\simSimilar ∼ sim=\simeqSimilar or equal ≃ ===\equivEquivalent ≡ prop\proptoProportional ∝ para\parallelParallel ∥
Arrows
Trigger Replacement Description Example ->\toRight arrow → <->\leftrightarrowLeft-right arrow ↔ !>\mapstoMaps to ↦ =>\impliesImplies ⟹ =<\impliedbyImplied by ⟸
Set Operations
Trigger Replacement Description Example and\capIntersection ∩ orr\cupUnion ∪ \\\\setminusSet difference ∖
Common Sets
Trigger Replacement Description Example NN\mathbb{N}Natural numbers N ZZ\mathbb{Z}Integers Z RR\mathbb{R}Real numbers R CC\mathbb{C}Complex numbers C LL\mathcal{L}Lagrangian L HH\mathcal{H}Hilbert space H
Derivatives and Integrals
Trigger Replacement Description Example par (tab)\frac{ \partial y }{ \partial x }Partial derivative ∂ x ∂ y paxy (tab)\frac{ \partial x }{ \partial y }Partial (auto) ∂ y ∂ x ddt\frac{d}{dt}Time derivative d t d int\intIntegral ∫ \int (in math)\int f \, dxIntegral with differential ∫ f , d x dint\int_{0}^{1} f \, dxDefinite integral ∫ 0 1 f , d x oint\ointContour integral ∮ iint\iintDouble integral ∬ iiint\iiintTriple integral ∭ oinf\int_{0}^{\infty} f \, dx0 to infinity ∫ 0 ∞ f , d x infi\int_{-\infty}^{\infty} f \, dx-inf to inf ∫ − ∞ ∞ f , d x
Trigonometry
Trigger Replacement Description Example sin\sinSine sin x cos\cosCosine cos x tan\tanTangent tan x arcsin\arcsinArcsine arcsin x arccos\arccosArccosine arccos x arctan\arctanArctangent arctan x csc\cscCosecant csc x sec\secSecant sec x cot\cotCotangent cot x sinh\sinhHyperbolic sine sinh x cosh\coshHyperbolic cosine cosh x tanh\tanhHyperbolic tangent tanh x coth\cothHyperbolic cotangent coth x
Functions
Trigger Replacement Description Example exp\expExponential exp ( x ) log\logLogarithm log x ln\lnNatural log ln x det\detDeterminant det ( A ) trace\mathrm{Tr}Trace Tr ( A )
Visual Operations (for selected text)
Have to select first and then press.
Trigger Replacement Description Example U\underbrace{ ... }_{ }Underbrace sum x + y O\overbrace{ ... }^{ }Overbrace x + y sum B\underset{ }{ ... }Underset i arg max C\cancel{ ... }Cancel x K\cancelto{ }{ ... }Cancel to \cancelto 0 x S\sqrt{ ... }Square root x
Matrix Environments
Trigger Replacement Description Example pmat\begin{pmatrix}...\end{pmatrix}Parenthesis matrix ( a c b d ) bmat\begin{bmatrix}...\end{bmatrix}Bracket matrix [ a c b d ] Bmat\begin{Bmatrix}...\end{Bmatrix}Brace matrix { a c b d } vmat\begin{vmatrix}...\end{vmatrix}Vertical bar matrix a c b d Vmat\begin{Vmatrix}...\end{Vmatrix}Double bar matrix a c b d matrix\begin{matrix}...\end{matrix}Plain matrix a c b d cases\begin{cases}...\end{cases}Cases environment { x − x x > 0 x < 0 align\begin{align}...\end{align}Align environment Multi-line equations array\begin{array}...\end{array}Array environment Custom arrays
Brackets and Delimiters
Trigger Replacement Description Example (($0)$1Parentheses ( x ) [[$0]$1Square brackets [ x ] {{$0}$1Curly braces (needs escaping) lr(\left( $0 \right)Auto-sized parens ( b a ) lr[\left[ $0 \right]Auto-sized brackets [ b a ] lr{\left\{ $0 \right\}Auto-sized braces { b a } lra\left< $0 \right>Auto-sized angles ⟨ b a ⟩ avg\langle $0 \rangleAngle brackets ⟨ x ⟩ norm\lvert $0 \rvertNorm ∣ x ∣ Norm\lVert $0 \rVertDouble norm ∥ x ∥ ceil\lceil $0 \rceilCeiling ⌈ x ⌉ floor\lfloor $0 \rfloorFloor ⌊ x ⌋ mod|$0|Absolute value $
Physics
Trigger Replacement Description Example nabl / del\nablaNabla/Del ∇ kbtk_{B}TBoltzmann constant × T k B T msunM_{\odot}Solar mass M ⊙
Quantum Mechanics
Trigger Replacement Description Example dag^{\dagger}Dagger (Hermitian) A † o+\oplusDirect sum ⊕ ox\otimesTensor product ⊗ bra\bra{$0}Bra $\langle\psi ket\ket{$0}Ket $ brk\braket{ $0 | $1 }Braket $\langle\phi outer\ket{\psi} \bra{\psi}Outer product $
Chemistry
Trigger Replacement Description Example pu\pu{ $0 }Physical units \pu 5 m o l cee\ce{ $0 }Chemical equation \ce H 2 O he4{}^{4}_{2}HeHelium-4 2 4 He he3{}^{3}_{2}HeHelium-3 2 3 He iso{}^{4}_{2}HeIsotope notation Z A X
Special Functions
Trigger Replacement Description Result taylTaylor expansion template Full Taylor series f ( x + h ) = f ( x ) + f ′ ( x ) h + 2 ! f ′′ ( x ) h 2 + … iden33×3 identity matrix Auto-generates < b r > 1 < b r > 0 < b r > 0 0 1 0 0 0 1 < b r >
This cheatsheet covers all your shortcuts! The most commonly used ones are probably the Greek letters, basic operations (fractions, powers, subscripts), and the matrix environments.