-
-
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
latex to epub problem (\ifdefined
not defined)
#9049
Comments
Actually I think the problem comes from: \ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[frame hidden, sharp corners, interior hidden, borderline west={3pt}{0pt}{shadecolor}, enhanced, breakable, boxrule=0pt]}{\end{tcolorbox}}\fi Comment that out and it works. It may have something to do with parsing of the environment options in square brackets: removing Interestingly, changing
to
also makes it work! |
For completeness, the error message is:
|
OK, the root cause, I think, is that |
It would be difficult to accurately implement TODO? Implement |
\ifdefined
not defined)
Explain the problem.
pandoc -f latex -t epub test.tex -o test.epub
Testfile is exported from a ipynb file to latex. I guess the environment variable makes the problem.
\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}}
If you comment out the environment, it works.
%\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}}
Pandoc version?
MacOS Ventura 13.5.1
pandoc 3.1.7
Features: +server +lua
Scripting engine: Lua 5.4
test_tex.txt
The text was updated successfully, but these errors were encountered: