% This is style RAPPORT3 in text format, 
\def\styleversion{1.08}\def\styledate{22 January 1990}
% All changes with respect to 'report' indicated with %V
%
% Use 'ntg10', 'ntg11', 'ntg12' for pointsize options.
%
% English language is the default, otherwise
% use the 'Dutch' or 'German' option,
% or anything that parametrises using the same names. 
%
% Options specific to this style:
%    'oldtoc'        : for the old-fashioned souls who like
%                      dotted tables of contents.
%
% Author:
%    Victor Eijkhout
%    Mathematisch Instituut
%    Universiteit van Nijmegen
%    Toernooiveld 5
%    6525 ED  Nijmegen.
%
%    u641000@hnykun11.bitnet
%
\typeout{Documentstyle 'Rapport3'. Version <\styleversion>, <\styledate>}
%V some people like this better: oldtoc
\newif\if@oldtoc \def\ds@oldtoc{\@oldtoctrue}
%V deliberate sabotage
\def\ds@sober{}
\def\@ptsize{0} \@namedef{ds@11pt}{\def\@ptsize{1}}
\@namedef{ds@12pt}{\def\@ptsize{2}}
\def\ds@twoside{\@twosidetrue \@mparswitchtrue} 
\def\ds@draft{\overfullrule 5pt}
\@options
%V universal point size options
\input ntg1\@ptsize.sty\relax
\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}
\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}
\def\verse{\let\\=\@centercr
 \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
 \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
\def\quotation{\list{}{\listparindent 0cm %V was: 1.5em
 \itemindent\listparindent
 \rightmargin\leftmargin \parsep 0pt}\item[]}
\let\endquotation=\endlist
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist
\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist
\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt
\tabbingsep \labelsep
\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt
\newcounter{part}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\def\thepart{\Roman{part}} 
\def\thechapter {\arabic{chapter}}
\def\thesection {\thechapter.\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}
\@addtoreset{equation}{chapter}
\def\theequation{\thechapter.\arabic{equation}}
%%%%%%%%%%%%%%%%% goodies from 'Dutch' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{\contentsname\@mkboth
   {\uppercase\expandafter{\contentsname}}
   {\uppercase\expandafter{\contentsname}}}
  \parskip=0cm                                   %V very important!
  \@starttoc{toc}\if@restonecol\twocolumn\fi}
%
% \listoffigures:
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{\listfigurename\@mkboth
  {\uppercase\expandafter{\listfigurename}}
  {\uppercase\expandafter{\listfigurename}}}
  \parskip=0cm                                   %V very important!
  \@starttoc{lof}\if@restonecol
  \twocolumn\fi}
%
% \listoftables:
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{\listtablename\@mkboth
  {\uppercase\expandafter{\listtablename}}
  {\uppercase\expandafter{\listtablename}}}
  \parskip=0cm                                   %V very important!
  \@starttoc{lot}\if@restonecol
  \twocolumn\fi}
%
% \thebibliography:
\def\thebibliography#1{\chapter*{\bibname\@mkboth
  {\uppercase\expandafter{\bibname}}{\uppercase\expandafter{\bibname}}}\list
  {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \usecounter{enumi}}
    \def\newblock{\hskip 0.11em plus 0.33em minus 0.07em}
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}
%
%\theindex:
\newif\if@restonecol
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\@makeschapterhead{\indexname}]
  \@mkboth{\uppercase\expandafter{\indexname}}
          {\uppercase\expandafter{\indexname}}\thispagestyle{plain}\parindent\z@
  \parskip\z@ plus 0.3pt\relax\let\item\@idxitem}
