[tex4ht] [bug #347] escapechar not usable in lstlisting, results in loss of line breaks

Tak Auyeung auyeunt at gmail.com
Thu Dec 15 08:11:01 CET 2016


URL:
  <http://puszcza.gnu.org.ua/bugs/?347>

                 Summary: escapechar not usable in lstlisting, results in loss
of line breaks
                 Project: tex4ht
            Submitted by: tauyeung
            Submitted on: Thu 15 Dec 2016 09:11:01 AM EET
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The following code results in the loss of all line breaks <br> after the
mathescape:

\begin{lstlisting}[language=C, mathescape]
#include <stdio.h>

int main()
{
  return 0; // $x$
}
\end{lstlisting}

The output is correct once the math escape is removed. Regular latex does
render the code correctly.

Any bug fix or ways to get around this problem is much appreciated!




    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?347>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list