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

$ in specific TeX contexts causes problems #125

Open
mdeeg opened this issue Nov 16, 2020 · 2 comments
Open

$ in specific TeX contexts causes problems #125

mdeeg opened this issue Nov 16, 2020 · 2 comments

Comments

@mdeeg
Copy link

mdeeg commented Nov 16, 2020

When parsing URLs containing a $ using the verbatim command \url from the url package TexSoup terminates with an EOFError.

Minimal example:

from TexSoup import TexSoup
soup = TexSoup(r"\url{https://test.lab/test?var=test$}")

Is there an easy way to tell TexSoup how to handle such TeX code or simply ignore specific commands completely?

@alvinwan
Copy link
Owner

@mdeeg Oh huh, I didn't realize specific commands could be treated as verbatim.

There isn't a way to tell TexSoup to ignore commands ... yet -- I can followup here when that's added.

@lmm-git
Copy link

lmm-git commented Feb 16, 2022

I think I just hit the "same" issue with the following tex input:

\begin{subblock}
  \begin{lstlisting}
    $
  \end{lstlisting}
\end{subblock}

(resulting in an EOF error as well)

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

3 participants