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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Jun 6 15:31:52 CEST 2024


Author: michal_h21
Date: 2024-06-06 13:31:52 +0000 (Thu, 06 Jun 2024)
New Revision: 1527

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed error with otherkeywords style in listings

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-05-28 19:03:35 UTC (rev 1526)
+++ trunk/lit/ChangeLog	2024-06-06 13:31:52 UTC (rev 1527)
@@ -1,3 +1,9 @@
+2024-06-06  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (listings.4ht): fixed error with otherkeywords
+	style.
+	https://tex.stackexchange.com/a/719878/2891
+
 2024-05-28  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): renamed jurabib cofigurations to

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-05-28 19:03:35 UTC (rev 1526)
+++ trunk/lit/tex4ht-4ht.tex	2024-06-06 13:31:52 UTC (rev 1527)
@@ -33343,10 +33343,17 @@
 \NewConfigure{listings-init}{2}
 >>>
 
+Use the TextStyle hook to insert markup for inline listings. This hook can 
+be used also in other contexts, so we need to execute it conditionally, 
+based on the \Verb|\lst at ifmode| condition. 
+See \Link[https://tex.stackexchange.com/q/719828/2891]{}{}for example\EndLink.
+
 \<listings sty\><<<
 \lst at AddToHook{TextStyle}{%
    \Configure{listings}{}{}{}{}%
-   \a:lstinline \bgroup \aftergroup\b:lstinline\aftergroup\egroup
+   \lst at ifmode\else%
+   \a:lstinline \bgroup \aftergroup\b:lstinline\aftergroup\egroup%
+   \fi%
   }
 \NewConfigure{lstinline}{2}
 >>>



More information about the tex4ht-commits mailing list.