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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Feb 13 17:44:35 CET 2020


Author: michal_h21
Date: 2020-02-13 18:44:34 +0200 (Thu, 13 Feb 2020)
New Revision: 664

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Added support for the \lstlistoflistings command

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-02-09 13:09:29 UTC (rev 663)
+++ trunk/lit/ChangeLog	2020-02-13 16:44:34 UTC (rev 664)
@@ -1,3 +1,9 @@
+2020-02-13 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (listings.4ht): added support for the \lstlistoflistings
+	command.
+	https://tex.stackexchange.com/a/528310/2891
+
 2020-02-09 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (usepackage-fontspec.4ht): don't block the Fontenc package

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-02-09 13:09:29 UTC (rev 663)
+++ trunk/lit/tex4ht-4ht.tex	2020-02-13 16:44:34 UTC (rev 664)
@@ -29582,7 +29582,17 @@
 \HLet\lst at frameExit=\empty
 >>>
 
+Configure list of listings
+
 \<listings sty\><<<
+\ConfigureToc{lol} {}{\empty}{}{\newline}
+\lst at UserCommand\lstlistoflistings{\bgroup%
+    \ifdefined\chapter\chapter*{\lstlistlistingname}\else\section*{\lstlistlistingname}\fi%
+    \TableOfContents[lol]%
+  \egroup}
+>>>
+
+\<listings sty\><<<
 \def\lst at NewLine{%
    \ifx\lst at OutputBox\@gobble\else \the\everypar \fi
    \global\advance\lst at newlines\m at ne



More information about the tex4ht-commits mailing list.