Debian Codegraph @

texmf-dist/tex/latex/ntgclass/rapport1.cls

raw
1 %%
2 %% This is file `rapport1.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ntgclass.dtx (with options: `rapport,type1')
8 %% This is a generated file.
9 %%
10 %% The source is maintained by Johannes Braams and bug
11 %% reports for it can be sent to texniek at braams.xs4all.nl
12 %%
13 %% Copyright (C) 1990-2026 Nederlandstalige TeX Gebruikersgroep.
14 %% All rights reserved.
15 %%
16 %% This file was generated from file(s) of the NTG document classes distribution.
17 %% ------------------------------------------------------------------------------
18 %%
19 %% It may be distributed and/or modified under the
20 %% conditions of the LaTeX Project Public License, either version 1.3c
21 %% of this license or (at your option) any later version.
22 %% The latest version of this license is in
23 %% http://www.latex-project.org/lppl.txt
24 %% and version 1.3c or later is part of all distributions of LaTeX
25 %% version 2008 or later.
26 %%
27 %% This work has the LPPL maintenance status "maintained".
28 %%
29 %% The Current Maintainer of this work is Johannes Braams.
30 %%
31 %% This file may only be distributed together with a copy of the NTG
32 %% document classes distribution. You may however distribute the NTG
33 %% document classes distribution without such generated files.
34 %%
35 %% The list of all files belonging to the NTG document classes
36 %% distribution is given in the file `manifest.txt'.
37 %%
38 %% The list of derived (unpacked) files belonging to the distribution
39 %% and covered by LPPL is defined by the unpacking scripts (with
40 %% extension .ins) which are part of the distribution.
41 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
42 \ProvidesClass{rapport1}%
43 [2025/12/29 v2.1h
44 NTG LaTeX document class]
45 \newcommand*\@ptsize{}
46
47 \newif\if@restonecol
48 \newif\if@titlepage
49 \@titlepagetrue
50 \newif\if@openright
51 \newif\if@oldtoc
52 \@oldtocfalse
53 \newif\if@allcaps
54 \newif\if@revlabel
55 \DeclareOption{a4paper}
56 {\setlength\paperheight {297mm}%
57 \setlength\paperwidth {210mm}}
58 \DeclareOption{a5paper}
59 {\setlength\paperheight {210mm}%
60 \setlength\paperwidth {148mm}}
61 \DeclareOption{b5paper}
62 {\setlength\paperheight {250mm}%
63 \setlength\paperwidth {176mm}}
64 \DeclareOption{letterpaper}
65 {\setlength\paperheight {11in}%
66 \setlength\paperwidth {8.5in}}
67 \DeclareOption{legalpaper}
68 {\setlength\paperheight {14in}%
69 \setlength\paperwidth {8.5in}}
70 \DeclareOption{executivepaper}
71 {\setlength\paperheight {10.5in}%
72 \setlength\paperwidth {7.25in}}
73 \DeclareOption{landscape}
74 {\setlength\@tempdima {\paperheight}%
75 \setlength\paperheight {\paperwidth}%
76 \setlength\paperwidth {\@tempdima}}
77 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
78 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
79 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
80 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
81 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
82 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
83 \DeclareOption{final}{\setlength\overfullrule{0pt}}
84 \DeclareOption{titlepage}{\@titlepagetrue}
85 \DeclareOption{notitlepage}{\@titlepagefalse}
86 \DeclareOption{openright}{\@openrighttrue}
87 \DeclareOption{openany}{\@openrightfalse}
88 \DeclareOption{voorwerk}{\@titlepagetrue}
89 \DeclareOption{geenvoorwerk}{\@titlepagefalse}
90 \DeclareOption{oldtoc}{\@oldtoctrue}
91 \DeclareOption{mctitle}{\@allcapsfalse}
92 \DeclareOption{uctitle}{\@allcapstrue}
93 \DeclareOption{onecolumn}{\@twocolumnfalse}
94 \DeclareOption{twocolumn}{\@twocolumntrue}
95 \DeclareOption{leqno}{\input{leqno.clo}}
96 \DeclareOption{fleqn}{\input{fleqn.clo}}
97 \DeclareOption{openbib}{%
98 \AtEndOfPackage{%
99 \renewcommand\@openbib@code{%
100 \advance\leftmargin\bibindent
101 \itemindent -\bibindent
102 \listparindent \itemindent
103 \parsep \z@
104 }%
105 \renewcommand\newblock{\par}}%
106 }
107 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,uctitle,openany}
108 \ProcessOptions
109 \input{ntg1\@ptsize.clo}
110 \setlength\lineskip{1\p@}
111 \setlength\normallineskip{1\p@}
112 \renewcommand\baselinestretch{}
113 \newdimen\unitindent
114 {\setbox0\hbox{\normalsize\rmfamily 2.2.2\hskip.5em}
115 \global\unitindent=\wd0}
116 \newdimen\othermargin
117 {\setbox0\hbox{\normalsize (m)\hskip.6em}\global\othermargin=\wd0}
118 \newif\if@needwriteindent
119 \newcommand*\@indentset{%
120 \global\parindent=\unitindent
121 \global\leftmargini=\unitindent
122 \global\@needwriteindenttrue}
123 \newcommand*\@writeindent[1]{\immediate\write\@mainaux
124 {\string\@ifundefined{unitindent}{\string\newdimen\string\unitindent
125 \let\string\@indentset\relax}{}}
126 \immediate\write\@mainaux{\global\string\unitindent=#1\string\relax
127 \string\@indentset \string\relax}}
128 \AtEndDocument{%
129 \if@filesw
130 \if@needwriteindent
131 \@writeindent{\the\unitindent}
132 \fi
133 \fi}
134 \setlength\parskip{0\p@}
135 \setlength\parindent{\unitindent}
136 \@lowpenalty 51
137 \@medpenalty 151
138 \@highpenalty 301
139 \setcounter{topnumber}{2}
140 \renewcommand\topfraction{.7}
141 \setcounter{bottomnumber}{1}
142 \renewcommand\bottomfraction{.3}
143 \setcounter{totalnumber}{3}
144 \renewcommand\textfraction{.2}
145 \renewcommand\floatpagefraction{.5}
146 \setcounter{dbltopnumber}{2}
147 \renewcommand\dbltopfraction{.7}
148 \renewcommand\dblfloatpagefraction{.5}
149 \let\Thispagestyle\thispagestyle
150 \newcommand*\@emptypagestyle{empty}
151 \renewcommand*\pagestyle[1]{\@nameuse{ps@#1}\def\@currentpagestyle{#1}}
152 \renewcommand*\thispagestyle[1]{%
153 \ifx\@currentpagestyle\@emptypagestyle
154 \else
155 \global\@specialpagetrue
156 \gdef\@specialstyle{#1}%
157 \fi}
158 \renewcommand*\ps@plain{%
159 \let\@oddhead\@empty\let\@evenhead\@empty
160 \def\@oddfoot{\hfil\PageFont\thepage}%
161 \if@twoside
162 \def\@evenfoot{\PageFont\thepage\hfil}%
163 \else
164 \let\@evenfoot\@oddfoot
165 \fi
166 \let\@mkboth\@gobbletwo}
167 \if@twoside
168 \def\ps@headings{%
169 \let\@oddfoot\@empty\let\@evenfoot\@empty
170 \def\@evenhead{{\PageFont\thepage}\hfil\MarkFont\leftmark}%
171 \def\@oddhead{{\MarkFont\rightmark}\hfil\PageFont\thepage}%
172 \let\@mkboth\markboth
173 \def\chaptermark##1{%
174 \markboth {\MakeUppercase{\ifnum \c@secnumdepth >\m@ne
175 \@chapapp\ \thechapter. \ %
176 \fi
177 ##1}}{}}%
178 \def\sectionmark##1{%
179 \markright {\MakeUppercase{\ifnum \c@secnumdepth >\z@
180 \thesection. \ \fi
181 ##1}}}}
182 \else
183 \def\ps@headings{%
184 \let\@oddfoot\@empty
185 \def\@oddhead{{\MarkFont\rightmark}\hfil\PageFont\thepage}%
186 \let\@mkboth\markboth
187 \def\chaptermark##1{%
188 \markright {\MakeUppercase{%
189 \ifnum \c@secnumdepth >\m@ne
190 \@chapapp\ \thechapter. \ %
191 \fi
192 ##1}}}}
193 \fi
194 \def\ps@myheadings{%
195 \let\@oddfoot\@empty\let\@evenfoot\@empty
196 \def\@evenhead{{\PageFont\thepage}\hfil\MarkFont\leftmark}%
197 \def\@oddhead{{\MarkFont\rightmark}\hfil\PageFont\thepage}%
198 \let\@mkboth\@gobbletwo
199 \let\chaptermark\@gobble
200 \let\sectionmark\@gobble
201 }
202 \newcommand*\PageFont{\rmfamily}
203 \newcommand*\MarkFont{\slshape}
204 \newcommand*\RunningFonts[2]{%
205 \renewcommand*\PageFont{#1}\renewcommand*\MarkFont{#2}}
206 \newcommand*\TitleFont{\bfseries}
207 \if@titlepage
208 \renewcommand*\TitleFont{\rmfamily}
209 \newcommand*\maketitle{%
210 \begin{titlepage}%
211 \let\footnotesize\small
212 \let\footnoterule\relax
213 \let \footnote \thanks
214 \long\def\@makefntext##1{\parindent\z@
215 \def\labelitemi{\textendash}\@revlabeltrue
216 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
217 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
218 \if@compatibility\setcounter{page}{0}\fi
219 \null\vfil
220 \vskip 60\p@
221 \begin{center}%
222 \TitleFont
223 {\LARGE \def\\{\penalty -\@M}
224 \if@allcaps
225 \expandafter\uc@nothanks\@title\thanks\relax
226 \else
227 \@title
228 \fi\par}%
229 \vskip 3em%
230 {\large
231 \lineskip .75em \parindent\z@
232 \begin{tabular}[t]{c}%
233 \if@allcaps
234 \expandafter\uc@authornothanks\@author\and\relax
235 \else
236 \@author
237 \fi
238 \end{tabular}\par}%
239 \vskip 1.5em%
240 {\large
241 \if@allcaps
242 \uppercase\expandafter{\@date}%
243 \else
244 \@date
245 \fi\par}%
246 \end{center}\par
247 \@thanks
248 \vfil\null
249 \end{titlepage}%
250 \setcounter{footnote}{0}%
251 \global\let\thanks\relax
252 \global\let\maketitle\relax
253 \global\let\@thanks\@empty
254 \global\let\@author\@empty
255 \global\let\@title\@empty
256 \global\let\@date\@empty
257 \global\let\title\relax
258 \global\let\author\relax
259 \global\let\date\relax
260 \global\let\and\relax
261 }
262 \def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
263 \def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
264 \futurelet\@tempa\uc@ax}
265 \def\uc@ax{%
266 \ifx\@tempa\relax
267 \else
268 \\ \andname \\ \expandafter\uc@authornothanks
269 \fi}
270 \def\uc@tx{\ifx\@tempa\relax
271 \else \expandafter\uc@ty \fi}
272 \def\uc@ty#1{\thanks{#1}\uc@nothanks}
273 \else
274 \newcommand*\maketitle{\par
275 \begingroup
276 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
277 \def\@makefnmark{\rlap{%
278 \@textsuperscript{\normalfont\@thefnmark}}}%
279 \long\def\@makefntext{\@xmakefntext{%
280 \@textsuperscript{\normalfont\@thefnmark}}}%
281 \if@twocolumn
282 \ifnum \col@number=\@ne
283 \@maketitle
284 \else
285 \twocolumn[\@maketitle]%
286 \fi
287 \else
288 \newpage
289 \global\@topnum\z@
290 \@maketitle
291 \fi
292 \thispagestyle{plain}\@thanks
293 \endgroup
294 \setcounter{footnote}{0}%
295 \global\let\thanks\relax
296 \global\let\maketitle\relax
297 \global\let\@maketitle\relax
298 \global\let\@thanks\@empty
299 \global\let\@author\@empty
300 \global\let\@title\@empty
301 \global\let\@date\@empty
302 \global\let\title\relax
303 \global\let\author\relax
304 \global\let\date\relax
305 \global\let\and\relax
306 }
307 \def\@maketitle{%
308 \newpage
309 \null
310 \vskip 2em%
311 \begin{center}%
312 \let \footnote \thanks
313 {\LARGE \TitleFont \@title \par}%
314 \vskip 1.5em%
315 {\large \TitleFont
316 \lineskip .5em%
317 \begin{tabular}[t]{c}%
318 \@author
319 \end{tabular}\par}%
320 \vskip 1em%
321 {\large \TitleFont \@date}%
322 \end{center}%
323 \par
324 \vskip 1.5em}
325 \fi
326 \newcommand*\head@style{%
327 \interlinepenalty \@M
328 \hyphenpenalty=\@M \exhyphenpenalty=\@M
329 \rightskip=0cm plus .7\hsize\relax}
330 \def\@sect#1#2#3#4#5#6[#7]#8{%
331 \ifnum #2>\c@secnumdepth
332 \let\@svsec\@empty
333 \else
334 \refstepcounter{#1}%
335 \begingroup
336 \setbox\@tempboxa=\hbox{#6\relax
337 \csname the#1\endcsname
338 \hskip.5em}
339 \ifdim\wd\@tempboxa>\unitindent
340 \global\unitindent=\wd\@tempboxa
341 \@indentset
342 \fi
343 \endgroup
344 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
345 \fi
346 \@tempskipa #5\relax
347 \ifdim \@tempskipa>\z@
348 \begingroup
349 #6{%
350 \@hangfrom{\hskip #3\relax\@svsec}\head@style #8\endgraf}%
351 \endgroup
352 \csname #1mark\endcsname{#7}%
353 \addcontentsline{toc}{#1}{%
354 \ifnum #2>\c@secnumdepth
355 \else
356 \protect\numberline{\csname the#1\endcsname}%
357 \fi
358 #7}%
359 \else
360 \def\@svsechd{#6\hskip #3\relax
361 \@svsec #8\csname #1mark\endcsname{#7}%
362 \addcontentsline{toc}{#1}{%
363 \ifnum #2>\c@secnumdepth
364 \else
365 \protect\numberline{\csname the#1\endcsname}%
366 \fi
367 #7}}%
368 \fi
369 \@xsect{#5}}
370 \def\@seccntformat#1{%
371 \hb@xt@\unitindent{\csname the#1\endcsname \hfil}%
372 }
373 \def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
374 \ifdim \@tempskipa>\z@
375 \begingroup
376 #4{%
377 \@hangfrom{\hskip #1}\head@style #5\endgraf}%
378 \endgroup
379 \else
380 \def\@svsechd{#4\hskip #1\relax #5}%
381 \fi
382 \@xsect{#3}}
383 \newcommand*\chaptermark[1]{}
384 \setcounter{secnumdepth}{2}
385 \newcounter {part}
386 \newcounter {chapter}
387 \newcounter {section}[chapter]
388 \newcounter {subsection}[section]
389 \newcounter {subsubsection}[subsection]
390 \newcounter {paragraph}[subsubsection]
391 \newcounter {subparagraph}[paragraph]
392 \renewcommand*\thepart{\@Roman\c@part}
393 \renewcommand*\thechapter{\@arabic\c@chapter}
394 \renewcommand*\thesection{\thechapter.\@arabic\c@section}
395 \renewcommand*\thesubsection{\thesection.\@arabic\c@subsection}
396 \renewcommand*\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
397 \renewcommand*\theparagraph{\thesubsubsection.\@arabic\c@paragraph}
398 \renewcommand*\thesubparagraph{\theparagraph.\@arabic\c@subparagraph}
399 \newcommand*\@chapapp{\chaptername}
400 \newcommand*\part{%
401 \cleardoublepage
402 \thispagestyle{empty}%
403 \if@twocolumn
404 \onecolumn
405 \@tempswatrue
406 \else
407 \@tempswafalse
408 \fi
409 \null\vfil
410 \secdef\@part\@spart}
411 \newcommand*\PartFont{\bfseries}
412 \def\@part[#1]#2{%
413 \ifnum \c@secnumdepth >-2\relax
414 \refstepcounter{part}%
415 \addcontentsline{toc}{part}{\protect\numberline{\thepart}{#1}}%
416 \else
417 \addcontentsline{toc}{part}{\toc@case{#1}}%
418 \fi
419 \markboth{}{}%
420 {\centering
421 \interlinepenalty \@M
422 \normalfont
423 \ifnum \c@secnumdepth >-2\relax
424 \Large\PartFont
425 \edef\@tempa{\noexpand\MakeUppercase{\partname}}\@tempa
426 \nobreakspace\thepart
427 \par
428 \vskip 20\p@
429 \fi
430 \Large \PartFont \MakeUppercase{#2}\par}%
431 \@endpart}
432 \def\@spart#1{%
433 {\centering
434 \interlinepenalty \@M
435 \normalfont
436 \Large \PartFont #1\par}%
437 \@endpart}
438 \def\@endpart{\vfil\newpage
439 \if@twoside
440 \if@openright
441 \null
442 \thispagestyle{empty}%
443 \newpage
444 \fi
445 \fi
446 \if@tempswa
447 \twocolumn
448 \fi}
449 \newcommand*\chapter{\if@openright\cleardoublepage\else\clearpage\fi
450 \thispagestyle{plain}%
451 \global\@topnum\z@
452 \@afterindentfalse
453 \secdef\@chapter\@schapter}
454 \def\@chapter[#1]#2{%
455 \ifnum \c@secnumdepth >\m@ne
456 \refstepcounter{chapter}%
457 \typeout{\@chapapp\space\thechapter.}%
458 \addcontentsline{toc}{chapter}%
459 {\protect\numberline{\thechapter}#1}%
460 \else
461 \addcontentsline{toc}{chapter}{#1}%
462 \fi
463 \chaptermark{#1}%
464 \addtocontents{lof}{\protect\addvspace{10\p@}}%
465 \addtocontents{lot}{\protect\addvspace{10\p@}}%
466 \if@twocolumn
467 \@topnewpage[\@makechapterhead{#2}]%
468 \else
469 \@makechapterhead{#2}%
470 \@afterheading
471 \fi}
472 \newcommand*\ChapFont{\bfseries}
473 \def\@makechapterhead#1{%
474 \vspace*{50\p@ \@plus 5\p@}%
475 {\setlength\parindent{\z@}%
476 \setlength\parskip {\z@}%
477 \head@style \normalfont
478 \ifnum \c@secnumdepth >\m@ne
479 \Large\ChapFont \@chapapp{} \thechapter
480 \par\nobreak
481 \vskip 20\p@
482 \fi
483 \Large \ChapFont #1\par
484 \nobreak
485 \vskip 40\p@
486 }}
487 \def\@schapter#1{\if@twocolumn
488 \@topnewpage[\@makeschapterhead{#1}]%
489 \else
490 \@makeschapterhead{#1}%
491 \@afterheading
492 \fi}
493 \def\@makeschapterhead#1{%
494 \vspace*{50\p@\@plus 5\p@}%
495 {\setlength\parindent{\z@}%
496 \setlength\parskip{\z@}%
497 \head@style
498 \normalfont
499 \Large \ChapFont #1\par
500 \nobreak
501 \vskip 40\p@
502 }}
503 \newcommand*\section{%
504 \@startsection {section}{1}{\z@}%
505 {-2\baselineskip\@plus -1\baselineskip \@minus -.5\baselineskip}%
506 {.5\baselineskip}%
507 {\normalfont\large\SectFont}}
508 \newcommand*\SectFont{\bfseries}
509 \newcommand*\subsection{%
510 \@startsection{subsection}{2}{\z@}%
511 {-1\baselineskip\@plus -.5\baselineskip \@minus -.25\baselineskip}%
512 {.25\baselineskip}%
513 {\normalfont\normalsize\SSectFont}}
514 \newcommand*\SSectFont{\bfseries}
515 \newcommand*\subsubsection{%
516 \@startsection{subsubsection}{3}{\z@}%
517 {-1\baselineskip plus -.5\baselineskip minus -.25\baselineskip}%
518 {.25\baselineskip}%
519 {\normalfont\normalsize\SSSectFont}}
520 \newcommand*\SSSectFont{\slshape}
521 \newcommand*\paragraph{%
522 \@startsection{paragraph}{4}{\z@}%
523 {3.25ex \@plus1ex \@minus.2ex}%
524 {-1em}%
525 {\normalfont\normalsize\ParaFont}}
526 \newcommand*\ParaFont{\slshape}
527 \newcommand*\subparagraph{%
528 \@startsection{subparagraph}{5}{\parindent}%
529 {3.25ex \@plus1ex \@minus .2ex}%
530 {-1em}%
531 {\normalfont\normalsize\SParaFont}}
532 \newcommand*\SParaFont{\slshape}
533 \newcommand*\HeadingFonts[8]{%
534 \renewcommand*\TitleFont{#1}%
535 \renewcommand*\PartFont{#2}%
536 \renewcommand*\ChapFont{#3}%
537 \renewcommand*\SectFont{#4}%
538 \renewcommand*\SSectFont{#5}%
539 \renewcommand*\SSSectFont{#6}%
540 \renewcommand*\ParaFont{#7}%
541 \renewcommand*\SParaFont{#8}}
542 \setlength\leftmargini {\unitindent}
543 \setlength\leftmarginii {\othermargin}
544 \setlength\leftmarginiii{\othermargin}
545 \setlength\leftmarginiv {\othermargin}
546 \setlength\leftmarginv {\othermargin}
547 \setlength\leftmarginvi {1em}
548 \setlength\leftmargin {\leftmargini}
549 \setlength \labelsep {5\p@}
550 \setlength \labelwidth{\leftmargini}
551 \addtolength\labelwidth{-\labelsep}
552 \setlength\partopsep{\z@}
553 \setlength\topsep{\z@}
554 \@beginparpenalty -\@lowpenalty
555 \@endparpenalty -\@lowpenalty
556 \@itempenalty -\@lowpenalty
557 \def\@listi{%
558 \leftmargin\unitindent
559 \labelsep.5em%
560 \labelwidth\leftmargin
561 \advance\labelwidth-\labelsep
562 \parsep \z@
563 \topsep 0\p@ \@plus\p@
564 \itemsep 0\p@ \@plus1\p@}
565 \let\@listI\@listi
566 \@listi
567 \def\@listii {\leftmargin\leftmarginii
568 \labelsep .5em%
569 \labelwidth\leftmarginii
570 \advance\labelwidth-\labelsep
571 \topsep 0\p@ \@plus\p@
572 \parsep \z@
573 \itemsep \z@ \@plus\p@}
574 \def\@listiii{\leftmargin\leftmarginiii
575 \labelsep .5em%
576 \labelwidth\leftmarginiii
577 \advance\labelwidth-\labelsep
578 \topsep 0\p@ \@plus\p@
579 \parsep \z@
580 \partopsep \z@ \@plus\p@
581 \itemsep \z@ \@plus\p@}
582 \def\@listiv {\leftmargin\leftmarginiv
583 \labelsep .5em%
584 \labelwidth\leftmarginiv%
585 \advance\labelwidth-\labelsep
586 \topsep 0\p@ \@plus\p@
587 \parsep \z@
588 \itemsep \z@ \@plus\p@}
589 \def\@listv {\leftmargin\leftmarginv
590 \labelsep .5em%
591 \labelwidth\leftmarginv
592 \advance\labelwidth-\labelsep%
593 \topsep 0\p@ \@plus\p@
594 \parsep \z@
595 \itemsep \z@ \@plus\p@}
596 \def\@listvi {\leftmargin\leftmarginvi
597 \labelsep .5em
598 \labelwidth\leftmarginvi
599 \advance\labelwidth{-\labelsep}%
600 \topsep 0\p@ \@plus\p@
601 \parsep \z@
602 \itemsep \z@ \@plus\p@}
603 \renewcommand*\theenumi{\@arabic\c@enumi}
604 \renewcommand*\theenumii{\@alph\c@enumii}
605 \renewcommand*\theenumiii{\@roman\c@enumiii}
606 \renewcommand*\theenumiv{\@Alph\c@enumiv}
607 \newcommand*\labelenumi{\theenumi.}
608 \newcommand*\labelenumii{(\theenumii)}
609 \newcommand*\labelenumiii{\theenumiii.}
610 \newcommand*\labelenumiv{\theenumiv.}
611 \renewcommand*\p@enumii{\theenumi}
612 \renewcommand*\p@enumiii{\theenumi(\theenumii)}
613 \renewcommand*\p@enumiv{\p@enumiii\theenumiii}
614 \renewenvironment{enumerate}{%
615 \ifnum \@enumdepth >\thr@@
616 \@toodeep
617 \else
618 \advance\@enumdepth \@ne
619 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
620 \expandafter
621 \list
622 \csname label\@enumctr\endcsname
623 {\usecounter{\@enumctr}%
624 \ifnum \@listdepth=1
625 \if@revlabel
626 \def\makelabel##1{\hskip .5\unitindent{##1\hfil}}%
627 \else
628 \def\makelabel##1{\hfil##1}
629 \fi
630 \else
631 \def\makelabel##1{##1\hfil}%
632 \fi
633 }%
634 \fi}
635 {\global\@ignoretrue \endlist}
636 \newcommand\labelitemi {\labelitemfont \textbullet}
637 \newcommand\labelitemii {\labelitemfont \bfseries \textendash}
638 \newcommand\labelitemiii{\labelitemfont \textasteriskcentered}
639 \newcommand\labelitemiv {\labelitemfont \textperiodcentered}
640 \newcommand\labelitemfont{\normalfont}
641 \renewenvironment{itemize}{%
642 \ifnum \@itemdepth >\thr@@
643 \@toodeep
644 \else
645 \advance\@itemdepth \@ne
646 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
647 \expandafter
648 \list
649 \csname\@itemitem\endcsname
650 {%
651 \ifnum \@listdepth=1\relax
652 \if@revlabel
653 \def\makelabel##1{\hskip .5\unitindent{##1\hfil}}\else
654 \def\makelabel##1{\hfil##1}
655 \fi
656 \else
657 \def\makelabel##1{##1\hfil}
658 \fi
659 }%
660 \fi}
661 {\global\@ignoretrue \endlist}
662 \newenvironment{description}
663 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
664 \let\makelabel\descriptionlabel}}
665 {\endlist}
666 \newcommand*\descriptionlabel[1]{\hspace\labelsep
667 \normalfont\bfseries #1}
668 \def\center
669 {\topsep=.25\baselineskip \@plus .1\baselineskip
670 \@minus .1\baselineskip
671 \trivlist \centering\item[]}
672 \let\endcenter\endtrivlist
673 \def\flushleft
674 {\topsep=.25\baselineskip \@plus .1\baselineskip
675 \@minus .1\baselineskip
676 \trivlist \raggedright\item[]}
677 \let\endflushleft=\endtrivlist
678 \def\flushright
679 {\topsep=.25\baselineskip \@plus .1\baselineskip
680 \@minus .1\baselineskip
681 \trivlist \raggedleft\item[]}
682 \let\endflushright=\endtrivlist
683 \def\verbatim{%
684 \topsep=.25\baselineskip \@plus .1\baselineskip
685 \@minus .1\baselineskip
686 \@verbatim
687 \leftskip\unitindent
688 \frenchspacing\@vobeyspaces \@xverbatim}
689 \def\endverbatim{\if@newlist \leavevmode\fi\endtrivlist}
690 \if@titlepage
691 \newenvironment{abstract}{%
692 \titlepage
693 \null\vfil
694 \@beginparpenalty\@lowpenalty
695 \hbox{\SectFont \abstractname}%
696 \@endparpenalty\@M
697 \noindent\ignorespaces}
698 {\par\vfil\null\endtitlepage}
699 \else
700 \newenvironment{abstract}{%
701 \if@twocolumn
702 \section*{\abstractname}%
703 \else
704 \small
705 \bgroup\rightskip=\unitindent
706 \hbox{\SectFont \abstractname}%
707 \noindent\ignorespaces
708 \fi}
709 {\if@twocolumn\else\par\egroup\fi}
710 \fi
711 \newenvironment{verse}
712 {\let\\\@centercr
713 \list{}{\itemsep\z@
714 \itemindent-1.5em%
715 \listparindent\itemindent
716 \rightmargin\leftmargin
717 \advance\leftmargin1.5em}%
718 \item\relax}
719 {\endlist}
720 \newenvironment{quotation}
721 {\list{}{%
722 \listparindent\z@
723 \itemindent\listparindent
724 \rightmargin\leftmargin
725 \parsep\z@ \@plus\p@}%
726 \item\relax}
727 {\endlist}
728 \newenvironment{quote}
729 {\list{}{\rightmargin\leftmargin}%
730 \item\relax}
731 {\endlist}
732 \def\@begintheorem#1#2{%
733 \vskip\baselineskip \labelsep=.5em%
734 \trivlist
735 \item[\hskip \labelsep{\bfseries #1\ #2}]\slshape}
736 \def\@opargbegintheorem#1#2#3{%
737 \vskip\baselineskip \labelsep=.5em%
738 \trivlist
739 \item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]\slshape}
740 \def\@endtheorem{\endtrivlist \vskip\baselineskip}
741 \newenvironment{titlepage}
742 {
743 \if@twocolumn
744 \@restonecoltrue\onecolumn
745 \else
746 \@restonecolfalse\newpage
747 \fi
748 \thispagestyle{empty}%
749 \if@compatibility
750 \setcounter{page}\z@
751 \else
752 \setcounter{page}\@ne
753 \fi}
754 {\if@restonecol\twocolumn \else \newpage \fi
755 \setcounter{page}\@ne
756 }
757 \newcommand*\appendix{\par
758 \setcounter{chapter}{0}%
759 \setcounter{section}{0}%
760 \gdef\@chapapp{\appendixname}%
761 \gdef\thechapter{\@Alph\c@chapter}}
762 \setlength\arraycolsep{5\p@}
763 \setlength\tabcolsep{6\p@}
764 \setlength\arrayrulewidth{.4\p@}
765 \setlength\doublerulesep{2\p@}
766 \setlength\tabbingsep{\labelsep}
767 \def\@minipagerestore{\parindent\unitindent}
768 \skip\@mpfootins = \skip\footins
769 \setlength\fboxsep{3\p@}
770 \setlength\fboxrule{.4\p@}
771 \@addtoreset{equation}{chapter}
772 \renewcommand*\theequation{%
773 \ifnum \c@chapter>\z@ \thechapter.\fi\@arabic\c@equation}
774 \newcounter{figure}[chapter]
775 \renewcommand*\thefigure{%
776 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
777 \def\fps@figure{tbp}
778 \def\ftype@figure{1}
779 \def\ext@figure{lof}
780 \def\fnum@figure{\figurename\nobreakspace\thefigure}
781 \newenvironment{figure}
782 {\@float{figure}}
783 {\end@float}
784 \newenvironment{figure*}
785 {\@dblfloat{figure}}
786 {\end@dblfloat}
787 \newcounter{table}[chapter]
788 \renewcommand*\thetable{%
789 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
790 \def\fps@table{tbp}
791 \def\ftype@table{2}
792 \def\ext@table{lot}
793 \def\fnum@table{\tablename\nobreakspace\thetable}
794 \newenvironment{table}
795 {\@float{table}}
796 {\end@float}
797 \newenvironment{table*}
798 {\@dblfloat{table}}
799 {\end@dblfloat}
800 \newlength\abovecaptionskip
801 \newlength\belowcaptionskip
802 \setlength\abovecaptionskip{10\p@}
803 \setlength\belowcaptionskip{0\p@}
804 \long\def\@makecaption#1#2{%
805 \vskip\abovecaptionskip
806 \sbox\@tempboxa{{\CaptionLabelFont#1:} \CaptionTextFont#2}%
807 \ifdim \wd\@tempboxa >\hsize
808 {\CaptionLabelFont#1:} \CaptionTextFont#2\par
809 \else
810 \global \@minipagefalse
811 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
812 \fi
813 \vskip\belowcaptionskip}
814 \newcommand*\CaptionLabelFont{\relax}
815 \newcommand*\CaptionTextFont{\relax}
816 \newcommand*\CaptionFonts[2]{%
817 \renewcommand*\CaptionLabelFont{#1}%
818 \renewcommand*\CaptionTextFont{#2}%
819 }
820 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
821 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
822 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
823 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
824 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
825 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
826 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
827 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
828 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
829 \DeclareRobustCommand*\em{%
830 \@nomath\em
831 \ifdim\fontdimen\@ne\font>\z@
832 \upshape
833 \else
834 \slshape
835 \fi}
836 \newcommand*\@pnumwidth{1.55em}
837 \newcommand*\@tocrmarg {2.55em}
838 \newcommand*\@dotsep{4.5}
839 \setcounter{tocdepth}{2}
840 \newcommand*\tableofcontents{%
841 \if@twocolumn
842 \@restonecoltrue\onecolumn
843 \else
844 \@restonecolfalse
845 \fi
846 \chapter*{\contentsname}%
847 \@mkboth{\MakeUppercase{\contentsname}}%
848 {\MakeUppercase{\contentsname}}%
849 \@starttoc{toc}%
850 \if@restonecol\twocolumn\fi
851 }
852 \newcommand*\@regtocline[3]{%
853 \ifnum #1>\c@tocdepth
854 \else
855 \vskip\z@\@plus.2\p@
856 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
857 \leftskip\unitindent
858 \rightskip\unitindent\@plus 1fil
859 \parfillskip\z@
860 \@tempdima\unitindent
861 \parindent\z@
862 \leavevmode
863 \hbox{}\hskip -\leftskip\relax
864 \ifnum#1<0\toc@case{#2}\else
865 \toc@font#1 #2\fi\nobreak
866 \hskip 1em \nobreak{\slshape #3}\par
867 }%
868 \fi}
869 \if@oldtoc
870 \newcommand*\toc@font[1]{\relax}
871 \else
872 \newcommand*\toc@font[4]{%
873 \ifx\Hy@toclinkstart#2%
874 \def\@next{#2\toc@font#1#3#4}%
875 \else
876 \def\@next{#2{#3}\toc@fontsel#1#4}%
877 \expandafter\fi\@next}
878 \newcommand*\toc@fontsel[1]{%
879 \ifcase#1\relax
880 \bfseries
881 \or\slshape
882 \or\rmfamily
883 \fi}
884 \AtBeginDocument{%
885 \ifx\hyper@linkstart\undefined
886 \else
887 \let\ORG@hyper@linkstart\hyper@linkstart
888 \protected\def\hyper@linkstart#1#2{%
889 \lowercase{\ORG@hyper@linkstart{#1}{#2}}}
890 \fi}
891 \fi
892 \if@oldtoc
893 \newcommand*\toc@case{\relax}
894 \else
895 \newcommand*\toc@case{\MakeUppercase}
896 \fi
897 \if@oldtoc
898 \newcommand*\l@part[2]{%
899 \ifnum \c@tocdepth >-2\relax
900 \addpenalty{-\@highpenalty}%
901 \addvspace{2.25em \@plus\p@}%
902 \begingroup
903 \setlength\@tempdima{3em}%
904 \parindent \z@ \rightskip \@pnumwidth
905 \parfillskip -\@pnumwidth
906 {\leavevmode
907 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2%
908 \kern-\p@\kern\p@}}\par
909 \nobreak
910 \global\@nobreaktrue
911 \everypar{\global\@nobreakfalse\everypar{}}%
912 \endgroup
913 \fi}
914 \else
915 \newcommand*\l@part{%
916 \ifnum \c@tocdepth >-2\let\l@@part\relax
917 \addpenalty{-\@highpenalty}%
918 \addvspace{2.25em \@plus \p@}%
919 \def\l@@part{\@regtocline{-1}}%
920 \fi\l@@part}
921 \fi
922 \if@oldtoc
923 \newcommand*\l@chapter[2]{%
924 \addpenalty{-\@highpenalty}%
925 \vskip 1.0em \@plus\p@
926 \setlength\@tempdima{1.5em}%
927 \begingroup
928 \parindent \z@ \rightskip \@pnumwidth
929 \parfillskip -\@pnumwidth
930 \leavevmode \bfseries
931 \advance\leftskip\@tempdima
932 \hskip -\leftskip
933 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2%
934 \kern-\p@\kern\p@}\par
935 \penalty\@highpenalty
936 \endgroup}
937 \else
938 \newcommand*\l@chapter{\@regtocline{0}}
939 \fi
940 \if@oldtoc
941 \newcommand*\l@section {\@dottedtocline{1}{1.5em}{2.3em}}
942 \else
943 \newcommand*\l@section {\@regtocline{1}}
944 \fi
945 \if@oldtoc
946 \newcommand*\l@subsection {\@dottedtocline{2}{3.8em}{3.2em}}
947 \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
948 \newcommand*\l@paragraph {\@dottedtocline{4}{10em}{5em}}
949 \newcommand*\l@subparagraph {\@dottedtocline{5}{12em}{6em}}
950 \else
951 \newcommand*\l@subsection {\@regtocline{2}}
952 \newcommand*\l@subsubsection{\@regtocline{3}}
953 \newcommand*\l@paragraph {\@regtocline{4}}
954 \newcommand*\l@subparagraph {\@regtocline{5}}
955 \fi
956 \newcommand*\listoffigures{%
957 \if@twocolumn
958 \@restonecoltrue\onecolumn
959 \else
960 \@restonecolfalse
961 \fi
962 \chapter*{\listfigurename}%
963 \@mkboth{\MakeUppercase{\listfigurename}}%
964 {\MakeUppercase{\listfigurename}}%
965 \@starttoc{lof}%
966 \if@restonecol\twocolumn\fi
967 }
968 \if@oldtoc
969 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
970 \else
971 \newcommand*\l@figure{\@regtocline{1}}
972 \fi
973 \newcommand*\listoftables{%
974 \if@twocolumn
975 \@restonecoltrue\onecolumn
976 \else
977 \@restonecolfalse
978 \fi
979 \chapter*{\listtablename}%
980 \@mkboth{\MakeUppercase{\listtablename}}%
981 {\MakeUppercase{\listtablename}}%
982 \@starttoc{lot}%
983 \if@restonecol\twocolumn\fi
984 }
985 \let\l@table\l@figure
986 \newdimen\bibindent
987 \setlength\bibindent{1.5em}
988 \newcommand*\newblock{}
989 \newenvironment{thebibliography}[1]
990 {\chapter*{\bibname}%
991 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
992 \list{\@biblabel{\@arabic\c@enumiv}}%
993 {\settowidth\labelwidth{\@biblabel{#1}}%
994 \leftmargin\labelwidth
995 \advance\leftmargin\labelsep
996 \@openbib@code
997 \usecounter{enumiv}%
998 \let\p@enumiv\@empty
999 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
1000 \sloppy\clubpenalty4000\widowpenalty4000%
1001 \sfcode`\.\@m}
1002 {\def\@noitemerr
1003 {\@latex@warning{Empty `thebibliography' environment}}%
1004 \endlist}
1005 \renewcommand\newblock{\hskip.11em\@plus.33em\@minus.07em}
1006 \let\@openbib@code\@empty
1007 \newenvironment{theindex}{%
1008 \if@twocolumn
1009 \@restonecolfalse
1010 \else
1011 \@restonecoltrue
1012 \fi
1013 \twocolumn[\@makeschapterhead{\indexname}]%
1014 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
1015 \thispagestyle{plain}\parindent\z@
1016 \columnseprule \z@
1017 \columnsep 35\p@
1018 \parskip\z@ \@plus .3\p@\relax
1019 \let\item\@idxitem
1020 }{%
1021 \if@restonecol\onecolumn\else\clearpage\fi}
1022 \newcommand*\@idxitem {\par\hangindent 40\p@}
1023 \newcommand*\subitem {\@idxitem\hspace*{20\p@}}
1024 \newcommand*\subsubitem{\@idxitem\hspace*{30\p@}}
1025 \newcommand*\indexspace{\par\vskip10\p@\@plus5\p@\@minus3\p@\relax}
1026 \renewcommand*\footnoterule{%
1027 \kern-3\p@
1028 \kern.5\baselineskip
1029 \hrule\@width\unitindent
1030 \kern.4\baselineskip
1031 }
1032 \@addtoreset{footnote}{chapter}
1033 \newcommand*\@makefntext{\@xmakefntext{\normalfont\@thefnmark.}}
1034 \newcommand*\@xmakefntext[1]{%
1035 \parindent\z@
1036 \def\labelitemi{\textendash}\@revlabeltrue
1037 {\setbox0\hbox {#1\hskip.5em plus 1fil}
1038 \dimen0=2\wd0\relax
1039 \ifdim\dimen0>\unitindent
1040 \global\unitindent\dimen0\relax
1041 \@indentset
1042 \fi}
1043 \leavevmode\hb@[email protected]\unitindent{#1\hfil}}
1044 \newcommand*\contentsname{Contents}
1045 \newcommand*\listfigurename{List of Figures}
1046 \newcommand*\listtablename{List of Tables}
1047 \newcommand*\bibname{Bibliography}
1048 \newcommand*\indexname{Index}
1049 \newcommand*\figurename{Figure}
1050 \newcommand*\tablename{Table}
1051 \newcommand*\partname{Part}
1052 \newcommand*\chaptername{Chapter}
1053 \newcommand*\appendixname{Appendix}
1054 \newcommand*\abstractname{Abstract}
1055 \newcommand*\seename{see}
1056 \newcommand*\andname{and}
1057 \newcommand*\today{}
1058 \def\today{\ifcase\month\or
1059 January\or February\or March\or April\or May\or June\or
1060 July\or August\or September\or October\or November\or December\fi
1061 \space\number\day, \number\year}
1062 \setlength\columnsep{10\p@}
1063 \setlength\columnseprule{0\p@}
1064 \pagestyle{plain}
1065 \pagenumbering{arabic} % Arabic page numbers
1066 \if@twocolumn
1067 \twocolumn
1068 \sloppy
1069 \flushbottom
1070 \else
1071 \onecolumn
1072 \fi
1073 \frenchspacing
1074 \endinput
1075 %%
1076 %% End of file `rapport1.cls'.