alvinwan / TexSoup

fault-tolerant Python3 package for searching, navigating, and modifying LaTeX documents
https://texsoup.alvinwan.com
BSD 2-Clause "Simplified" License
290 stars 43 forks source link

Can't parse an array inside the equation environment #152

Open Khodunov opened 11 months ago

Khodunov commented 11 months ago

If you try to parse the following TeX file:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}

\begin{document}

Solve a system of linear equations:
\begin{equation}
\left\{\begin{array}{l}
x + y = 3\\
x - y = 1
\end{array}\right.
\end{equation}

\end{document}

the parser will raise an error:

EOFError: [Line: 0, Offset: 44] "equation" env expecting \end{equation}. Instead got \end{array}\