2 %% This is file `gmxmanual.cls',
3 %% an edited version of book.cls
5 %% The original source files of book.cls were:
7 %% classes.dtx (with options: `book')
9 %% This is a generated file.
11 %% Copyright 1993 1994 1995 1996 1997 1998 1999
12 %% The LaTeX3 Project and any individual authors listed elsewhere
15 %% This file was generated from file(s) of the LaTeX base system.
16 %% --------------------------------------------------------------
18 %% It may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either version 1.2
20 %% of this license or (at your option) any later version.
21 %% The latest version of this license is in
22 %% http://www.latex-project.org/lppl.txt
23 %% and version 1.2 or later is part of all distributions of LaTeX
24 %% version 1999/12/01 or later.
26 %% This file may only be distributed together with a copy of the LaTeX
27 %% base system. You may however distribute the LaTeX base system without
28 %% such generated files.
30 %% The list of all files belonging to the LaTeX base distribution is
31 %% given in the file `manifest.txt'. See also `legal.txt' for additional
35 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
36 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
37 %% Digits \0\1\2\3\4\5\6\7\8\9
38 %% Exclamation \! Double quote \" Hash (number) \#
39 %% Dollar \$ Percent \% Ampersand \&
40 %% Acute accent \' Left paren \( Right paren \)
41 %% Asterisk \* Plus \+ Comma \,
42 %% Minus \- Point \. Solidus \/
43 %% Colon \: Semicolon \; Less than \<
44 %% Equals \= Greater than \> Question mark \?
45 %% Commercial at \@ Left bracket \[ Backslash \\
46 %% Right bracket \] Circumflex \^ Underscore \_
47 %% Grave accent \` Left brace \{ Vertical bar \|
48 %% Right brace \} Tilde \~}
49 \NeedsTeXFormat{LaTeX2e
}[1995/
12/
01]
50 \ProvidesClass{gmxmanual
}
52 Modified version of LaTeX book class
]
58 \newif\if@mainmatter \@mainmattertrue
59 \if@compatibility
\else
60 \DeclareOption{a4paper}
61 {\setlength\paperheight {297mm
}%
62 \setlength\paperwidth {210mm
}}
63 \DeclareOption{a5paper
}
64 {\setlength\paperheight {210mm
}%
65 \setlength\paperwidth {148mm
}}
66 \DeclareOption{b5paper
}
67 {\setlength\paperheight {250mm
}%
68 \setlength\paperwidth {176mm
}}
69 \DeclareOption{letterpaper
}
70 {\setlength\paperheight {11in
}%
71 \setlength\paperwidth {8.5in
}}
72 \DeclareOption{legalpaper
}
73 {\setlength\paperheight {14in
}%
74 \setlength\paperwidth {8.5in
}}
75 \DeclareOption{executivepaper
}
76 {\setlength\paperheight {10.5in
}%
77 \setlength\paperwidth {7.25in
}}
78 \DeclareOption{landscape
}
79 {\setlength\@tempdima
{\paperheight}%
80 \setlength\paperheight {\paperwidth}%
81 \setlength\paperwidth {\@tempdima
}}
84 \renewcommand\@ptsize
{0}
86 \DeclareOption{10pt
}{\renewcommand\@ptsize
{0}}
88 \DeclareOption{11pt
}{\renewcommand\@ptsize
{1}}
89 \DeclareOption{12pt
}{\renewcommand\@ptsize
{2}}
90 \if@compatibility
\else
91 \DeclareOption{oneside
}{\@twosidefalse \@mparswitchfalse
}
93 \DeclareOption{twoside
}{\@twosidetrue \@mparswitchtrue
}
94 \DeclareOption{draft
}{\setlength\overfullrule{5pt
}}
95 \if@compatibility
\else
96 \DeclareOption{final
}{\setlength\overfullrule{0pt
}}
98 \DeclareOption{titlepage
}{\@titlepagetrue
}
99 \if@compatibility
\else
100 \DeclareOption{notitlepage
}{\@titlepagefalse
}
105 \DeclareOption{openright
}{\@openrighttrue
}
106 \DeclareOption{openany
}{\@openrightfalse
}
108 \if@compatibility
\else
109 \DeclareOption{onecolumn
}{\@twocolumnfalse
}
111 \DeclareOption{twocolumn
}{\@twocolumntrue
}
112 \DeclareOption{leqno
}{\input{leqno.clo
}}
113 \DeclareOption{fleqn
}{\input{fleqn.clo
}}
114 \DeclareOption{openbib
}{%
116 \renewcommand\@openbib@code
{%
117 \advance\leftmargin\bibindent
118 \itemindent -
\bibindent
119 \listparindent \itemindent
122 \renewcommand\newblock{\par}}%
124 \ExecuteOptions{letterpaper,
10pt,twoside,onecolumn,final,openright
}
126 \input{bk1\@ptsize.clo
}
127 \setlength\lineskip{1\p@
}
128 \setlength\normallineskip{1\p@
}
129 \renewcommand\baselinestretch{}
130 \setlength\parskip{0\p@ \@plus
\p@
}
134 \setcounter{topnumber
}{2}
135 \renewcommand\topfraction{.7}
136 \setcounter{bottomnumber
}{1}
137 \renewcommand\bottomfraction{.3}
138 \setcounter{totalnumber
}{3}
139 \renewcommand\textfraction{.2}
140 \renewcommand\floatpagefraction{.5}
141 \setcounter{dbltopnumber
}{2}
142 \renewcommand\dbltopfraction{.7}
143 \renewcommand\dblfloatpagefraction{.5}
146 \let\@oddfoot\@empty
\let\@evenfoot\@empty
147 \def\@evenhead
{\thepage\hfil\slshape\leftmark}%
148 \def\@oddhead
{{\slshape\rightmark}\hfil\thepage}%
149 \let\@mkboth
\markboth
150 \def\chaptermark#
#1{%
152 \ifnum \c@secnumdepth >
\m@ne
154 \@chapapp\
\thechapter. \
%
158 \def\sectionmark#
#1{%
160 \ifnum \c@secnumdepth >
\z@
167 \def\@oddhead
{{\slshape\rightmark}\hfil\thepage}%
168 \let\@mkboth
\markboth
169 \def\chaptermark#
#1{%
171 \ifnum \c@secnumdepth >
\m@ne
173 \@chapapp\
\thechapter. \
%
179 \let\@oddfoot\@empty
\let\@evenfoot\@empty
180 \def\@evenhead
{\thepage\hfil\slshape\leftmark}%
181 \def\@oddhead
{{\slshape\rightmark}\hfil\thepage}%
182 \let\@mkboth\@gobbletwo
183 \let\chaptermark\@gobble
184 \let\sectionmark\@gobble
187 \newcommand\maketitle{\begin{titlepage
}%
188 \let\footnotesize\small
189 \let\footnoterule\relax
190 \let \footnote \thanks
194 {\LARGE \@title
\par}%
198 \begin{tabular
}[t
]{c
}%
202 {\large \@date
\par}% % Set date in \large size.
207 \setcounter{footnote
}{0}%
208 \global\let\thanks\relax
209 \global\let\maketitle\relax
210 \global\let\@thanks\@empty
211 \global\let\@author\@empty
212 \global\let\@date\@empty
213 \global\let\@title\@empty
214 \global\let\title\relax
215 \global\let\author\relax
216 \global\let\date\relax
217 \global\let\and\relax
220 \newcommand\maketitle{\par
222 \renewcommand\thefootnote{\@fnsymbol
\c@footnote
}%
223 \def\@makefnmark
{\rlap{\@textsuperscript
{\normalfont\@thefnmark
}}}%
224 \long\def\@makefntext#
#1{\parindent 1em
\noindent
226 \hss\@textsuperscript
{\normalfont\@thefnmark
}}#
#1}%
228 \ifnum \col@number=\@ne
231 \twocolumn[\@maketitle
]%
235 \global\@topnum
\z@
% Prevents figures from going at top of page.
238 \thispagestyle{plain
}\@thanks
240 \setcounter{footnote
}{0}%
241 \global\let\thanks\relax
242 \global\let\maketitle\relax
243 \global\let\@maketitle
\relax
244 \global\let\@thanks\@empty
245 \global\let\@author\@empty
246 \global\let\@date\@empty
247 \global\let\@title\@empty
248 \global\let\title\relax
249 \global\let\author\relax
250 \global\let\date\relax
251 \global\let\and\relax
258 \let \footnote \thanks
259 {\LARGE \@title
\par}%
263 \begin{tabular
}[t
]{c
}%
272 \newcommand*
\chaptermark[1]{}
273 \setcounter{secnumdepth
}{2}
275 \newcounter {chapter
}
276 \newcounter {section
}[chapter
]
277 \newcounter {subsection
}[section
]
278 \newcounter {subsubsection
}[subsection
]
279 \newcounter {paragraph
}[subsubsection
]
280 \newcounter {subparagraph
}[paragraph
]
281 \renewcommand \thepart {\@Roman
\c@part
}
282 \renewcommand \thechapter {\@arabic
\c@chapter
}
283 \renewcommand \thesection {\thechapter.\@arabic
\c@section
}
284 \renewcommand\thesubsection {\thesection.\@arabic
\c@subsection
}
285 \renewcommand\thesubsubsection{\thesubsection .\@arabic
\c@subsubsection
}
286 \renewcommand\theparagraph {\thesubsubsection.\@arabic
\c@paragraph
}
287 \renewcommand\thesubparagraph {\theparagraph.\@arabic
\c@subparagraph
}
288 \newcommand\@chapapp
{\chaptername}
289 \newcommand\frontmatter{%
292 \pagenumbering{roman
}}
293 \newcommand\mainmatter{%
296 \pagenumbering{arabic
}}
297 \newcommand\backmatter{%
310 \thispagestyle{plain
}%
318 \secdef\@part\@spart
}
321 \ifnum \c@secnumdepth >-
2\relax
322 \refstepcounter{part
}%
323 \addcontentsline{toc
}{part
}{\thepart\hspace{1em
}#1}%
325 \addcontentsline{toc
}{part
}{#1}%
329 \interlinepenalty \@M
331 \ifnum \c@secnumdepth >-
2\relax
332 \huge\sffamily\bfseries \partname~
\thepart
336 \Huge \sffamily\bfseries #2\par}%
340 \interlinepenalty \@M
342 \Huge \sffamily\bfseries #1\par}%
344 \def\@endpart
{\vfil\newpage
347 \thispagestyle{empty
}%
353 \newcommand\chapter{\if@openright
\cleardoublepage\else\clearpage\fi
354 \thispagestyle{plain
}%
357 \secdef\@chapter\@schapter
}
358 \def\@chapter
[#1]#2{\ifnum \c@secnumdepth >
\m@ne
360 \refstepcounter{chapter
}%
361 \typeout{\@chapapp
\space\thechapter.
}%
362 \addcontentsline{toc
}{chapter
}%
363 {\protect\numberline{\thechapter}#1}%
365 \addcontentsline{toc
}{chapter
}{#1}%
368 \addcontentsline{toc
}{chapter
}{#1}%
371 \addtocontents{lof
}{\protect\addvspace{10\p@
}}%
372 \addtocontents{lot
}{\protect\addvspace{10\p@
}}%
374 \@topnewpage
[\@makechapterhead
{#2}]%
376 \@makechapterhead
{#2}%
379 \def\@makechapterhead
#1{%
381 {\parindent \z@
\raggedright \normalfont
382 \ifnum \c@secnumdepth >
\m@ne
384 \fontsize{30}{36} \selectfont\sffamily\bfseries \@chapapp
\space \thechapter
390 \fontsize{30}{36} \selectfont\sffamily\bfseries #1\par\nobreak
393 \def\@schapter
#1{\if@twocolumn
394 \@topnewpage
[\@makeschapterhead
{#1}]%
396 \@makeschapterhead
{#1}%
399 \def\@makeschapterhead
#1{%
401 {\parindent \z@
\raggedright
404 \fontsize{30}{36} \selectfont \sffamily\bfseries #1\par\nobreak
407 \newcommand\section{\@startsection
{section
}{1}{\z@
}%
408 {-
3.5ex \@plus -
1ex \@minus -
.2ex
}%
410 {\normalfont\Large\sffamily\bfseries}}
411 \newcommand\subsection{\@startsection
{subsection
}{2}{\z@
}%
412 {-
3.25ex\@plus -
1ex \@minus -
.2ex
}%
414 {\normalfont\large\sffamily\bfseries}}
415 \newcommand\subsubsection{\@startsection
{subsubsection
}{3}{\z@
}%
416 {-
3.25ex\@plus -
1ex \@minus -
.2ex
}%
418 {\normalfont\normalsize\sffamily\bfseries}}
419 \newcommand\paragraph{\@startsection
{paragraph
}{4}{\z@
}%
420 {3.25ex \@plus1ex \@minus
.2ex
}%
422 {\normalfont\normalsize\bfseries}}
423 \newcommand\subparagraph{\@startsection
{subparagraph
}{5}{\parindent}%
424 {3.25ex \@plus1ex \@minus
.2ex
}%
426 {\normalfont\normalsize\bfseries}}
428 \setlength\leftmargini {2em
}
430 \setlength\leftmargini {2.5em
}
432 \leftmargin \leftmargini
433 \setlength\leftmarginii {2.2em
}
434 \setlength\leftmarginiii {1.87em
}
435 \setlength\leftmarginiv {1.7em
}
437 \setlength\leftmarginv {.5em
}
438 \setlength\leftmarginvi {.5em
}
440 \setlength\leftmarginv {1em
}
441 \setlength\leftmarginvi {1em
}
443 \setlength \labelsep {.5em
}
444 \setlength \labelwidth{\leftmargini}
445 \addtolength\labelwidth{-
\labelsep}
446 \@beginparpenalty -\@lowpenalty
447 \@endparpenalty -\@lowpenalty
448 \@itempenalty -\@lowpenalty
449 \renewcommand\theenumi{\@arabic
\c@enumi
}
450 \renewcommand\theenumii{\@alph
\c@enumii
}
451 \renewcommand\theenumiii{\@roman
\c@enumiii
}
452 \renewcommand\theenumiv{\@Alph
\c@enumiv
}
453 \newcommand\labelenumi{\theenumi.
}
454 \newcommand\labelenumii{(
\theenumii)
}
455 \newcommand\labelenumiii{\theenumiii.
}
456 \newcommand\labelenumiv{\theenumiv.
}
457 \renewcommand\p@enumii
{\theenumi}
458 \renewcommand\p@enumiii
{\theenumi(
\theenumii)
}
459 \renewcommand\p@enumiv
{\p@enumiii
\theenumiii}
460 \newcommand\labelitemi{\textbullet}
461 \newcommand\labelitemii{\normalfont\bfseries \textendash}
462 \newcommand\labelitemiii{\textasteriskcentered}
463 \newcommand\labelitemiv{\textperiodcentered}
464 \newenvironment{description
}
465 {\list{}{\labelwidth\z@
\itemindent-
\leftmargin
466 \let\makelabel\descriptionlabel}}
468 \newcommand*
\descriptionlabel[1]{\hspace\labelsep
469 \normalfont\bfseries #1}
470 \newenvironment{verse
}
474 \listparindent\itemindent
475 \rightmargin \leftmargin
476 \advance\leftmargin 1.5em
}%
479 \newenvironment{quotation
}
480 {\list{}{\listparindent 1.5em
%
481 \itemindent \listparindent
482 \rightmargin \leftmargin
483 \parsep \z@ \@plus
\p@
}%
486 \newenvironment{quote
}
487 {\list{}{\rightmargin\leftmargin}%
491 \newenvironment{titlepage
}
495 \@restonecoltrue
\onecolumn
497 \@restonecolfalse
\newpage
499 \thispagestyle{empty
}%
502 {\if@restonecol
\twocolumn \else \newpage \fi
505 \newenvironment{titlepage
}
509 \@restonecoltrue
\onecolumn
511 \@restonecolfalse
\newpage
513 \thispagestyle{empty
}%
514 \setcounter{page
}\@ne
516 {\if@restonecol
\twocolumn \else \newpage \fi
518 \setcounter{page
}\@ne
522 \newcommand\appendix{\par
523 \setcounter{chapter
}{0}%
524 \setcounter{section
}{0}%
525 \gdef\@chapapp
{\appendixname}%
526 \gdef\thechapter{\@Alph
\c@chapter
}}
527 \setlength\arraycolsep{5\p@
}
528 \setlength\tabcolsep{6\p@
}
529 \setlength\arrayrulewidth{.4\p@
}
530 \setlength\doublerulesep{2\p@
}
531 \setlength\tabbingsep{\labelsep}
532 \skip\@mpfootins =
\skip\footins
533 \setlength\fboxsep{3\p@
}
534 \setlength\fboxrule{.4\p@
}
535 \@addtoreset
{equation
}{chapter
}
536 \renewcommand\theequation
537 {\ifnum \c@chapter>
\z@
\thechapter.
\fi \@arabic
\c@equation
}
538 \newcounter{figure
}[chapter
]
539 \renewcommand \thefigure
540 {\ifnum \c@chapter>
\z@
\thechapter.
\fi \@arabic
\c@figure
}
544 \def\fnum@figure
{\figurename~
\thefigure}
545 \newenvironment{figure
}
548 \newenvironment{figure*
}
551 \newcounter{table
}[chapter
]
552 \renewcommand \thetable
553 {\ifnum \c@chapter>
\z@
\thechapter.
\fi \@arabic
\c@table
}
557 \def\fnum@table
{\tablename~
\thetable}
558 \newenvironment{table
}
561 \newenvironment{table*
}
564 \newlength\abovecaptionskip
565 \newlength\belowcaptionskip
566 \setlength\abovecaptionskip{10\p@
}
567 \setlength\belowcaptionskip{0\p@
}
568 \long\def\@makecaption
#1#2{%
569 \vskip\abovecaptionskip
570 \sbox\@tempboxa
{#1:
#2}%
571 \ifdim \wd\@tempboxa >
\hsize
574 \global \@minipagefalse
575 \hb@xt@
\hsize{\hfil\box\@tempboxa
\hfil}%
577 \vskip\belowcaptionskip}
578 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
579 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
580 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
581 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
582 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
583 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath
\sl}
584 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath
\sc}
585 \DeclareRobustCommand*
\cal{\@fontswitch
\relax\mathcal}
586 \DeclareRobustCommand*
\mit{\@fontswitch
\relax\mathnormal}
587 \newcommand\@pnumwidth
{1.55em
}
588 \newcommand\@tocrmarg
{2.55em
}
589 \newcommand\@dotsep
{4.5}
590 \setcounter{tocdepth}{2}
591 \newcommand\tableofcontents{%
593 \@restonecoltrue
\onecolumn
597 \chapter*
{\contentsname
599 \contentsname}{\contentsname}}%
601 \if@restonecol
\twocolumn\fi
603 \newcommand*
\l@part
[2]{%
604 \ifnum \c@
tocdepth >-
2\relax
605 \addpenalty{-\@highpenalty
}%
606 \addvspace{2.25em \@plus
\p@
}%
608 \parindent \z@
\rightskip \@pnumwidth
609 \parfillskip -\@pnumwidth
611 \large \sffamily\bfseries #1\hfil \hb@xt@\@pnumwidth
{\hss #2}}\par
614 \everypar{\global\@nobreakfalse
\everypar{}}%
617 \newcommand*
\l@chapter
[2]{%
618 \ifnum \c@
tocdepth >
\m@ne
619 \addpenalty{-\@highpenalty
}%
620 \vskip 1.0em \@plus
\p@
621 \setlength\@tempdima
{1.5em
}%
623 \parindent \z@
\rightskip \@pnumwidth
624 \parfillskip -\@pnumwidth
625 \leavevmode \sffamily\bfseries
626 \advance\leftskip\@tempdima
628 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth
{\hss #2}\par
629 \penalty\@highpenalty
632 \newcommand*
\l@section
{\@dottedtocline
{1}{1.5em
}{2.3em
}}
633 \newcommand*
\l@subsection
{\@dottedtocline
{2}{3.8em
}{3.2em
}}
634 \newcommand*
\l@subsubsection
{\@dottedtocline
{3}{7.0em
}{4.1em
}}
635 \newcommand*
\l@paragraph
{\@dottedtocline
{4}{10em
}{5em
}}
636 \newcommand*
\l@subparagraph
{\@dottedtocline
{5}{12em
}{6em
}}
637 \newcommand\listoffigures{%
639 \@restonecoltrue
\onecolumn
643 \chapter*
{\listfigurename
644 \@mkboth
{\listfigurename}%
647 \if@restonecol
\twocolumn\fi
649 \newcommand*
\l@figure
{\@dottedtocline
{1}{1.5em
}{2.3em
}}
650 \newcommand\listoftables{%
652 \@restonecoltrue
\onecolumn
656 \chapter*
{\listtablename
658 \listtablename}{\listtablename}}%
660 \if@restonecol
\twocolumn\fi
662 \let\l@table
\l@figure
664 \setlength\bibindent{1.5em
}
665 \newenvironment{thebibliography
}[1]
667 \@mkboth
{\bibname}{\bibname}}%
668 \list{\@biblabel
{\@arabic
\c@enumiv
}}%
669 {\settowidth\labelwidth{\@biblabel
{#1}}%
670 \leftmargin\labelwidth
671 \advance\leftmargin\labelsep
675 \renewcommand\theenumiv{\@arabic
\c@enumiv
}}%
678 \@clubpenalty
\clubpenalty
682 {\@latex@warning
{Empty `thebibliography' environment
}}%
684 \newcommand\newblock{\hskip .11em\@plus
.33em\@minus
.07em
}
685 \let\@openbib@code\@empty
686 \newenvironment{theindex
}
694 \twocolumn[\@makeschapterhead
{\indexname}]%
695 \@mkboth
{\indexname}%
697 \thispagestyle{plain
}\parindent\z@
698 \parskip\z@ \@plus
.3\p@
\relax
700 {\if@restonecol
\onecolumn\else\clearpage\fi}
701 \newcommand\@idxitem
{\par\hangindent 40\p@
}
702 \newcommand\subitem{\@idxitem
\hspace*
{20\p@
}}
703 \newcommand\subsubitem{\@idxitem
\hspace*
{30\p@
}}
704 \newcommand\indexspace{\par \vskip 10\p@ \@plus5
\p@ \@minus3
\p@
\relax}
705 \renewcommand\footnoterule{%
707 \hrule\@width
.4\columnwidth
709 \@addtoreset
{footnote
}{chapter
}
710 \newcommand\@makefntext
[1]{%
713 \hb@xt@
1.8em
{\hss\@makefnmark
}#1}
714 \newcommand\contentsname{Contents
}
715 \newcommand\listfigurename{List of Figures
}
716 \newcommand\listtablename{List of Tables
}
717 \newcommand\bibname{Bibliography
}
718 \newcommand\indexname{Index
}
719 \newcommand\figurename{Figure
}
720 \newcommand\tablename{Table
}
721 \newcommand\partname{Part
}
722 \newcommand\chaptername{Chapter
}
723 \newcommand\appendixname{Appendix
}
724 \def\today{\ifcase\month\or
725 January
\or February
\or March
\or April
\or May
\or June
\or
726 July
\or August
\or September
\or October
\or November
\or December
\fi
727 \space\number\day,
\number\year}
728 \setlength\columnsep{10\p@
}
729 \setlength\columnseprule{0\p@
}
731 \pagenumbering{arabic
}
745 %% End of file `gmxmanual.cls'.