| 1 |
%% |
| 2 |
%% This is file `scrindex.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% scrindex.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: scrindex |
| 12 |
%% Version: 2016/05/16 v1.2 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2008 Heiko Oberdiek |
| 16 |
%% 2016-2019 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/oberdiek/issues |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% This work consists of the main source file scrindex.dtx |
| 36 |
%% and the derived files |
| 37 |
%% scrindex.sty, scrindex.pdf, scrindex.ins, scrindex.drv, |
| 38 |
%% scrindex-example1.tex, scrindex-example2.tex. |
| 39 |
%% |
| 40 |
\NeedsTeXFormat{LaTeX2e} |
| 41 |
\ProvidesPackage{scrindex} |
| 42 |
[2016/05/16 v1.2 Package index with KOMA-Script classes (HO)]% |
| 43 |
\RequirePackage{index}[2004/01/20]% |
| 44 |
\@ifclassloaded{scrartcl}{% |
| 45 |
\renewenvironment{theindex}{% |
| 46 |
\edef\indexname{% |
| 47 |
\the\@nameuse{idxtitle@\@indextype}% |
| 48 |
}% |
| 49 |
\if@twocolumn |
| 50 |
\@restonecolfalse |
| 51 |
\else |
| 52 |
\@restonecoltrue |
| 53 |
\fi |
| 54 |
\idx@heading |
| 55 |
\thispagestyle{\indexpagestyle}% |
| 56 |
\columnseprule\z@ |
| 57 |
\columnsep 35\p@ |
| 58 |
\index@preamble\par\nobreak |
| 59 |
\parindent\z@ |
| 60 |
\parskip\z@ \@plus .3\p@\relax |
| 61 |
\parfillskip\z@ \@plus 1fil\relax |
| 62 |
\let\item\@idxitem |
| 63 |
}{% |
| 64 |
\if@restonecol |
| 65 |
\onecolumn |
| 66 |
\else |
| 67 |
\clearpage |
| 68 |
\fi |
| 69 |
}% |
| 70 |
\@ifclasswith{scrartcl}{idxtotoc}{% |
| 71 |
\renewcommand*{\idx@heading}{% |
| 72 |
\twocolumn[% |
| 73 |
\addsec{\indexname}% |
| 74 |
\ifx\index@prologue\@empty |
| 75 |
\else |
| 76 |
\index@prologue |
| 77 |
\bigskip |
| 78 |
\fi |
| 79 |
]% |
| 80 |
\@mkboth{\indexname}{\indexname}% |
| 81 |
}% |
| 82 |
}{% |
| 83 |
\renewcommand*{\idx@heading}{% |
| 84 |
\twocolumn[% |
| 85 |
\section*{\indexname}% |
| 86 |
\ifx\index@prologue\@empty |
| 87 |
\else |
| 88 |
\index@prologue |
| 89 |
\bigskip |
| 90 |
\fi |
| 91 |
]% |
| 92 |
\@mkboth{\indexname}{\indexname}% |
| 93 |
}% |
| 94 |
}% |
| 95 |
}{} |
| 96 |
\@ifclassloaded{scrreprt}{% |
| 97 |
\renewenvironment{theindex}{% |
| 98 |
\edef\indexname{% |
| 99 |
\the\@nameuse{idxtitle@\@indextype}% |
| 100 |
}% |
| 101 |
\if@twocolumn |
| 102 |
\@restonecolfalse |
| 103 |
\else |
| 104 |
\@restonecoltrue |
| 105 |
\fi |
| 106 |
\setchapterpreamble{\index@preamble}% |
| 107 |
\idx@heading |
| 108 |
\thispagestyle{\indexpagestyle}% |
| 109 |
\columnseprule\z@ |
| 110 |
\columnsep 35\p@ |
| 111 |
\parindent\z@ |
| 112 |
\parskip\z@ \@plus .3\p@\relax |
| 113 |
\parfillskip\z@ \@plus 1fil\relax |
| 114 |
\let\item\@idxitem |
| 115 |
}{% |
| 116 |
\if@restonecol |
| 117 |
\onecolumn |
| 118 |
\else |
| 119 |
\clearpage |
| 120 |
\fi |
| 121 |
}% |
| 122 |
\@ifclasswith{scrreprt}{idxtotoc}{% |
| 123 |
\renewcommand*{\idx@heading}{% |
| 124 |
\if@openright |
| 125 |
\cleardoublepage |
| 126 |
\else |
| 127 |
\clearpage |
| 128 |
\fi |
| 129 |
\twocolumn[% |
| 130 |
\addchap{\indexname}% |
| 131 |
\ifx\index@prologue\@empty |
| 132 |
\else |
| 133 |
\index@prologue |
| 134 |
\bigskip |
| 135 |
\fi |
| 136 |
]% |
| 137 |
\@mkboth{\indexname}{\indexname}% |
| 138 |
}% |
| 139 |
}{% |
| 140 |
\renewcommand*{\idx@heading}{% |
| 141 |
\if@openright |
| 142 |
\cleardoublepage |
| 143 |
\else |
| 144 |
\clearpage |
| 145 |
\fi |
| 146 |
\twocolumn[% |
| 147 |
\chapter*{\indexname}% |
| 148 |
\ifx\index@prologue\@empty |
| 149 |
\else |
| 150 |
\index@prologue |
| 151 |
\bigskip |
| 152 |
\fi |
| 153 |
]% |
| 154 |
\@mkboth{\indexname}{\indexname}% |
| 155 |
}% |
| 156 |
}% |
| 157 |
}{} |
| 158 |
\@ifclassloaded{scrbook}{% |
| 159 |
\renewenvironment{theindex}{% |
| 160 |
\edef\indexname{% |
| 161 |
\the\@nameuse{idxtitle@\@indextype}% |
| 162 |
}% |
| 163 |
\if@twocolumn |
| 164 |
\@restonecolfalse |
| 165 |
\else |
| 166 |
\@restonecoltrue |
| 167 |
\fi |
| 168 |
\setchapterpreamble{\index@preamble}% |
| 169 |
\idx@heading |
| 170 |
\thispagestyle{\indexpagestyle}% |
| 171 |
\columnseprule\z@ |
| 172 |
\columnsep 35\p@ |
| 173 |
\parindent\z@ |
| 174 |
\parskip\z@ \@plus .3\p@\relax |
| 175 |
\parfillskip\z@ \@plus 1fil\relax |
| 176 |
\let\item\@idxitem |
| 177 |
}{% |
| 178 |
\if@restonecol |
| 179 |
\onecolumn |
| 180 |
\else |
| 181 |
\clearpage |
| 182 |
\fi |
| 183 |
}% |
| 184 |
\@ifclasswith{scrbook}{idxtotoc}{% |
| 185 |
\renewcommand*{\idx@heading}{% |
| 186 |
\if@openright |
| 187 |
\cleardoublepage |
| 188 |
\else |
| 189 |
\clearpage |
| 190 |
\fi |
| 191 |
\twocolumn[% |
| 192 |
\addchap{\indexname}% |
| 193 |
\ifx\index@prologue\@empty |
| 194 |
\else |
| 195 |
\index@prologue |
| 196 |
\bigskip |
| 197 |
\fi |
| 198 |
]% |
| 199 |
\@mkboth{\indexname}{\indexname}% |
| 200 |
}% |
| 201 |
}{% |
| 202 |
\renewcommand*{\idx@heading}{% |
| 203 |
\if@openright |
| 204 |
\cleardoublepage |
| 205 |
\else |
| 206 |
\clearpage |
| 207 |
\fi |
| 208 |
\twocolumn[% |
| 209 |
\chapter*{\indexname}% |
| 210 |
\ifx\index@prologue\@empty |
| 211 |
\else |
| 212 |
\index@prologue |
| 213 |
\bigskip |
| 214 |
\fi |
| 215 |
]% |
| 216 |
\@mkboth{\indexname}{\indexname}% |
| 217 |
}% |
| 218 |
}% |
| 219 |
}{} |
| 220 |
\endinput |
| 221 |
%% |
| 222 |
%% End of file `scrindex.sty'. |