summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncclatex/nccindex.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccindex.sty17
1 files changed, 9 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty
index b0cfa2438b7..551ec196333 100644
--- a/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty
@@ -1,24 +1,25 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nccindex}
- [2005/03/24 v1.00 Multicolumn index for NCC class (NCC)]
+ [2005/12/24 v1.01 Multicolumn index for NCC class (NCC)]
%
% \changes{v1.00}{2005/03/24}{This version is uploaded to CTAN}
+% \changes{v1.01}{2005/12/24}{Do package independent on ncc class}
%
-% The package redefines index-preparing commands on the base of multicol
+% The package redefines index on the base of multicol
% package. Some index control commands are specified here.
%
-\@ifundefined{NCC@index}{%
- \PackageError{nccindex}{The package is used with the ncc class only}{}}{}
+\RequirePackage{topsection}
\RequirePackage{multicol}
-\renewenvironment*{NCC@index}[1]{%
+\def\NCC@index#1{%
\if@twocolumn \onecolumn \fi
- \noheadingtag
- \@ifundefined{chapter}{\section{#1}}{\chapter{#1}}%
+ \topsection{#1}%
\columnseprule\z@ \columnsep 2em
\parindent\z@ \parskip\z@ \@plus .3\p@
\NCC@index@
\NCC@indexstart
-}{\end{multicols}}
+}
+\def\endNCC@index{\end{multicols}}
+\renewenvironment{theindex}{\NCC@index\indexname}{\endNCC@index}
%
% \indexparameters{columns}{indexspace}{margin1}{margin2}{margin3}{style}
%