Template:Eqn
Usage
Used to add new rows of aligned math text.
You can add a new general row in the following manner:
{{eqn |l=
|r=
}}
The different possible variables that can be used are:
- n - Right at the very far left (when needed), to be used for numbering, i.e. for labels.
- ll - Furthest left column.
- lo - Next furthest left column (usually for operators on multi-line equations).
- l - General left column.
- o - Operator, defaults to $=$
- r - General right column.
- ro - Next furthest right column (usually for operators on multi-line equations).
- rr - Furthest right column.
- c - Comment
- cc - Extra comment (used only when needed).
Math delimiters (i.e.
Once the full equation is completed,
Warning
Do not put two closing curly brackets together, e.g.
Put a space between them:
Also beware: the vertical bar character $|$ can not be included anywhere in $\LaTeX$ used to define equations using this template.
- Use \vert instead of |: it produces $\vert$.
- Use \Vert instead of || or \|: it produces $\Vert$.
These commands may also be used in conjunction with \left and \right commands for automatic sizing.
Other constructs may also misbehave. Please beware.
Example
{{begin-eqn}}
{{eqn-title|Test equation}}
{{eqn | l=42
| r=21 \cdot 2
}}
{{eqn | o=\le|r=12345
| c=since $21 \cdot 2 = 42 \le 12345$
}}
{{end-eqn}}
gives:
| \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle 42\) | \(=\) | \(\displaystyle 21 \cdot 2\) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | |||
| \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | \(\le\) | \(\displaystyle 12345\) | \(\displaystyle \) | \(\displaystyle \) | \(\displaystyle \) | since $21 \cdot 2 = 42 \le 12345$ |