-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Problem with custom Latex environment inside of custom list environment items #7953
Labels
Comments
Here's what I note:
I'll have to dig into the code to figure this one out. |
More experiments:
|
Even smaller:
which is how pandoc expands the environment
This is the root issue, I think. |
However this is fine!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I'm trying to read a Latex document in Pandoc with the following structure:
Pandoc v. 2.17.1.1 (
pandoc -t json example.tex
) gives me the following errorThe document compiles without errors with pdflatex.
What I have tried / observed:
\item
. If I replace\item{...}
by\item...
it works (I don't know why).foo
, it works (again, I don't know why).\newlist
from the enumitem package doesn't fix the error.\begin{myenvironment}bar\end{myenvironment}
with\begin{center}bar\end{center}
, it works.Does someone know what cause the problem here? I have a document that uses custom lists like above that I would like to convert with Pandoc, if possible without changes to the document. However, changes to the macro definitions would be no problem as a fix for me.
Thanks for your fantastic work on parsing Latex by the way, most of my documents work great!
The text was updated successfully, but these errors were encountered: