bugtex4ht - Bugs: bug #221, Escaped LaTeX code inside...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #221: Escaped LaTeX code inside lstlisting insert spurious <pre> elements

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Sun 13 Jul 2014 11:29:59 PM EEST  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 14 Jul 2014 02:02:16 AM EEST, comment #1:

thanks very much, installed in tex4ht + tex live.

Karl Berry <karl>
Project Administrator
Sun 13 Jul 2014 11:29:59 PM EEST, original submission:

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@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

Michal Hoftich <michal_h21>
Project Member

 

Attached Files
file #174:  listings.patch added by michal_h21 (1kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Jul 2014 02:02:16 AM EESTkarlOpen/ClosedOpen=>Closed
    Sun 13 Jul 2014 11:29:59 PM EESTmichal_h21Attached File-=>Added listings.patch, #174
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray