diff options
author | Karl Berry <karl@freefriends.org> | 2008-07-10 00:24:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-07-10 00:24:59 +0000 |
commit | e4fb8ad1bf0f0317d71d7a20682f33066ac7541a (patch) | |
tree | 485c5b24baafefad84404d5d645087cfdd889ad2 /Master/texmf-dist/tex/latex/oberdiek | |
parent | d1b9ac95c80378c820fbc31a4a35f5a0ab0ee043 (diff) |
oberdiek (scrindex 1.0) update (9jul08)
git-svn-id: svn://tug.org/texlive/trunk@9411 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/scrindex.sty | 212 |
1 files changed, 212 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/scrindex.sty b/Master/texmf-dist/tex/latex/oberdiek/scrindex.sty new file mode 100644 index 00000000000..c1fee2e817a --- /dev/null +++ b/Master/texmf-dist/tex/latex/oberdiek/scrindex.sty @@ -0,0 +1,212 @@ +%% +%% This is file `scrindex.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% scrindex.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3 of this license or (at your option) any later +%% version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file scrindex.dtx +%% and the derived files +%% scrindex.sty, scrindex.pdf, scrindex.ins, scrindex.drv, +%% scrindex-example1.tex, scrindex-example2.tex. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{scrindex} + [2008/07/07 v1.0 Package index with scr* classes (HO)]% +\RequirePackage{index}[2004/01/20]% +\@ifclassloaded{scrartcl}{% + \renewenvironment{theindex}{% + \edef\indexname{% + \the\@nameuse{idxtitle@\@indextype}% + }% + \if@twocolumn + \@restonecolfalse + \else + \@restonecoltrue + \fi + \idx@heading + \thispagestyle{\indexpagestyle}% + \columnseprule\z@ + \columnsep 35\p@ + \index@preamble\par\nobreak + \parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \parfillskip\z@ \@plus 1fil\relax + \let\item\@idxitem + }{% + \if@restonecol + \onecolumn + \else + \clearpage + \fi + }% + \@ifclasswith{scrartcl}{idxtotoc}{% + \renewcommand*{\idx@heading}{% + \twocolumn[% + \addsec{\indexname}% + \ifx\index@prologue\@empty + \else + \index@prologue + \bigskip + \fi + ]% + \@mkboth{\indexname}{\indexname}% + }% + }{% + \renewcommand*{\idx@heading}{% + \twocolumn[% + \section*{\indexname}% + \ifx\index@prologue\@empty + \else + \index@prologue + \bigskip + \fi + ]% + \@mkboth{\indexname}{\indexname}% + }% + }% +}{} +\@ifclassloaded{scrreprt}{% + \renewenvironment{theindex}{% + \edef\indexname{% + \the\@nameuse{idxtitle@\@indextype}% + }% + \if@twocolumn + \@restonecolfalse + \else + \@restonecoltrue + \fi + \setchapterpreamble{\index@preamble}% + \idx@heading + \thispagestyle{\indexpagestyle}% + \columnseprule\z@ + \columnsep 35\p@ + \parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \parfillskip\z@ \@plus 1fil\relax + \let\item\@idxitem + }{% + \if@restonecol + \onecolumn + \else + \clearpage + \fi + }% + \@ifclasswith{scrreprt}{idxtotoc}{% + \renewcommand*{\idx@heading}{% + \if@openright + \cleardoublepage + \else + \clearpage + \fi + \twocolumn[% + \addchap{\indexname}% + \ifx\index@prologue\@empty + \else + \index@prologue + \bigskip + \fi + ]% + \@mkboth{\indexname}{\indexname}% + }% + }{% + \renewcommand*{\idx@heading}{% + \if@openright + \cleardoublepage + \else + \clearpage + \fi + \twocolumn[% + \chapter*{\indexname}% + \ifx\index@prologue\@empty + \else + \index@prologue + \bigskip + \fi + ]% + \@mkboth{\indexname}{\indexname}% + }% + }% +}{} +\@ifclassloaded{scrbook}{% + \renewenvironment{theindex}{% + \edef\indexname{% + \the\@nameuse{idxtitle@\@indextype}% + }% + \if@twocolumn + \@restonecolfalse + \else + \@restonecoltrue + \fi + \setchapterpreamble{\index@preamble}% + \idx@heading + \thispagestyle{\indexpagestyle}% + \columnseprule\z@ + \columnsep 35\p@ + \parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \parfillskip\z@ \@plus 1fil\relax + \let\item\@idxitem + }{% + \if@restonecol + \onecolumn + \else + \clearpage + \fi + }% + \@ifclasswith{scrbook}{idxtotoc}{% + \renewcommand*{\idx@heading}{% + \if@openright + \cleardoublepage + \else + \clearpage + \fi + \twocolumn[% + \addchap{\indexname}% + \ifx\index@prologue\@empty + \else + \index@prologue + \bigskip + \fi + ]% + \@mkboth{\indexname}{\indexname}% + }% + }{% + \renewcommand*{\idx@heading}{% + \if@openright + \cleardoublepage + \else + \clearpage + \fi + \twocolumn[% + \chapter*{\indexname}% + \ifx\index@prologue\@empty + \else + \index@prologue + \bigskip + \fi + ]% + \@mkboth{\indexname}{\indexname}% + }% + }% +}{} +\endinput +%% +%% End of file `scrindex.sty'. |