Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.01 KB

environments.md

File metadata and controls

32 lines (24 loc) · 1.01 KB

Environments (\begin and \end)

XAML-Math supports environments: ability to introduce certain context for the nested markup.

\begin{environment-name} starts an environment named environment-name, \end{environment-name} ends it. Every \begin should be followed by a corresponding \end. Environments could be nested.

List of currently supported environment names:

  • pmatrix: works the same as the corresponding matrix command.

    Examples:

    \begin{pmatrix} a & b & c \\ d & e & f \end{pmatrix}

    This works the same as:

    \pmatrix{a & b & c \\ d & e & f}
  • align: used for equation alignment.

    For example, this will make the left and right parts of equations aligned:

    \begin{align} x+1 &= y + 1 \\ x &= y-1 \end{align}

    And this will allow to put the equations into several columns:

    \begin{align} x+1 &= y + 1 & a &= b + 1 \\ x &= y-1 & b + a &= c \end{align}