Debian Codegraph @

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

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