| 1 |
%% |
| 2 |
%% This is file `showidx.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% makeindx.dtx (with options: `showidx') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs.html |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2025 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the LaTeX base system. |
| 21 |
%% -------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2008 or later. |
| 30 |
%% |
| 31 |
%% This file has the LPPL maintenance status "maintained". |
| 32 |
%% |
| 33 |
%% This file may only be distributed together with a copy of the LaTeX |
| 34 |
%% base system. You may however distribute the LaTeX base system without |
| 35 |
%% such generated files. |
| 36 |
%% |
| 37 |
%% The list of all files belonging to the LaTeX base distribution is |
| 38 |
%% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 39 |
%% information. |
| 40 |
%% |
| 41 |
%% The list of derived (unpacked) files belonging to the distribution |
| 42 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 43 |
%% extension .ins) which are part of the distribution. |
| 44 |
\ProvidesPackage{showidx} |
| 45 |
[2021/10/04 v1.0m Standard LaTeX package] |
| 46 |
\newinsert\indexbox |
| 47 |
\dimen\indexbox=\maxdimen |
| 48 |
\renewcommand\index{\@bsphack\begingroup |
| 49 |
\@sanitize\catcode32=10\relax\@index} |
| 50 |
\renewcommand\makeindex{\if@filesw \newwrite\@indexfile |
| 51 |
\immediate\openout\@indexfile=\jobname.idx |
| 52 |
\def\index{\@bsphack\begingroup |
| 53 |
\def\protect####1{\string####1\space}\@sanitize |
| 54 |
\catcode32=10 \@wrindex\@indexfile}\typeout |
| 55 |
{Writing index file \jobname.idx }\fi} |
| 56 |
\def\@wrindex#1#2{\let\thepage\relax |
| 57 |
\xdef\@gtempa{\write#1{\string |
| 58 |
\indexentry{#2}{\thepage}}}\endgroup\@gtempa |
| 59 |
\@showidx{#2}\if@nobreak \ifvmode\nobreak\fi\fi\@esphack} |
| 60 |
\def\@index#1{\@showidx{#1}\endgroup\@esphack} |
| 61 |
\def\@showidx#1{% |
| 62 |
\insert\indexbox{\small |
| 63 |
\hsize\marginparwidth |
| 64 |
\hangindent\marginparsep \parindent\z@ |
| 65 |
\everypar{}\let\par\@@par \parfillskip\@flushglue |
| 66 |
\lineskip\normallineskip |
| 67 |
\baselineskip .8\normalbaselineskip\sloppy |
| 68 |
\raggedright \leavevmode |
| 69 |
\vrule \@height .7\normalbaselineskip \@width \z@\relax |
| 70 |
#1\relax |
| 71 |
\vrule \@height \z@ \@depth .3\normalbaselineskip \@width \z@}} |
| 72 |
\renewcommand\raggedbottom{\def\@textbottom{\vskip |
| 73 |
\z@ plus.0001fil}\let\@texttop\@mkidx} |
| 74 |
\renewcommand\flushbottom{\let\@textbottom\relax |
| 75 |
\let\@texttop\@mkidx} |
| 76 |
\def\@mkidx{\vbox to \z@{\hbox{\if@twocolumn |
| 77 |
\if@firstcolumn \@leftidx \else \@rightidx \fi |
| 78 |
\else \if@twoside \ifodd\c@page \@rightidx |
| 79 |
\else \@leftidx \fi |
| 80 |
\else \@rightidx \fi |
| 81 |
\fi |
| 82 |
\box\indexbox}\vss}} |
| 83 |
\def\@leftidx{\hskip-\marginparsep \hskip-\marginparwidth} |
| 84 |
\def\@rightidx{\hskip\columnwidth \hskip\marginparsep} |
| 85 |
\flushbottom |
| 86 |
\endinput |
| 87 |
%% |
| 88 |
%% End of file `showidx.sty'. |