Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-splitidx.sty

raw
1 %%
2 %% This is file `lwarp-splitidx.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `splitidx')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18
19 \LWR@ProvidesPackagePass{splitidx}[2016/02/18]
20 \VerifyCommand[lwarp][splitidx]{\newindex}{84695DF9965D5007036BA0B4023C59B5}
21
22 \catcode`\_=12%
23 \xpatchcmd{\newindex}
24 {\jobname-#2.idx}
25 {\jobname-#2_html.idx}
26 {}
27 {\LWR@patcherror{splitidx}{@newindex}}
28 \catcode`\_=8%
29 \VerifyCommand[lwarp][splitidx]{\@wrsindex}{6E1A6193E20ABD0DFD6A1FC3F35113A6}
30
31 \renewcommand*{\@wrsindex}[2][]{%
32 \ifx\relax#1\relax
33 \if@splitidx
34 \@wrsindex[idx]{#2}%
35 \else
36 \def\@tempa{#2}%
37 \if@verbindex\@onelevel@sanitize\@tempa\fi
38 \@wrindex{\@tempa}%
39 \fi
40 \else
41 \def\@tempa{#2}%
42 \csname index@#1@hook\endcsname
43 \addtocounter{LWR@autoindex}{1}% lwarp
44 \@@@wrsindex{#1}{{\@tempa}{\arabic{LWR@autoindex}}}%
45 \label{LWRindex-\arabic{LWR@autoindex}}% lwarp
46 \endgroup
47 \@esphack
48 \fi
49 }
50 \xpatchcmd{\printsubindex}
51 {\let\section\subsection}
52 {\renewcommand*{\section}{\subsection}}
53 {}
54 {\LWR@patcherror{splitidx}{printsubindex-section}}
55
56 \xpatchcmd{\printsubindex}
57 {\let\chapter\section}
58 {\renewcommand*{\chapter}{\section}}
59 {}
60 {\LWR@patcherror{splitidx}{printsubindex-chapter}}
61
62 \xpatchcmd{\printsubindex}
63 {\let\@makechapterhead\section}
64 {\def\@makechapterhead{\section}}
65 {}
66 {\LWR@patcherror{splitidx}{printsubindex-chapter}}
67 \endinput
68 %%
69 %% End of file `lwarp-splitidx.sty'.