Debian Codegraph @

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

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