Katex: Aligned environment for split equations

Created on 24 Nov 2017  路  3Comments  路  Source: KaTeX/KaTeX

As KaTeX has no split environment I tried to achieve the same by using the aligned environment.
I tried the following:

\begin{alinged}
a &= b + c \\
  &= e + f
\end{aligned}

This approach works under LaTeX, but not under KaTeX. For KaTeX I have to add \\ at the end of the last line as well, otherwise the line is missing in the HTML document (see picture below):

\begin{alinged}
a &= b + c \\
  &= e + f \\
\end{aligned}

aligned

Code to produce the picture: https://gist.github.com/hagenw/1260f21203b4095a061ac3da6b01b5e4

Most helpful comment

I've also updated the demo to 0.9.0-alpha2 and have verified that it works there.
screen shot 2017-11-26 at 7 58 12 pm

All 3 comments

@hagenw, PR #949 was written to fix a problem with parsing a empty cell at the beginning of the last line in an array. I expect a release this weekend that will include PR #949. Could you try again after that release and tell me if your problem recurs?

0.9.0-alpha2 is out now! Please give a try.

I've also updated the demo to 0.9.0-alpha2 and have verified that it works there.
screen shot 2017-11-26 at 7 58 12 pm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sophiebits picture sophiebits  路  3Comments

yawnoc picture yawnoc  路  3Comments

pvnr0082t picture pvnr0082t  路  4Comments

mbourne picture mbourne  路  3Comments

asmeurer picture asmeurer  路  3Comments