From d1e280672ee3e75b9e440660d9539bbe2df08183 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 May 2024 21:09:04 +0000 Subject: support \index optional argument, tex4ht r1520 git-svn-id: svn://tug.org/texlive/trunk@71312 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht | 10 +++++++--- Master/texmf-dist/tex/generic/tex4ht/index.4ht | 10 ++++++++-- Master/texmf-dist/tex/generic/tex4ht/indextools.4ht | 11 ++++++++--- Master/texmf-dist/tex/generic/tex4ht/memoir.4ht | 10 ++++++++-- 4 files changed, 31 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/tex/generic/tex4ht') diff --git a/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht b/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht index 16af14dc0ea..e6feef1b9a7 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht @@ -1,5 +1,5 @@ -% imakeidx.4ht (2022-11-27-07:50), generated from tex4ht-4ht.tex -% Copyright 2019-2022 TeX Users Group +% imakeidx.4ht (2024-05-20-13:21), generated from tex4ht-4ht.tex +% Copyright 2019-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-27-07:50} +\immediate\write-1{version 2024-05-20-13:21} \def\:temp#1#2#3{\html:addr% @@ -34,6 +34,10 @@ \fi \Configure{@begin}{theindex}{\ind:defs\imki@maybeaddtotoc} +\ExplSyntaxOn +\renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}} +\def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}} +\ExplSyntaxOff \Hinput{imakeidx} diff --git a/Master/texmf-dist/tex/generic/tex4ht/index.4ht b/Master/texmf-dist/tex/generic/tex4ht/index.4ht index 1e6c2bc82b4..372b7128940 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/index.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/index.4ht @@ -1,5 +1,6 @@ -% index.4ht (2024-04-07-07:55), generated from tex4ht-4ht.tex +% index.4ht (2024-05-20-13:21), generated from tex4ht-4ht.tex % Copyright 1999-2009 Eitan M. Gurari +% Copyright 2024 TeX Users Group % Copyright 2009-2024 TeX Users Group % % This work may be distributed and/or modified under the @@ -17,7 +18,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2024-04-07-07:55} +\immediate\write-1{version 2024-05-20-13:21} \ifx \a:makeindex\:UnDef \NewConfigure{makeindex}{1} \Configure{makeindex}{} @@ -85,6 +86,11 @@ } \fi +\ExplSyntaxOn +\renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}} +\def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}} +\ExplSyntaxOff + \Hinput{index} \endinput 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 diff --git a/Master/texmf-dist/tex/generic/tex4ht/memoir.4ht b/Master/texmf-dist/tex/generic/tex4ht/memoir.4ht index 364a0f85953..e9d47c6ea24 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/memoir.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/memoir.4ht @@ -1,5 +1,6 @@ -% memoir.4ht (2024-01-13-13:40), generated from tex4ht-4ht.tex +% memoir.4ht (2024-05-20-13:21), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari +% Copyright 2003-2024 TeX Users Group % Copyright 2009-2024 TeX Users Group % % This work may be distributed and/or modified under the @@ -17,7 +18,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2024-01-13-13:40} +\immediate\write-1{version 2024-05-20-13:21} \input book.4ht \input verse.4ht @@ -145,6 +146,11 @@ \fi \fi +\ExplSyntaxOn +\renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}} +\def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}} +\ExplSyntaxOff + \Hinput{memoir} \endinput -- cgit v1.2.3