antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Error parsing LaTeX expression when including dynamically sizing delimiters \left( and \right)

Open daegerte opened this issue 6 months ago • 2 comments

I get this error when using the parser on my code which works fine generating ReportLab PDF reports from LaTeX.

Error parsing LaTeX expression: missing '}' at '(' \frac{U_d}{1+0.1\left(V_d+Y_d \theta_{dm}\right) D_{eq}}

\left and \right are used for delimiters when they have to change the size dynamically depending on the content. That is an important difference to regular parenthesis and ought to be understood by the parser. https://tex.stackexchange.com/questions/77589/what-do-the-pieces-of-latex-left-and-right-respectively-mean https://docs.aspose.com/tex/java/latex-math-delimiters/

Thank you for considering this.

daegerte avatar Jun 20 '25 20:06 daegerte

This issue belongs to the grammars repo.

ericvergnaud avatar Jun 22 '25 09:06 ericvergnaud

There is no "latex" grammar in grammars-v4. This issue doesn't below there either.

kaby76 avatar Jun 22 '25 09:06 kaby76