%
% \chapter
\def\@chapapp{\chaptername}
%
% \appendix
\def\appendix{\par
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \def\@chapapp{\appendixname}
  \def\thechapter{\Alph{chapter}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% table of contents %%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{2} %V One less than in 'artikel'
\if@oldtoc
%V the old stuff. 
  \def\l@part#1#2{\addpenalty{-\@highpenalty}
   \addvspace{2.25em plus 1pt} \begingroup
   \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
  -\@pnumwidth
   {\large \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
   \nobreak \endgroup}
  \def\l@chapter#1#2{\pagebreak[3]
   \vskip 1.0em plus 1pt \@tempdima 1.5em \begingroup
   \parindent \z@ \rightskip \@pnumwidth
   \parfillskip -\@pnumwidth
   \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
   \endgroup}
  \def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  \def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  \def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  \def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  \def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  \def\toc@font#1{\relax} \def\@toccase{\relax}
  \def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
  \let\l@table=\l@figure
\else
%V the new stuff. Woopie!
  \def\l@chapter{\@regtocline{0}}
  \def\l@section{\@regtocline{1}}
  \def\l@subsection{\@regtocline{2}}
  \def\l@subsubsection{\@regtocline{3}}
  \def\l@paragraph{\@regtocline{4}}
  \def\l@subparagraph{\@regtocline{5}}
  \def\l@part{\addpenalty{-\@highpenalty}    %V dit moet beter!
   \addvspace{2.25em plus 1pt}\@regtocline{0}}
  %V this gets called in \@sect
  %V shifted one place wrt 'artikel'
  \def\toc@font#1{\ifcase#1 \bf \or \sl \or \rm \fi}
  \def\@toccase{\uppercase} %used only for parts
  \def\l@figure{\@regtocline{1}}
  \let\l@table=\l@figure
\fi
%V adapted from  @dottedtocline,
%V parameters zijn 1: diepte, 2: kop, 3: pagina.
\def\@regtocline#1#2#3{\ifnum #1>\c@tocdepth \else
  \vskip \z@ plus .2pt
  {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M 
   \leftskip\z@ \rightskip=\unitindent plus 1fil
   \@tempdima=\unitindent \parindent\z@ \leavevmode
    #2\nobreak
    \hskip 1em \nobreak{\sl #3}\par 
   }\fi}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}
%%%%%%%%%%%%%%%%%%%%%% voetnoten %%%%%%%%%%%%%%%%%%%%%5
\def\footnoterule{\kern-3\p@\kern.5\regeltransport
 \hrule width \unitindent
%V oud: \kern 2.6\p@}
 \kern.4\regeltransport} %V nieuw.
\long\def\@makefntext#1{\parindent \z@
        \def\labelitemi{--}\@revlabeltrue
        \leavevmode\hbox to .5\unitindent{$\@thefnmark$.\hfil}#1}
%%%%%%%%%%%%%%%%%%% ME floats R %%%%%%%%%%%%%%%%%%%(floats are beyond me)
\setcounter{topnumber}{2}
\def\topfraction{.7}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}
\long\def\@makecaption#1#2{
 \vskip 10pt
 \setbox\@tempboxa\hbox{#1: #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
 \fi}
