[tex4ht-commits] [SCM] tex4ht updated: r225 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Dec 15 17:04:03 CET 2016


Author: michal_h21
Date: 2016-12-15 18:04:02 +0200 (Thu, 15 Dec 2016)
New Revision: 225

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed listings support with mathescape option

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2016-12-15 00:54:19 UTC (rev 224)
+++ trunk/lit/ChangeLog	2016-12-15 16:04:02 UTC (rev 225)
@@ -1,3 +1,8 @@
+2016-12-15  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (listings.4ht): Fixed support for mathescape
+	option
+
 2016-12-14  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (xcolor.4ht): copyright.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2016-12-15 00:54:19 UTC (rev 224)
+++ trunk/lit/tex4ht-4ht.tex	2016-12-15 16:04:02 UTC (rev 225)
@@ -28295,10 +28295,13 @@
 \endinput
 >>>        \AddFile{9}{listings}
 
+I don't know why there used to be clearing of math environment, it 
+disabled  listings option to work correctly. Also patching of 
+\`|\lsthk at EveryLine| should be done in every call to this command.
+
 \<listings sty\><<<
 \newif\iflstnest
 \append:defII\lst at EnterMode{%
-  \iflstnest\else
   \ifx \lsthk:EveryLine\:UnDef
      \let\lsthk:EveryLine\lsthk at EveryLine
   \fi
@@ -28307,8 +28310,9 @@
              \def\dd:listings{\d:listings\let\dd:listings\empty}}%
   \fi  
   \append:def\lsthk at EveryPar{\dd:listings}%
+  \iflstnest\else
   \a:listings\fi\bgroup  
-  \Configure{$}{}{}{}%
+  %\Configure{$}{}{}{}%
   \aftergroup\lst:EnterMode  }
 \def\lst:EnterMode{\iflstnest\else\b:listings\fi\egroup}
 \NewConfigure{listings}{4}



More information about the tex4ht-commits mailing list