Debian Codegraph @

texmf-dist/tex/generic/tex4ht/indextools.4ht

raw
1 % indextools.4ht (2024-05-20-13:21), generated from tex4ht-4ht.tex
2 % Copyright 2022-2024 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2024-05-20-13:21}
20
21 \def\:tempa[#1]#2{\html:addr%
22 \ifindtl@splitindex\else% with splitindex, we would get duplicate index entry destinations
23 \hbox{\Link-{}{dx\last:haddr}\EndLink}%
24 \expandafter\protected@write\csname#1@idxfile\endcsname{}%
25 {\string\beforeentry{\RefFileNumber\FileNumber}{dx\last:haddr}{\a:makeindex}}%
26 \fi%
27 \o:@index:[#1]{#2}%
28 }
29 \HLet\@index\:tempa%
30
31 \ifx \a:makeindex\:UnDef
32 \NewConfigure{makeindex}{1}\Configure{makeindex}{}
33 \fi
34
35 \Configure{@begin}{theindex}{\ind:defs}
36
37 % disable redefiniton of \theindex in \AtBeginDocument
38 \indtl@originaltrue
39
40 % prevent automatic compilation of the index
41 \let\KV@indtl@noautomaticfalse\KV@indtl@noautomatictrue
42 \KV@indtl@noautomatictrue
43 \indtl@disableautomatictrue
44
45 \ExplSyntaxOn
46 \renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}}
47 \def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}}
48 \ExplSyntaxOff
49
50
51 \Hinput{indextools}
52 \endinput
53