Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

array and matrix environments don't ignore trailing newlines #337

Closed
wchargin opened this issue Aug 24, 2015 · 2 comments 路 Fixed by #479
Closed

array and matrix environments don't ignore trailing newlines #337

wchargin opened this issue Aug 24, 2015 · 2 comments 路 Fixed by #479
Labels

Comments

@wchargin
Copy link

Everyone likes trailing commas! But trailing newlines in matrices seem to add an extra newline 馃槩

LaTeX source to test:

\documentclass{article}

\pagestyle{empty}

\usepackage{amsmath}

\begin{document}

\[
  \begin{bmatrix}
    a & b \\
    c & d \\ 
  \end{bmatrix}
\]

\end{document}

LaTeX output:
LaTeX output doesn't show the blank line

KaTeX output:
KaTeX output has an extra blank line

@wchargin
Copy link
Author

For reference, the Other Library has the behavior of LaTeX:
The Other Library agrees with pdflatex

@xymostech
Copy link
Contributor

馃憤 Thanks for this! Trailing newlines should definitely be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants