%% %% This is file `showidx.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% makeindx.dtx (with options: `showidx') %% %% This is a generated file. %% %% Copyright 1993 1994 1995 1996 1997 %% The LaTeX3 Project and any individual authors listed elsewhere %% in this file. %% %% For further copyright information, and conditions for modification %% and distribution, see the file legal.txt, and any other copyright %% notices in this file. %% %% This file is part of the LaTeX2e system. %% ---------------------------------------- %% This system is distributed in the hope that it will be useful, %% but WITHOUT ANY WARRANTY; without even the implied warranty of %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. %% %% For error reports concerning UNCHANGED versions of this file no %% more than one year old, see bugs.txt. %% %% Please do not request updates from us directly. Primary %% distribution is through the CTAN archives. %% %% %% IMPORTANT COPYRIGHT NOTICE: %% %% You are NOT ALLOWED to distribute this file alone. %% %% You are allowed to distribute this file under the condition that it %% is distributed together with all the files listed in manifest.txt. %% %% If you receive only some of these files from someone, complain! %% %% %% Permission is granted to copy this file to another file with a %% clearly different name and to customize the declarations in that %% copy to serve the needs of your installation, provided that you %% comply with the conditions in the file legal.txt. %% %% However, NO PERMISSION is granted to generate or to distribute a %% modified version of this file under its original name. %% %% You are NOT ALLOWED to change this file. %% %% %% MODIFICATION ADVICE: %% %% If you want to customize this file, it is best to make a copy of %% the source file(s) from which it was produced. Use a different %% name for your copy(ies) and modify the copy(ies); this will ensure %% that your modifications do not get overwritten when you install a %% new release of the standard system. You should also ensure that %% your modified source file does not generate any modified file with %% the same name as a standard file. %% %% You can then easily distribute your modifications by distributing %% the modified and renamed copy of the source file, taking care to %% observe the conditions in legal.txt; this will ensure that other %% users can safely use your modifications. %% %% You will also need to produce your own, suitably named, .ins file to %% control the generation of files from your source file; this file %% should contain your own preambles for the files it generates, not %% those in the standard .ins files. %% %% The names of the source files used are shown above. %% %% %% \ProvidesPackage{showidx} [1995/04/19 v1.0j Standard LaTeX package] \newinsert\indexbox \dimen\indexbox=\maxdimen \renewcommand\index{\@bsphack\begingroup \@sanitize\catcode32=10\relax\@index} \renewcommand\makeindex{\if@filesw \newwrite\@indexfile \immediate\openout\@indexfile=\jobname.idx \def\index{\@bsphack\begingroup \def\protect####1{\string####1\space}\@sanitize \catcode32=10 \@wrindex\@indexfile}\typeout {Writing index file \jobname.idx }\fi} \def\@wrindex#1#2{\let\thepage\relax \xdef\@gtempa{\write#1{\string \indexentry{#2}{\thepage}}}\endgroup\@gtempa \@showidx{#2}\if@nobreak \ifvmode\nobreak\fi\fi\@esphack} \def\@index#1{\@showidx{#1}\endgroup\@esphack} \def\@showidx#1{% \insert\indexbox{\small \hsize\marginparwidth \hangindent\marginparsep \parindent\z@ \everypar{}\let\par\@@par \parfillskip\@flushglue \lineskip\normallineskip \baselineskip .8\normalbaselineskip\sloppy \raggedright \leavevmode \vrule \@height .7\normalbaselineskip \@width \z@\relax #1\relax \vrule \@height \z@ \@depth .3\normalbaselineskip \@width \z@}} \renewcommand\raggedbottom{\def\@textbottom{\vskip \z@ plus.0001fil}\let\@texttop\@mkidx} \renewcommand\flushbottom{\let\@textbottom\relax \let\@texttop\@mkidx} \def\@mkidx{\vbox to \z@{\hbox{\if@twocolumn \if@firstcolumn \@leftidx \else \@rightidx \fi \else \if@twoside \ifodd\c@page \@rightidx \else \@leftidx \fi \else \@rightidx \fi \fi \box\indexbox}\vss}} \def\@leftidx{\hskip-\marginparsep \hskip-\marginparwidth} \def\@rightidx{\hskip\columnwidth \hskip\marginparsep} \flushbottom \endinput %% %% End of file `showidx.sty'.