summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-05-20 21:09:04 +0000
committerKarl Berry <karl@freefriends.org>2024-05-20 21:09:04 +0000
commitd1e280672ee3e75b9e440660d9539bbe2df08183 (patch)
tree4dc7bcd57f5503586c8e6545221d698ae1e5433d /Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
parent40edbd1a04173ee748a58a791efdb235969b3fc4 (diff)
support \index optional argument, tex4ht r1520
git-svn-id: svn://tug.org/texlive/trunk@71312 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/indextools.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/indextools.4ht11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht b/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
index 75375481b60..cfb361f5de3 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
@@ -1,5 +1,5 @@
-% indextools.4ht (2022-11-25-13:16), generated from tex4ht-4ht.tex
-% Copyright 2022 TeX Users Group
+% indextools.4ht (2024-05-20-13:21), generated from tex4ht-4ht.tex
+% Copyright 2022-2024 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-11-25-13:16}
+\immediate\write-1{version 2024-05-20-13:21}
\def\:tempa[#1]#2{\html:addr%
\ifindtl@splitindex\else% with splitindex, we would get duplicate index entry destinations
@@ -42,6 +42,11 @@
\KV@indtl@noautomatictrue
\indtl@disableautomatictrue
+\ExplSyntaxOn
+\renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}}
+\def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}}
+\ExplSyntaxOff
+
\Hinput{indextools}
\endinput