transpect / xml2tex

Converts XML to LaTeX
BSD 2-Clause "Simplified" License
43 stars 4 forks source link

Always escape % in \href #12

Closed roberthechtletex closed 9 months ago

roberthechtletex commented 9 months ago

Please escape all % in \href with \ (backslash) – not only in the second argument, but also in the first argument.

Reason: There occurs a fatal TeX error when compiling un-escaped % in \href in a \footnote.

mkraetke commented 9 months ago

docx2tex already escapes control characters such as % in \href. I've tested this with a small sample and the % characters were properly escaped:

\begin{document}
Fußnote\footnote{\href{https://www.google.com/search?q=schei\%C3\%9Fe}{Hyperlink}}
\end{document}

Maybe you used the output from a transpect workflow that overrides the default configuration of docx2tex?

mkraetke commented 9 months ago

Was not clear that the BITS config was used. Now this issue should be resolved.