Debian Codegraph @

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

raw
1 % index.4ht (2025-06-10-13:08), generated from tex4ht-4ht.tex
2 % Copyright 1999-2009 Eitan M. Gurari
3 % Copyright 2024 TeX Users Group
4 % Copyright 2009-2025 TeX Users Group
5 %
6 % This work may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either
8 % version 1.3c of this license or (at your option) any
9 % later version. The latest version of this license is in
10 % https://www.latex-project.org/lppl.txt
11 % and version 1.3c or later is part of all distributions
12 % of LaTeX version 2005/12/01 or later.
13 %
14 % This work has the LPPL maintenance status "maintained".
15 %
16 % The Current Maintainer of this work
17 % is the TeX4ht Project <https://tug.org/tex4ht>.
18 %
19 % If you modify this program, changing the
20 % version identification would be appreciated.
21 \immediate\write-1{version 2025-06-10-13:08}
22
23 \ifx \a:makeindex\:UnDef
24 \NewConfigure{makeindex}{1} \Configure{makeindex}{}
25 \fi
26
27 \expandafter\ifx \csname @vwritefile\endcsname\relax
28 \pend:defII\@wrindex{\warn:idx{##1}\title:chs{\html:addr
29 \hbox{\Link-{}{x\last:haddr}\EndLink}}{}%
30 \edef\:temp{\write\@auxout{%
31 \string\@writefile{##1}{\expandafter\string\a:idxmake{\RefFileNumber
32 \FileNumber}{\title:chs{x\last:haddr}{\cur:th
33 \:currentlabel}}{\a:makeindex}}}}\:temp
34 }
35 % this should prevent errors if the document file is named index.tex
36 \providecommand\printindex{}
37 \pend:def\printindex{\def\indexname{\the\@nameuse{idxtitle@\@indextype}}}
38 \bgroup
39 \@ifpackageloaded{imakeidx}{
40 \expandafter\gdef\csname idx:extI\endcsname#1{#1}
41 \expandafter\gdef\csname idx:extII\endcsname#1{#1}
42 }{
43 \catcode`\:=12
44 \expandafter\gdef\csname idx:extI\endcsname#1:#2//{#1}
45 \expandafter\gdef\csname idx:extII\endcsname#1:#2:#3//{#2}
46 }
47
48 \egroup
49
50
51 \else
52 \pend:defII\@wrindex{\warn:idx{##1}\title:chs{\html:addr
53 \hbox{\Link-{}{x\last:haddr}\EndLink}}{}%
54 \edef\:temp{\write\@auxout{%
55 \string\@vwritefile{##1}{\expandafter\string\a:idxmake{\RefFileNumber
56 \FileNumber}{\title:chs{x\last:haddr}{\cur:th
57 \:currentlabel}}{\a:makeindex}}}}\:temp
58 }
59
60 \fi
61 \ExplSyntaxOn
62 \renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}}
63 \def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}}
64 \ExplSyntaxOff
65
66 \Hinput{index}
67 \endinput
68