You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a really weird one. The following math notation looks wrong (mind the order of the brackets), but compiles into LaTeX
\documentclass{article}
\begin{document}
\[\Big{(a + b \Big)}^2\]\end{document}
It fails in KaTeX, and really I can't blame KaTeX.
What's going on in LaTeX? \Big is a command that accepts one argument. As usual, if no brackets are here, it's just the first thing it sees, it many cases a bracket like \Big(. In the "typo" above, however, it takes the whole (a + b \Big) as argument, but it really only acts on the first bracket in there.
If you want to improve LaTeX compatibility, this could be fixed.
The text was updated successfully, but these errors were encountered:
Fascinating; I didn't know this works in LaTeX, but I confirmed that it does. I wonder if \Big fully expands the first argument in order to get the first character? I'll have to look at the original code to be sure.
Granted, I don't think this is the most important thing to fix, but it'd be a small nicety. In any case, thanks for reporting. A PR would also be welcome!
Here's a really weird one. The following math notation looks wrong (mind the order of the brackets), but compiles into LaTeX
It fails in KaTeX, and really I can't blame KaTeX.
What's going on in LaTeX?
\Big
is a command that accepts one argument. As usual, if no brackets are here, it's just the first thing it sees, it many cases a bracket like\Big(
. In the "typo" above, however, it takes the whole(a + b \Big)
as argument, but it really only acts on the first bracket in there.If you want to improve LaTeX compatibility, this could be fixed.
The text was updated successfully, but these errors were encountered: