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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sun Apr 25 15:15:01 CEST 2021


Author: michal_h21
Date: 2021-04-25 13:15:01 +0000 (Sun, 25 Apr 2021)
New Revision: 914

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed \Picture support in listings

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-04-25 12:46:47 UTC (rev 913)
+++ trunk/lit/ChangeLog	2021-04-25 13:15:01 UTC (rev 914)
@@ -8,6 +8,8 @@
 	* tex4ht-html4.tex (html4.4ht): test for \Picture inside \a:HChar.
 	* tex4ht-unicode.tex (unicode.4ht): use correct definition of \:nbsp.
 	* tex4ht-html4.tex (html4.4ht): use \:nbsp in listings configurations.
+	* tex4ht-4ht.tex (listings.4ht): fixed configurations in order to support
+	\Picture*. (Thanks to Linas Stonys).
 
 2021-04-22  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-04-25 12:46:47 UTC (rev 913)
+++ trunk/lit/tex4ht-4ht.tex	2021-04-25 13:15:01 UTC (rev 914)
@@ -30243,11 +30243,12 @@
 >>>
 
 \<listings sty\><<<
-\def\lst at NewLine{%
+\def\:tempa{%
    \ifx\lst at OutputBox\@gobble\else \the\everypar \fi
    \global\advance\lst at newlines\m at ne
    \lst at newlinetrue
 }%
+\HLet\lst at NewLine\:tempa
 \def\lst at InputListing#1{% 
     \begingroup 
       \lsthk at PreSet \gdef\lst at intname{#1}% 
@@ -30265,7 +30266,7 @@
 >>>
 
 \<listings sty\><<<
-\def\lst at Kern#1{% 
+\def\:tempa#1{% 
    \setbox\z@\hbox{{\lst at currstyle{\kern#1}}}% 
    \global\advance\lst at currlwidth \wd\z@ 
    \tmp:dim=#1 \let\:tempc=\empty
@@ -30276,6 +30277,7 @@
    \repeat
    \setbox\z@\hbox{{\lst at currstyle{\:tempc}}}%
    \lst at OutputBox\z@} 
+\HLet\lst at Kern\:tempa
 \NewConfigure{lst at Kern}{2}
 \Configure{lst at Kern}{0.499em}{0.1em}
 >>>



More information about the tex4ht-commits mailing list.