3 \ifcat a\noexpand @\let\next\relax\else \def\next{%
4 \documentclass{kluwer}\usepackage{doc}\MakePercentIgnore}\fi\next
5 \NeedsTeXFormat{LaTeX2e}
6 \def\filedate{1998/03/17}
7 \def\filename{klulist.sty}
8 %\DoNotIndex{\@M,\def,\c@secnumdepth,\baselineskip,\@pnumwidth,\else,\fi}
9 %\DoNotIndex{\newcommand,\z@,\relax,\renewcommand,\ifnum,\csname,\endcsname}
10 %\DoNotIndex{\baselineskip,\vskip,\hskip,\relax,\secdef,\refstepcounter}
11 %\DoNotIndex{\normalsize,\numberline,\protect,\endinput}
13 %\newcommand{\Bs}{$\backslash$}
18 %\addtolength{\textwidth}{4pc}
23 %\author{Kluwer Academic Publishers\surname{}}
26 % This internal stylefile takes care of list definitions and `general'
27 % environments. There is one option: |kaplist|.
31 %\newpage\section{Usage}
32 % For the time being, all environments for which it is not so clear
33 % where to put them are placed in this file. This came about because
34 % most of these are |\trivlist| alike, but is quite arbitrary.
36 % As a result, this stylefile defines the following `common'
37 % environments: \\[6pt]
47 % And, of course, |itemize|, |enumerate| and |description|.
48 %\newpage\section{Implementation}
50 \ProvidesPackage{klulist}[\filedate ]
52 \DeclareOption{kaplist}{\@kaplisttrue}
56 % The label and counter default values for |enumerate|. Reference
57 % output at a level above 3 starts to look ridiculous.
59 \def\labelenumi{\arabic{enumi}.} % 1.
60 \def\theenumi{\arabic{enumi}} % 1
61 \def\labelenumii{\alph{enumii})} % a)
62 \def\theenumii{\alph{enumii}} % a
63 \def\p@enumii{\theenumi} % 1a
64 \def\labelenumiii{\it\roman{enumiii})} % \it i)
65 \def\theenumiii{\roman{enumiii}} % i
66 \def\p@enumiii{\theenumi(\theenumii)} % 1(a)\it i)
67 \def\labelenumiv{\Alph{enumiv})} % A)
68 \def\theenumiv{\Alph{enumiv}} % A
69 \def\p@enumiv{\p@enumiii\theenumiii} % 1(a)\it i)A
73 \def\labelitemi{\m@th$-$}
74 \def\labelitemii{\m@th$\bullet$}
75 \def\labelitemiii{\m@th$\ast$}
76 \def\labelitemiv{{\footnotesize +}}
80 \def\descriptionlabel#1{\hspace\labelsep \bf #1}
81 \newenvironment{description}{%
84 \itemindent -\leftmargin
85 \let\makelabel\descriptionlabel
89 % \subsection{kaplist}
90 % This changes quite a lot of things.
92 % Insert different options to |\list|
96 \topsep \z@ \@plus 1pt
97 \partopsep \z@ \@plus 1pt
98 \itemsep \z@ \@plus \z@
99 \parsep \z@ \@plus 1pt
108 \let\kapenumargs\kapitemargs
110 % Changed |\@mklab| from |[ 1]| to |[1 ]|
112 \renewcommand{\@mklab}[1]{#1\hfil}
118 % \newpage \subsection{Other environments}
119 % These are the environments that we {\it have\/} to define.
121 % This enumerate has an optional argument and uses that to implement dynamic
122 % resizing of the left margin.
124 % This itemize has an extra optional argument that gives the default label.
127 \@ifnextchar[{\kap@enumerate}{\kap@enumerate[00]}}
128 \def\kap@enumerate[#1]{%
129 \ifnum \@enumdepth >3 \@toodeep\else
130 \advance\@enumdepth \@ne
131 \edef\@enumctr{enum\romannumeral\the\@enumdepth}
132 \list{\csname label\@enumctr\endcsname}{%
134 \usecounter{\@enumctr}
135 \settowidth\labelwidth{#1.}
136 \setlength{\leftmargin}{\labelwidth}
137 \addtolength{\leftmargin}{\labelsep}
138 \def\makelabel##1{\hss \llap{##1}}}%
141 \let\endenumerate\endlist
142 \def\itemize{\@ifnextchar[{\kap@itemize}{\kap@itemize[]}}
143 \def\kap@itemize[#1]{\def\klu@arg{#1}%
144 \ifnum \@itemdepth >3 \@toodeep
146 \advance\@itemdepth \@ne
147 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
149 \list {\csname\@itemitem\endcsname}%
151 \def\makelabel##1{\hss ##1\hfil}}%
155 \def\makelabel##1{\hss ##1\hfil}}%
159 \let\enditemize\endlist
160 \def\verse{\let\\=\@centercr
163 \listparindent \itemindent
164 \rightmargin\leftmargin
165 \advance\leftmargin 1.5em
167 \let\endverse\endlist
169 \def\quotation{\quoteskip
172 \topsep .5ex plus 2pt minus 1pt
173 \itemindent\listparindent
176 \hskip-\listparindent}
177 \def\endquotation{\endlist\quoteskip}
179 \def\quote{\quoteskip\list{}{%
181 \topsep .5ex plus 2pt minus 1pt
183 \def\endquote{\endlist\quoteskip}
186 \def\frontmatter{\begingroup\thispagestyle{empty}%
187 \renewcommand{\thepage}{\roman{page}}\setcounter{page}{1}}
188 \def\endfrontmatter{\newpage\endgroup\setcounter{page}{1}}
190 % \newpage\subsection{`New' environments}
191 % The |notes| environment is used for incapsulation of `endnotes' that
194 \newenvironment{notes}{\sectioncmd*{\notesname}\footnotesize
195 \begin{enumerate}}{\end{enumerate}%
196 \par \vskip 6pt \@plus 12pt \@minus 2pt}
197 \def\notesname{Notes}
200 % This is the |vitae| environment. It does not use a list, but `item's
201 % are specified through |\Vauthor|. The name is defined in
202 % |\vitaename| and |\multiplevitaename|.
204 % The choice between these two names is done by checking the value of
205 % |enumiv|, which is incremented by every |\Vauthor|.
207 \newenvironment{vitae}{%
209 \setcounter{enumiv}{0}%
210 \global\setbox0=\vbox\bgroup
214 \par\section*{\multiplevitaename}%
216 \par\section*{\vitaename}%
218 \unvbox0 \endgroup \par
221 \newcommand{\Vauthor}[1]{%
222 \addtocounter{enumiv}{1}%
225 \def\vitaename{Author's Vitae}%
226 \def\multiplevitaename{Authors' Vitae}%
228 % |ao| will be typeset at the end of an article.
229 % I exchanged the |\if| for a permanent |\box|, because
230 % the box is needed anyway.
233 \newenvironment{ao}{%
236 \footnotesize\noindent
238 % Watch out for the fixed space here.
240 \ifx\offprintsaddress\empty
243 {\it \offprintsaddress:\/}\
246 {\par\vskip18pt\egroup}
247 \newcommand{\make@ao}{%
249 \ifdim \@tempdima > 0pt
250 \par\noindent \unvbox\aobox
254 % This is a name that is not done at |\begin{document}|, because
255 % certain style may want to change this. The saveguard above is in
256 % case a style defines it to be empty.
258 \newcommand{\offprintsaddress}{Address for Offprints}
259 \newenvironment{thenomenclature}{\section*{Nomenclature}
260 \parbox[t]{.48\textwidth}\bgroup\parindent 0pt
261 \footnotesize \begin{tabular}{p{2pc}p{11pc}}}{%
262 \end{tabular}\egroup}
263 \newcommand{\splitnomen}{\end{tabular}\egroup~\parbox[t]{.48\textwidth}%
264 \bgroup\parindent 0pt \footnotesize \begin{tabular}{p{2pc}p{11pc}}}
265 \newcommand{\nmc}[1]{\parbox[t]{11pc}{\raggedright #1}}
266 \def\verbatim@font{\normalsize\tt}
267 \def\acknowledgementsname{Acknowledgements}%
268 \def\acknowledgements{\section*{\acknowledgementsname}%
269 \message{\acknowledgementsname}}
270 \def\endacknowledgements{\par \bigskip}