Debian Codegraph @

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

raw
1 % splitidx.4ht (2025-01-05-08:19), generated from tex4ht-4ht.tex
2 % Copyright 2003-2009 Eitan M. Gurari
3 % Copyright 2009-2025 TeX Users Group
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % https://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2025-01-05-08:19}
21
22 \def\warn:idx#1{%
23 \expandafter\ifx \csname #1warn:idx\endcsname\relax
24 \expandafter\global
25 \expandafter\let \csname #1warn:idx\endcsname\def
26 \:warning{If not done so, the index is to be processed by
27 ^^J\space\space tex '\string\def\string\filename
28 {{#1}{idx}{4dx}{ind}} \noexpand\input\space idxmake.4ht'
29 ^^J\space\space move #1.4dx #1.idx
30 ^^Jbefore invoking
31 ^^J\space\space splitindex #1.idx
32 ^^JOn some platforms, the quotation marks ' should be
33 ^^J replaced by double quotation marks " or eliminated.
34 }%
35 {\Configure{Needs}{File: #1.4idx}\Needs{}}%
36 \fi}
37
38 \pend:defII\@@@wrsindex{%
39 \if@splitidx
40 \warn:idx{##1}%
41 \@ifundefined{@indexfile@##1}{}{\html:addr
42 \hbox{\Link-{}{\a:indexhaddr
43 }\EndLink}%
44 \edef\:temp{\expandafter
45 \write\csname @indexfile@##1\endcsname{\expandafter
46 \string\a:idxmake{\RefFileNumber
47 \FileNumber}{\a:indexhaddr
48 }{\a:makeindex}}}\:temp}%
49 \else
50 \warn:idx{\jobname}%
51 \html:addr \hbox{\Link-{}{\a:indexhaddr
52 }\EndLink
53 \edef\:temp{%
54 \write\@indexfile{\expandafter\string\a:idxmake{\RefFileNumber
55 \FileNumber}{\a:indexhaddr
56 }{\a:makeindex}}}\:temp}%
57 \fi
58 }
59 \ifx \a:makeindex\:UnDef
60 \NewConfigure{makeindex}{1} \Configure{makeindex}{}
61 \fi
62
63 \Hinput{splitidx}
64 \endinput
65