Create prominent, display-style mathematical equations that stand out from your content using the LaTeX Math Block Macro.
The Block Macro renders mathematical equations in display mode - centered, larger, and separated from surrounding text. Perfect for important formulas, complex equations, and multi-line mathematical expressions.
Use block macros when:
Use inline macros instead for:
/latex
The block macro supports multiple LaTeX syntaxes:
\[
E = mc^2
\]
$$
E = mc^2
$$
E = mc^2
The macro automatically renders in display mode
\begin{equation}
E = mc^2
\end{equation}
Block macros support three alignment modes:
Equations are centered on the page.
Equations align to the left margin.
Equations align to the right margin.
To change alignment:
LaTeX:
\[
E = mc^2
\]
Result: Energy-mass equivalence displayed prominently
LaTeX:
\[
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\]
Result: The quadratic formula in display mode
LaTeX:
\[
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
\]
Result: Gaussian integral
LaTeX:
\[
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
\]
Result: Sum of first n natural numbers
LaTeX:
\[
A = \begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
\]
Result: 2×2 matrix
LaTeX:
\[
\begin{cases}
x + y = 5 \\
2x - y = 1
\end{cases}
\]
Result: System of linear equations
LaTeX:
\[
\begin{align}
f(x) &= x^2 + 2x + 1 \\
&= (x + 1)^2
\end{align}
\]
Result: Multi-line aligned equation
LaTeX:
\[
\lim_{x \to \infty} \frac{1}{x} = 0
\]
Result: Limit notation
LaTeX:
\[
\frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}
\]
Result: Wave equation
LaTeX:
\[
\oint_C \vec{F} \cdot d\vec{r} = \iint_S (\nabla \times \vec{F}) \cdot d\vec{S}
\]
Result: Stokes' theorem
Use environments like align, gather, or multline:
\begin{align}
a^2 + b^2 &= c^2 \\
\sin^2\theta + \cos^2\theta &= 1 \\
e^{i\pi} + 1 &= 0
\end{align}
Multiple matrix styles are supported:
% Regular matrix
\begin{matrix}
a & b \\
c & d
\end{matrix}
% Parentheses
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
% Brackets
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
% Vertical bars (determinant)
\begin{vmatrix}
a & b \\
c & d
\end{vmatrix}
\[
\ce{CO2 + H2O -> H2CO3}
\]
\[
f(x) = \begin{cases}
x^2 & \text{if } x \geq 0 \\
-x^2 & \text{if } x < 0
\end{cases}
\]
$...$ in block macrosYou can combine text and equations in a single block:
Consider the equation:
\[
E = mc^2
\]
where $E$ is energy, $m$ is mass, and $c$ is the speed of light.
Note: Inline equations (
$...$) within block macros work as expected.
Problem: Block equation appears left-aligned
Solution:
Problem: Multi-line equations appear on one line
Solution:
align, gather)\\ for line breaks within environments\n or \newlineProblem: Matrix shows as text
Solution:
\begin{matrix}...\end{matrix}\\ line breaks& for column separationProblem: Equations too close to text
Solution:
Display important formulas prominently in educational content.
Present theorems, proofs, and derivations clearly.
Show calculations and formulas in technical docs.
Format equations according to academic standards.
Display statistical formulas and models.