diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:27 +0000 |
commit | e9351f8ac4f8603d6020be78e092e939e24d89d0 (patch) | |
tree | 8685ab79522a6950137c99cb014279dedf34e334 /Master/texmf-dist/tex/latex/ncclatex/nccindex.sty | |
parent | 1fa165c67ca6c4bade32ffbec3cfcc8ea860507c (diff) |
ncclatex
git-svn-id: svn://tug.org/texlive/trunk@1131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncclatex/nccindex.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ncclatex/nccindex.sty | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty new file mode 100644 index 00000000000..b0cfa2438b7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty @@ -0,0 +1,40 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{nccindex} + [2005/03/24 v1.00 Multicolumn index for NCC class (NCC)] +% +% \changes{v1.00}{2005/03/24}{This version is uploaded to CTAN} +% +% The package redefines index-preparing commands 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{multicol} +\renewenvironment*{NCC@index}[1]{% + \if@twocolumn \onecolumn \fi + \noheadingtag + \@ifundefined{chapter}{\section{#1}}{\chapter{#1}}% + \columnseprule\z@ \columnsep 2em + \parindent\z@ \parskip\z@ \@plus .3\p@ + \NCC@index@ + \NCC@indexstart +}{\end{multicols}} +% +% \indexparameters{columns}{indexspace}{margin1}{margin2}{margin3}{style} +% +\newcommand*\indexparameters[6]{% + \def\NCC@index@{#6\begin{multicols}{#1}% + \def\indexspace{\par\addvspace{#2}}% + \def\@idxitem{\par\hangindent #5\relax}% + \def\item{\@idxitem\pagebreak[0]\leavevmode\nopagebreak\ignorespaces}% + \def\subitem{\@idxitem \hspace*{#3}}% + \def\subsubitem{\@idxitem \hspace*{#4}}% + }% +} +\indexparameters{2}{4ex \@plus 1ex \@minus .5ex}{2em}{4em}{5em}{\small} +% +% \startindexwith{text} +% +\newcommand\startindexwith{\long\def\NCC@indexstart} +\startindexwith{} +\endinput |