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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon May 20 14:21:13 CEST 2024


Author: michal_h21
Date: 2024-05-20 12:21:13 +0000 (Mon, 20 May 2024)
New Revision: 1520

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
added support for optional argument of the \index command inside of \caption

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-05-19 14:40:58 UTC (rev 1519)
+++ trunk/lit/ChangeLog	2024-05-20 12:21:13 UTC (rev 1520)
@@ -1,3 +1,11 @@
+2024-05-20  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (
+	index.4ht, imakeidx.4ht, memoir.4ht, indextools.4ht
+	): added support for optional argument of \index used inside of
+	\caption.
+	https://tex.stackexchange.com/a/718360/2891
+
 2024-05-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (lettrine.4ht): defined more keys supported by the

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-05-19 14:40:58 UTC (rev 1519)
+++ trunk/lit/tex4ht-4ht.tex	2024-05-20 12:21:13 UTC (rev 1520)
@@ -12261,6 +12261,13 @@
 \ExplSyntaxOff
 >>>
 
+\<latex caption index optional\><<<
+\ExplSyntaxOn
+\renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}}
+\def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}}
+\ExplSyntaxOff
+>>>
+
 \<latex caption index save\><<<
 \:initsaveindex%
 \let\index\:saveindex%
@@ -16530,6 +16537,7 @@
    |<memoir 2008|>
    |<mempatch cfg|>
 \fi
+|<latex caption index optional|>
 \Hinput{memoir}
 \endinput
 >>>        \AddFile{8}{memoir}
@@ -32420,6 +32428,7 @@
 \else 
   |<index 3.02|>
 \fi
+|<latex caption index optional|>
 \Hinput{index}
 \endinput
 >>>        \AddFile{7}{index}
@@ -32523,8 +32532,8 @@
 |<TeX4ht license text|>
 
 |<imakeidx.sty|>
+|<latex caption index optional|>
 
-
 \Hinput{imakeidx}
 \endinput
 >>> \AddFile{7}{imakeidx}
@@ -32593,6 +32602,7 @@
 |<indextools index|>
 |<indextools defs|>
 |<indextools disable options|>
+|<latex caption index optional|>
 
 \Hinput{indextools}
 \endinput



More information about the tex4ht-commits mailing list.