Writing Mathematics: A LaTeX Guide for This Blog
This post is a living reference for authoring mathematical content on this site. All math is written in standard LaTeX syntax and rendered at build time using KaTeX.
Inline Math
Wrap inline expressions in single dollar signs: $...$
The Cauchy–Schwarz inequality states that for all vectors in an inner product space.
The Euler identity is perhaps the most celebrated equation in mathematics: .
Display Math
Wrap block equations in double dollar signs: $$...$$
The Fourier transform of a function is defined as
The general form of Stokes’ theorem unifies the classical theorems of vector calculus:
where is an oriented smooth manifold with boundary and is a differential form.
Aligned Equations
Use \begin{aligned}...\end{aligned} for multi-line derivations:
Common Environments
Matrices:
Cases:
Sums and products:
Common Symbols Reference
| LaTeX | Renders as | Usage |
|---|---|---|
\mathbb{R} |
Real numbers | |
\mathbb{C} |
Complex numbers | |
\mathbb{Z} |
Integers | |
\partial |
Partial derivative | |
\nabla |
Gradient / del | |
\otimes |
Tensor product | |
\oplus |
Direct sum | |
\hookrightarrow |
Injection | |
\twoheadrightarrow |
Surjection | |
\iff |
If and only if | |
\forall |
For all | |
\exists |
There exists |
Writing Tips
- For long display equations that may overflow on mobile, KaTeX will render them with horizontal scroll automatically.
- Avoid using
\defor\newcommandin individual posts — custom macros must be declared globally in the build config. - Use
\text{...}inside math mode for prose snippets: . - Prefer
\langle \rangleover< >for inner products: .