Template:Eqn

From ProofWiki
Jump to: navigation, search

Usage

Used to add new rows of aligned math text.

{{begin-eqn}} needs to be called first.

You can add a new general row in the following manner:

{{eqn |l= 
      |r=
}}

The different possible variables that can be used are:

  1. n - Right at the very far left (when needed), to be used for numbering, i.e. for labels.
  2. ll - Furthest left column.
  3. lo - Next furthest left column (usually for operators on multi-line equations).
  4. l - General left column.
  5. o - Operator, defaults to $=$
  6. r - General right column.
  7. ro - Next furthest right column (usually for operators on multi-line equations).
  8. rr - Furthest right column.
  9. c - Comment
  10. cc - Extra comment (used only when needed).

Math delimiters (i.e. $ ... $, or \( ... \) etc.) must be used only on the c and cc lines.

Once the full equation is completed, {{end-eqn}} must be called.

Warning

Do not put two closing curly brackets together, e.g. }} because the interpreter thinks this marks the end of the template and it breaks the syntax.

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:

Test equation
\(\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$          


Personal tools
Namespaces
Variants
Actions
Navigation
ProofWiki.org
ToDo
Toolbox
Google AdSense