Introduce an aligned environment

This is almost like the align* environment, but it starts out in math mode,
so we don't have to worry about the fact that we have no real surrounding
text mode in KaTeX.  This is the first step towards align* and align.
This commit is contained in:
Martin von Gagern
2015-11-23 13:14:02 +01:00
parent b9c4237ac2
commit 8201501d77
5 changed files with 54 additions and 0 deletions

View File

@@ -12,6 +12,11 @@
# on the next line. See http://www.yaml.org/ for syntax details.
Accents: \vec{A}\vec{x}\vec x^2\vec{x}_2^2\vec{A}^2\vec{xA}^2
Aligned: |
\begin{aligned}
a &= 1 & b &= 2 \\
3a &= 3 & 17b &= 34
\end{aligned}
Arrays: |
\left(\begin{array}{|rl|c||}
1&2&3\\