\newcounter{figure}[chapter]
\def\thefigure{\thechapter.\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figurename{} \thefigure} %V dutch
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}[chapter]
\def\thetable{\thechapter.\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tablename{} \thetable} %V from Dutch
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}
%%%%%%%%%%%%%%%%%%%%%%% voorwerk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty}\c@page\z@}
\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}
%V titlepage.sty has been replaced by a Dutch version.
\input voorwerk.sty
%%%%%%%%%%%%%%%%%%%%% part en chapter %%%%%%%%%%%%%%%%%%%%%%%%
\def\part{\cleardoublepage \thispagestyle{empty} \if@twocolumn \onecolumn
\@tempswatrue \else \@tempswafalse \fi \hbox{}\vfil \bgroup \centering
\secdef\@part\@spart}
\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
        \refstepcounter{part}                     %   THEN step part counter
        \addcontentsline{toc}{part}{\thepart      %        add toc line
        \hspace{1em}\@toccase{#1}}\else           %   ELSE add unnumbered line
        \addcontentsline{toc}{part}{\@toccase{#1}}\fi        % FI
   \markboth{}{}
   {\centering                       % %% added 19 Jan 88
    \ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
      \Large\bf \edef\@tempa{\noexpand\uppercase{\partname}}\@tempa{} 
                \thepart             %   THEN Print 'Part' and number
    \par                             %         in \huge bold.
    \vskip 20pt \fi                  %        Add space before title.
    \Large \bf                       % FI
    \uppercase{#1}\par}\@endpart}    % Print Title in Large uppercase bold.
\def\@endpart{\par\egroup \vfil\newpage \if@twoside \hbox{}
\thispagestyle{empty}
 \newpage
 \fi \if@tempswa \twocolumn \fi}
\def\@spart#1{\Huge \bf #1\@endpart}
\def\@makechapterhead#1{ \vspace*{50pt plus 5pt}   %V various improvements
             {\parindent \z@ \parskip \z@ \head@style
              \ifnum \c@secnumdepth >\m@ne 
                           \Large\bf \@chapapp{} \thechapter \par
                           \vskip 20pt \fi 
              \Large \bf #1\par %V Huge removed (twice).
              \nobreak \vskip 40pt } }
\def\@makeschapterhead#1{ \vspace*{50pt plus 5pt}  %V various improvements
             {\parindent \z@ \parskip \z@ \head@style
              \Large \bf #1\par %V Huge removed.
              \nobreak \vskip 40pt } }
\def\chapter{\clearpage \thispagestyle{plain} \global\@topnum\z@
\@afterindentfalse \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
 \refstepcounter{chapter}
 \typeout{\@chapapp\space\thechapter.}
 \addcontentsline{toc}{chapter}{\protect
             \numberline{\thechapter}\toc@font0 #1}\else
 \addcontentsline{toc}{chapter}{\toc@font0 #1}\fi  %V tocfont toegevoegd
 \chaptermark{#1}
 \addtocontents{lof}{\protect\addvspace{10pt}}
\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
\@topnewpage[\@makechapterhead{#2}]
 \else \@makechapterhead{#2}
 \@afterheading \fi}
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
 \else \@makeschapterhead{#1}
 \@afterheading\fi}
\def\chaptermark#1{}
%%%%%%%%%%%%%%%%%%%%% headers / footers %%%%%%%%%%%%%%%%%%%%%%%%
%V old:
\mark{{}{}}
\if@twoside \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \sl
\leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}{}}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\else \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markright {\uppercase{\ifnum \c@secnumdepth
>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}}}
\fi
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
%V plain pagestyle altered to have pagenumbers
%V - flushright if onesided
%V - flush left and right if twosided. 
\def\ps@plain{\let\@mkboth\@gobbletwo
     \def\@oddhead{}\def\@evenhead{}%
     \def\@oddfoot{\rm\hfil\thepage}%
     \if@twoside\def\@evenfoot{\rm\thepage\hfil}%
           \else\let\@evenfoot\@oddfoot\fi}
%V modificatie:
\ps@plain \pagenumbering{arabic} \onecolumn 
%V dit verwijderd. \if@twoside\else\raggedbottom\fi
%V toegevoegd:
\frenchspacing
%%%%%%%%%%%%%%%%%%%%% section headings %%%%%%%%%%%%%%%%%%%%%%%%%%
%V added:
\newdimen\regeltransport \regeltransport=\baselineskip
\parskip=.5\regeltransport plus .1\regeltransport minus .1\regeltransport
%V lifted from ARTn.STY and adapted
%V less white space and fonts with section/sub/subsub 
\def\section{\@startsection {section}{1}{\z@}%
{-2\regeltransport plus -1\regeltransport minus -.5\regeltransport}%
{.01\regeltransport}{\large\bf}}
\def\subsection{\@startsection{subsection}{2}{\z@}%
{-\regeltransport plus -.5\regeltransport minus -.25\regeltransport}%
{.01\regeltransport}{\normalsize\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-\regeltransport plus -.5\regeltransport minus -.25\regeltransport}%
{.01\regeltransport}{\normalsize\sl}} %V slant: anders te weinig contrast
%V bij (sub)paragraph gecursiveerd in plaats van vet font
\def\paragraph{\@startsection{paragraph}{4}{\z@}%
      {3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\sl}}
\def\subparagraph{\@startsection{subparagraph}{4}{\parindent}%
      {3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\sl}}
\def\enddocument{\@checkend{document}%
    \if@needwriteindent\@writeindent{\the\unitindent}\fi%V this added
    \clearpage
    \begingroup \if@filesw \immediate\closeout\@mainaux
    \def\newlabel{\@testdef r}%
    \def\bibcite{\@testdef b}\@tempswafalse 
    \makeatletter\input \jobname.aux
    \if@tempswa \@warning{Label(s) may have changed.  Rerun to get
                cross-references right}\fi\fi\endgroup
    \deadcycles\z@\@@end}
%V only difference with the original is that I have removed
%V the '\def\global#1#2{}' line.
%V Taken from LaTeX.TeX and adapted wrt
%V  1/ number width
%V  2/ raggedright setting of heading
%V  3/ 'contentsline' 
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
     \def\@svsec{}\else
     \refstepcounter{#1}%
     \begingroup \setbox\@tempboxa=\hbox{#6\relax\csname the#1\endcsname
                                         \hskip.5em}
       \ifdim\wd\@tempboxa>\unitindent 
             \global\unitindent=\wd\@tempboxa \@indentset\fi
     \endgroup
     \edef\@svsec{\hbox to \unitindent{\csname the#1\endcsname\hfil}}\fi
     \@tempskipa #5\relax
      \ifdim \@tempskipa>\z@
        \begingroup #6\relax
          \@hangfrom{\hskip #3\relax\@svsec}{\head@style #8\par}
        \endgroup
       \csname #1mark\endcsname{#7}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
%V toc@font added
                    \toc@font#2 #7}\else
        \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
                      {#7}\addcontentsline
                           {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                             \protect\numberline{\csname the#1\endcsname}\fi
                      \toc@font#2 #7}}\fi
     \@xsect{#5}}
\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
   \ifdim \@tempskipa>\z@
     \begingroup #4\relax
          \@hangfrom{\hskip #1}{\head@style #5\par}
     \endgroup
   \else \def\@svsechd{#4\hskip #1\relax #5}\fi
    \@xsect{#3}}
%V section heading are to be set:
%V 1/ extremely raggedright, with
%V 2/ no hyphenations, not even at explicit hyphens
\def\head@style{\interlinepenalty \@M
    \hyphenpenalty=\@M \exhyphenpenalty=\@M
    \rightskip=0cm plus .7\hsize\relax}
%%%%%%%%%%%%%%%%%%%%%%%%% unit indentation %%%%%%%%%%%%%%%%%%%%%%%%%%
%V this is new.
\newdimen\unitindent    %V label width in subsection head style
\newif\if@needwriteindent
\parindent=0cm
{\setbox0\hbox{\normalsize\rm 2.2.2\hskip.5em}
 \global\unitindent=\wd0}
\def\@indentset{\global\leftmargini=\unitindent
                \global\@needwriteindenttrue}
\leftmargini=\unitindent
\def\@writeindent#1{\edef\@tempa{\write\@mainaux
                     {\global\string\unitindent=#1
                      \string\relax \string\@indentset 
                      \string\relax}}\@tempa}
%V list indents except for the outer level
\newdimen\othermargin
{\setbox0\hbox{\normalsize (m)\hskip.5em}\global\othermargin=\wd0}
\leftmarginii=\othermargin \leftmarginiii=\othermargin
\leftmarginiv=\othermargin \leftmarginv=\othermargin
\leftmarginvi 1em
%%%%%%%%%%%%%%%%%%%%%%%%%%%% lists %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%V all lifted from point size option files
\def\@listi{\leftmargin\unitindent 
            \labelsep=.5em %V vervang dit door de woordspatie van \bf
            \labelwidth=\leftmargin \advance\labelwidth by -\labelsep
 \topsep=-.5\parskip %V reduce ridiculous white space
 \parsep 0pt %V default value added
 \itemsep \parsep}   %V default value added
\def\@listii{\leftmargin\leftmarginii \labelsep=.5em
 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
 \topsep=-.5\parskip %V reduce ridiculous white space
 \parsep 0pt %V nulgemaakt
 \itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii \labelsep=.5em
 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
 \topsep=-.5\parskip %V reduce ridiculous white space
 \parsep \z@ 
 \partopsep 0pt %V nulgemaakt
 \itemsep \topsep}
\def\@listiv{\leftmargin\leftmarginiv \labelsep=.5em
 \topsep=-.5\parskip %V reduce ridiculous white space
 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv \labelsep=.5em
 \topsep=-.5\parskip %V reduce ridiculous white space
 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi \labelsep=.5em
 \topsep=-.5\parskip %V reduce ridiculous white space
 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
%V A strange if. Needed in footnotes.
\newif\if@revlabel
%V redefinition of \itemize and \enumerate, in order to
%V specify a new \makelabel macro.
%V Really, Lamport himself suggests it.
%V The 'revlabel' is a strange construct to prevent silly items
%V in footnotes
\def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
      \advance\@enumdepth \@ne
      \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
      \list{\csname label\@enumctr\endcsname}%
           {\usecounter{\@enumctr}
            \if@revlabel \def\makelabel##1{\hskip .5\unitindent{##1\hfil}}%
            \else        \def\makelabel##1{##1\hfil}\fi
           }\fi}
\def\itemize{\ifnum \@itemdepth >3 \@toodeep\else 
      \advance\@itemdepth \@ne
      \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
      \list{\csname\@itemitem\endcsname}%
           {\if@revlabel \def\makelabel##1{\hskip .5\unitindent{##1\hfil}}%
            \else        \def\makelabel##1{##1\hfil}\fi
            }\fi}
%%%%%%%%%%%%%%%%%%%%%% trivlists %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%V Slight redefinition of verbatim in order to eliminate
%V too enthousiastic white space
\def\verbatim{\@verbatim \topsep=-.5\parskip
              \frenchspacing\@vobeyspaces \@xverbatim}
%V several things wrong with the theorem environments.
\def\@begintheorem#1#2{\vskip\regeltransport \sl \labelsep=.5em
           \trivlist \item[\hskip\labelsep{\bf #1\ #2}]}
\def\@endtheorem{\endtrivlist \vskip\regeltransport}
% Change to lfonts.tex
% Nico Poppelier -- 28 Aug 89
%
% \em is defined to be \sl inside an unslanted style and \rm inside a
% slanted style.  An \em command in a section title will produce a \pem
% command in the table of contents.
%
\def\em{\protect\pem{}}
\def\pem{\ifdim \fontdimen\@ne\font >\z@ \rm \else \sl \fi}
%V added
\def\enditemize{\global\@ignoretrue \endlist}
\def\endenumerate{\global\@ignoretrue \endlist}
%%%%%%%%%%%%%%%%%%%%%%% little bits %%%%%%%%%%%%%%%%%%%%%%
%V lifted from the pointsize option files
\setcounter{secnumdepth}{2}
\def\appendix{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{Appendix} %V watchit!
 \def\thechapter{\Alph{chapter}}}
\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
-\@lowpenalty
%%%%%%%%%%%%%%%%%%%%%%%% dimensions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%V lifted from the pointsize option files
\footnotesep=0pt
\partopsep 0pt 
%%%%%%%%%%%%%%%%%%%%% Dutch, German, etc %%%%%%%%%%%%%%%%%%%%%%%%%%%
%V This is to let 'dutch' know that it's us, not Leslie Lamport.
\def\doc@style{0}
%V But, to humour British and to humor American users
%V we include English parameter settings.
\def\refname{References}
\def\abstractname{Abstract}
\def\bibname{Bibliography}
\def\chaptername{Chapter }% An extra space is needed here unfortunately because
\def\appendixname{Appendix }% of the extra macro evaluation via \@chapapp
\def\contentsname{Contents}
\def\listfigurename{List of Figures}
\def\listtablename{List of Tables}
\def\indexname{Index}
\def\figurename{Figure}
\def\tablename{Table}
\def\partname{Part}
\def\today{\ifcase\month\or
 January\or February\or March\or April\or May\or June\or
 July\or August\or September\or October\or November\or December\fi
 \space\number\day, \number\year}
