You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently no conditional constructions are supported.
I think we should add support for `\newtoggle`,
`\toggletrue`, `\togglefalse`, `\iftoggle` (from
etoolbox). These would not be hard to support.
It's about the \toggle -- as it is implemented in pandoc right now -- being on a per-file scope.
This fails when using a LaTeX document w/ multiple input source files that make use of the \toggle.
It would be appreciated having the \toggle feature supported in a global manner. Just set up the \toggle in the main LaTeX file and handle the \toggletrue as needed and wherever needed.
pandoc 1.19.2.1
A latex file as follows
\documentclass{article}
\begin{document}
\newtoggle{ebook}
\toggletrue{ebook}
\iftoggle{ebook}{
text
}{
%not ebook
}
more
\end{document}
put through pandoc as follows:
pandoc -f latex test.tex -t native -o test.atx
produces file test.atx as follows:
[Para [Str "more"]]
So it appears Pandoc does not support the whole conditional concept of "toggle". Is there a supported method of latex conditionals in Pandoc?
Thanks!
The text was updated successfully, but these errors were encountered: