mquinson / po4a

Maintain the translations of your documentation with ease (PO for anything)
http://po4a.org/
GNU General Public License v2.0
121 stars 58 forks source link

\input should not be parsed when it's part of a verbatim environment (po4a::tex: Cannot find 'main.tex' with kpsewhich) #421

Closed Freed-Wu closed 6 months ago

Freed-Wu commented 1 year ago

example.tex

\begin{verbatim}
\documentclass[ignorenonframetext]{beamer}
\input{main.tex}
\end{verbatim}

po4a-gettexttize will search main.tex by kpsewhich, however, it doesn't exist, so it failed.

In fact, it is hard to handle. must detect if \input is surrounded by verbatim, minted, lslsting ... So if there are something to allow user skip the non-exist file?