From f73af38d37769b430c6bf6275c6657cbb8bf88cc Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Fri, 27 Mar 2020 20:43:13 -0500 Subject: [PATCH] Suggest using the `aligned` environment (#1275) for a system of equations. --- docs/src/man/latex.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/src/man/latex.md b/docs/src/man/latex.md index cd899be0c5..dc41da3fc1 100644 --- a/docs/src/man/latex.md +++ b/docs/src/man/latex.md @@ -71,6 +71,22 @@ Here's an equation: ``` This is the binomial coefficient. + +--- + +To write a system of equations, use the `aligned` environment: + +```math +\begin{aligned} +\nabla\cdot\mathbf{E} &= 4 \pi \rho \\ +\nabla\cdot\mathbf{B} &= 0 \\ +\nabla\times\mathbf{E} &= - \frac{1}{c} \frac{\partial\mathbf{B}}{\partial t} \\ +\nabla\times\mathbf{B} &= - \frac{1}{c} \left(4 \pi \mathbf{J} + \frac{\partial\mathbf{E}}{\partial t} \right) +\end{aligned} +``` + +These are Maxwell's equations. + ```` which will be displayed as @@ -84,3 +100,18 @@ Here's an equation: ``` This is the binomial coefficient. + +--- + +To write a system of equations, use the `aligned` environment: + +```math +\begin{aligned} +\nabla\cdot\mathbf{E} &= 4 \pi \rho \\ +\nabla\cdot\mathbf{B} &= 0 \\ +\nabla\times\mathbf{E} &= - \frac{1}{c} \frac{\partial\mathbf{B}}{\partial t} \\ +\nabla\times\mathbf{B} &= - \frac{1}{c} \left(4 \pi \mathbf{J} + \frac{\partial\mathbf{E}}{\partial t} \right) +\end{aligned} +``` + +These are Maxwell's equations.