[tex4ht] [bug #648] Using listings package with texcl option enabled breaks comment rendering

Michal Hoftich puszcza-hackers at gnu.org.ua
Thu Feb 20 17:58:58 CET 2025


Follow-up Comment #1, bug #648 (project tex4ht):

Thanks for the report. It seems that there are three issues:

- extra linebreak before the comment contents
- collapsed spaces
- missing highlighting

This config file should fix all of that:

\Preamble{xhtml}

\catcode`\:=11
\makeatletter
\pend:def\lst at escapebegin{\csname
b:listings-init\endcsname\nobreak\hbox\bgroup\lsthk at OutputBox}
\append:def\lst at escapeend{\lsthk at PostOutput\egroup\csname
a:listings-init\endcsname}
\makeatother
\catcode`\:=12

\begin{document}
\EndPreamble


    _______________________________________________________

Reply to this item at: <https://puszcza.gnu.org.ua/bugs/?648>

_______________________________________________
Message sent via/by Puszcza <https://puszcza.gnu.org.ua/>



More information about the tex4ht mailing list.