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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{align*} breaks the parser #77

Open
pepelsbey opened this issue Sep 26, 2024 · 1 comment
Open

{align*} breaks the parser #77

pepelsbey opened this issue Sep 26, 2024 · 1 comment

Comments

@pepelsbey
Copy link

I used some MathML to LaTeX converters to supply annotations for all MathML formulas on MDN. I also tested some outputs with TeXZilla and noticed that formulas using {align*} weren't properly parsed. Once replaced with \begin{aligned}, it worked fine.

Errored:

\begin{align*}
  x + 3y + 4z &= 2 \\
      3y - 4z &= 5 \\
            z &= 4
\end{align*}

Worked:

\begin{aligned}
  x + 3y + 4z &= 2 \\
      3y - 4z &= 5 \\
            z &= 4
\end{aligned}

Not sure what’s the difference (the rendering seems identical), but other parsers support the {align*} notation. For example, Temml.

@fred-wang
Copy link
Owner

Apparently this is to control automatic numbering of formulas: https://tex.stackexchange.com/questions/9514/whats-the-difference-between-align-and-align

TeXZilla follows https://golem.ph.utexas.edu/~distler/blog/itex2MMLcommands.html and so does not support the starred versions.

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

No branches or pull requests

2 participants