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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Feb 16 10:56:58 CET 2022


Author: michal_h21
Date: 2022-02-16 09:56:58 +0000 (Wed, 16 Feb 2022)
New Revision: 1077

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
load xcolor with listings

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-02-10 16:55:31 UTC (rev 1076)
+++ trunk/lit/ChangeLog	2022-02-16 09:56:58 UTC (rev 1077)
@@ -1,3 +1,8 @@
+2022-02-16  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (listings.4ht): load Xcolor with Listings to
+	prevent compilation errors with the syntax color detection.
+
 2022-02-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (usepackage.4ht, breakurl-hooks.4ht): fixed

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-02-10 16:55:31 UTC (rev 1076)
+++ trunk/lit/tex4ht-4ht.tex	2022-02-16 09:56:58 UTC (rev 1077)
@@ -30722,6 +30722,14 @@
 \endinput
 >>>        \AddFile{9}{listings}
 
+We use Xcolor's features to extract color information for syntax highlighting.
+We need to load it if it isn't used  yet
+\<listings sty\><<<
+\@ifpackageloaded{xcolor}{}{%
+\RequirePackage{xcolor}
+}
+>>>
+
 For some reason we need the followng version of \`|\@makecaption| in order to
 get correct cross-references. There were duplicate IDs sometimes.
 



More information about the tex4ht-commits mailing list.