[tex4ht] [bug #221] Escaped LaTeX code inside lstlisting insert spurious <pre> elements
Michal Hoftich
puszcza-hackers at gnu.org.ua
Sun Jul 13 22:29:59 CEST 2014
URL:
<http://puszcza.gnu.org.ua/bugs/?221>
Summary: Escaped LaTeX code inside lstlisting insert spurious
<pre> elements
Project: tex4ht
Submitted by: michal_h21
Submitted on: Sun 13 Jul 2014 11:29:59 PM EEST
Category: None
Priority: 5 - Normal
Severity: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This is repost of a thread from TeX.sx[1].
OP created his own syntax highlighting environment using listings package. He
used escapechar feature to insert LaTeX macros inside this environment.
Unfortunately, escapechar call the same macros as tex4ht use for inserting end
and start tags of listings environment, `\lst at EnterMode` and `\lst:EnterMode`
respectively, so these tags are inserted into the code.
I added new conditional to test whether these macros are used for the first
time in current listings environment.
Patch agains tex4ht-4ht.tex literate source is attached.
[1] http://tex.stackexchange.com/q/188322/2891
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 13 Jul 2014 11:29:59 PM EEST Name: listings.patch Size: 1kB By:
michal_h21
<http://puszcza.gnu.org.ua/bugs/download.php?file_id=174>
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?221>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list