Debian Codegraph @

texmf-dist/source/latex/mugsthesis/mugsthesis.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2022 by Paul D. Gessler
4 % ---------------------------------------------------------------------------
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either version 1.3
7 % of this license or (at your option) any later version.
8 % The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3 or later is part of all distributions of LaTeX
11 % version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status `maintained'.
14 %
15 % The Current Maintainer of this work is Paul D. Gessler <[email protected]>.
16 %
17 % This work consists of the files mugsthesis.dtx and mugsthesis.ins
18 % and the derived file mugsthesis.cls.
19 %
20 % \fi
21 %
22 % \iffalse
23 %<*driver>
24 \ProvidesFile{mugsthesis.dtx}
25 %</driver>
26 %<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
27 %<class>\ProvidesClass{mugsthesis}
28 %<*class>
29 [2022/09/01 v1.1 Marquette University Graduate School Thesis Class]
30 %</class>
31 %
32 %<*driver>
33 \documentclass{ltxdoc}
34 \usepackage{microtype}
35 \EnableCrossrefs
36 \CodelineIndex
37 \RecordChanges
38 \begin{document}
39 \DocInput{mugsthesis.dtx}
40 \end{document}
41 %</driver>
42 % \fi
43 %
44 % \CheckSum{384}
45 %
46 % \CharacterTable
47 % {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
48 % 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
49 % Digits \0\1\2\3\4\5\6\7\8\9
50 % Exclamation \! Double quote \" Hash (number) \#
51 % Dollar \$ Percent \% Ampersand \&
52 % Acute accent \' Left paren \( Right paren \)
53 % Asterisk \* Plus \+ Comma \,
54 % Minus \- Point \. Solidus \/
55 % Colon \: Semicolon \; Less than \<
56 % Equals \= Greater than \> Question mark \?
57 % Commercial at \@ Left bracket \[ Backslash \\
58 % Right bracket \] Circumflex \^ Underscore \_
59 % Grave accent \` Left brace \{ Vertical bar \|
60 % Right brace \} Tilde \~}
61 %
62 %
63 % \changes{v1.0}{2014/08/07}{Initial public release}
64 % \changes{v1.1}{2022/09/01}{Added document type options for theses and dissertations}
65 %
66 % \DoNotIndex{\newcommand,\newenvironment}
67 % \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ }
68 % \DoNotIndex{\@ne,\@ifstar,\@title}
69 % \DoNotIndex{\advance,\addcontentsline,\addtolength,\aftergroup}
70 % \DoNotIndex{\AtBeginEnvironment,\AtEndPreamble}
71 % \DoNotIndex{\baselineskip,\begin,\begingroup,\bfseries,\boolfalse,\booltrue}
72 % \DoNotIndex{\catcode,\centering,\closein,\closeout}
73 % \DoNotIndex{\day,\def,\edef,\else,\empty,\end,\endgroup,\ifbool,\let}
74 % \DoNotIndex{\newbool,\newlength,\noexpand,\normalfont,\onelineskip}
75 % \DoNotIndex{\par,\parbox,\pretocmd,\protect,\providecommand}
76 % \DoNotIndex{\renewcommand,\renewenvironment,\RequirePackage}
77 % \DoNotIndex{\setcounter,\setlength,\small,\texorpdfstring,\unskip,\vfill,\vskip,\vspace}
78 %
79 % \providecommand*{\url}{\texttt}
80 % \newcommand{\opt}[1]{\texttt{#1}}
81 % \newcommand{\optd}[1]{\opt{#1}~(default)}
82 % \GetFileInfo{mugsthesis.dtx}
83 % \title{The \cls{mugsthesis} class}
84 % \author{Paul D. Gessler \\ \url{<[email protected]>}}
85 % \date{\fileversion,~dated \filedate}
86 %
87 % \maketitle
88 % \begin{abstract}
89 % \cls{mugsthesis} is a document class to be used for typesetting Marquette University Graduate School (MUGS) theses and dissertations.
90 % It is based on the \cls{memoir} class, and meets the basic requirements contained
91 % in the MUGS \emph{Thesis/Dissertation Directives}.\footnotemark The class provides a minimal
92 % set of changes to the \cls{memoir} class to meet the university's specifications.
93 % As such, it should be compatible with any other packages that are compatible with
94 % the widely used \cls{memoir} class.
95 % \end{abstract}
96 % \footnotetext{\cls{mugsthesis} \fileversion\ is compatible with MUGS \emph{Thesis Directives} dated 2014, available at \url{https://www.marquette.edu/grad/documents/thesis-directives-2014.pdf} and \emph{Dissertation Directives} dated 2018, available at \url{https://www.marquette.edu/grad/documents/dissertation-directives.pdf}}
97 %
98 % \section{Introduction}
99 %
100 % The \cls{mugsthesis} document class is designed to allow straightforward preparation of MUGS theses and dissertations
101 % using the \LaTeX\ document preparation system. It complies with the MUGS \emph{Thesis/Dissertation Directives}
102 % while maintaining compatibility with other packages used to extend the functionality of \LaTeX.
103 %
104 % Development of the document class is currently hosted on sourcehut\footnote{\url{https://sr.ht/~pdgessler/mugsthesis/}}.
105 % You are welcome to follow development, submit any issues you discover, or suggest improvements/enhancements
106 % using the web interface or mailing list there.
107 %
108 % The easiest way to start using the \cls{mugsthesis} document class is to take a look at the sample
109 % document provided, |mugsthesis_sample.tex|, along with its associated included files.
110 % You can take this as the basis for your own thesis or dissertation.
111 %
112 % \section{Package Options}
113 % The class supports several options for configuring the appearance of the thesis or dissertation.
114 % Apart from the options below, \cls{memoir} is loaded with options \opt{letterpaper} and \opt{oneside}
115 % as specified in the \emph{Thesis/Dissertation Directives}.
116 %
117 % \section{Document Type}
118 % The type of document, either a thesis or a dissertation, is adjusted through the use of the options \optd{thesis} and \opt{dissertation}.
119 % \opt{thesis} produces a thesis and \opt{dissertation} produces a dissertation. Currently, the only difference is in the text on the title page.
120 % The document type options are mutually exclusive.
121 %
122 % \subsection{Font Size}
123 % The base font size of the document is adjusted through use of the options \opt{10pt}, \opt{11pt}, and \optd{12pt}.
124 % The font size options are mutually exclusive; if more than one is specified, the default will be used.
125 %
126 % \subsection{Other Options}
127 % The options \optd{final} and \opt{draft} configure the output document: \opt{final} produces a camera-ready copy of the thesis,
128 % while \opt{draft} marks overfull lines with black rules in the margins, and may have interaction with other packages.
129 % The most common interaction is that \pkg{graphicx} will place empty boxes instead of the actual graphics when the \opt{draft}
130 % option is set. These options are mutually exclusive.
131 %
132 % The options \optd{indentfirsttrue} and \opt{indentfirstfalse} configure the indentation of the first paragraph following a heading.
133 % The \emph{Thesis Directives} show indentation of the initial paragraphs and specify that ``new paragraphs should be indented 0.5\,in''.
134 % Centuries of typographers contend that the purpose of indentation is to mark the beginning of a new paragraph, and the heading itself
135 % serves that purpose for the first paragraph under a heading. So the \opt{indentfirstfalse} option is provided if you agree with this contention.
136 % These options are mutually exclusive.
137 %
138 % \subsection{Unsupported \cls{memoir} Options}
139 % The \cls{memoir} class has many other options.
140 % Traditionally, an author can specify a base class option and the derived class will pass that option to the base class.
141 % However, many of these options would cause non-compliance with the MUGS \emph{Thesis Directives}.
142 % For this reason, all unsupported options are reported to the log file and otherwise ignored.
143 %
144 % \section{Usage}
145 %
146 % A number of commands (macros) and environments are defined by \cls{mugsthesis} for use
147 % in the preparation of theses. In-context examples of their use may be found in |mugsthesis_sample.tex|.
148 %
149 % \DescribeMacro{\title}
150 % The |\title|\marg{title} macro takes a single mandatory argument, which is the title of the thesis.
151 % Ensure that it is less than 120 characters long, and that it is entered with line breaks chosen
152 % to produce the requested inverted pyramid format. An example from the \emph{Thesis Directives}:
153 % \begin{verbatim}
154 % \title{
155 % A STUDY OF THE SOCIOLOGICAL IMPACT OF THE\\
156 % 1984 OLYMPICS ON THE POVERTY\\
157 % LEVEL OF CITIZENS OF\\
158 % LOS ANGELES
159 % }\end{verbatim}
160 % The capitalization here is not strictly necessary; all letters are converted to upper case internally.
161 %
162 % \DescribeMacro{\author}
163 % The macro |\author|\marg{author} accepts a single mandatory argument, which should contain the author's name and credentials.
164 % Using the \emph{Thesis Directives} example once again:
165 % \begin{verbatim}
166 % \author{John J. Smith, B.A.}\end{verbatim}
167 %
168 % \DescribeMacro{\degree}
169 % The |\degree|\marg{degree} macro takes a single mandatory argument, the degree pursued by the author. An example from
170 % the directives, as ever:
171 % \begin{verbatim}
172 % \degree{Master of Science}\end{verbatim}
173 %
174 % \DescribeMacro{\degreemo}
175 % \DescribeMacro{\degreeyr}
176 % The macros |\degreemo|\marg{month} and |\degreeyr|\marg{year} each accept a single argument,
177 % which is the month and year, respectively, during which the degree is to be conferred. The value
178 % of \meta{month} must be one of May, August, or December:
179 % \begin{verbatim}
180 % \degreemo{December}
181 % \degreeyr{2013}\end{verbatim}
182 %
183 % \DescribeMacro{\maketitle}
184 % The |\maketitle| command typesets the title page with all the previously-declared metadata, and should be used immediately at the beginning of the |document| environment.
185 %
186 % \DescribeEnv{abstract}
187 % \DescribeEnv{acknowledgments}
188 % \DescribeEnv{dedication}
189 % The environments |abstract| (mandatory), |acknowledgments| (optional), and |dedication| (optional)
190 % should be used for the respective content, if included. The |abstract| environment must immediately follow |\maketitle|,
191 % and the |acknowledgments| and |dedication| environments, if used, should follow |abstract|.
192 %
193 % \DescribeMacro{\tableofcontents}
194 % \DescribeMacro{\listoftables}
195 % \DescribeMacro{\listoffigures}
196 % The Graduate School requires a table of contents to appear in every thesis. Additionally, lists of tables and lists of figures may be used.
197 % The commands |\tableofcontents|, |\listoftables|, and |\listoffigures| should be used to generate these lists with the appropriate formatting.
198 % |\tableofcontents| should follow the abstract and any optional environments used in the front matter.
199 % |\listoftables| or |\listoffigures| should be used after |\tableofcontents|.
200 % If both are used, |\listoftables| should precede |\listoffigures|.
201 %
202 % \DescribeMacro{\frontmatter}
203 % \DescribeMacro{\mainmatter}
204 % \DescribeMacro{\appendix}
205 % The switch commands |\frontmatter|, |\mainmatter|, and |\appendix| set the page and chapter numbering styles for the appropriate parts of the thesis.
206 % They should immediately precede the abstract, first main body chapter, and first appendix (if any), respectively.
207 %
208 % \DescribeMacro{\bibname}
209 % The |\bibname| command contains the name text for the bibliography (default: BIBLIOGRAPHY). If the chosen
210 % citation/reference style specifies a different name (for example: REFERENCES), it can be changed with:
211 % \begin{verbatim}
212 % \renewcommand{\bibname}{REFERENCES}\end{verbatim}
213 %
214 % Many other commands and environments are defined by the \cls{memoir} class for document elements
215 % including (sub)figures, (sub)tables, associated captions, quotations, and more.
216 % Consult the \cls{memoir} documentation\footnote{\url{http://texdoc.net/pkg/memoir}} for complete details.
217 % If these or customizations from other packages are used, it is ultimately the author's responsibility to verify that
218 % compliance with the \emph{Thesis Directives} is maintained.
219 %
220 % \StopEventually{\PrintChanges \PrintIndex}
221 %
222 % \section{Implementation}
223 %
224 % \iffalse
225 %<*class>
226 % \fi
227 %
228 % First, load \pkg{etoolbox} for patching existing commands.
229 % \begin{macrocode}
230 \RequirePackage{etoolbox}
231 % \end{macrocode}
232 % Declare a new boolean to control indentation of initial paragraphs.
233 % \begin{macrocode}
234 \newbool{indentfirst}
235 % \end{macrocode}
236 % Declare class options, pass them to the base class if applicable,
237 % and discard any unsupported options, warning the user they have been ignored.
238 % \begin{macrocode}
239 \DeclareOption{thesis}{\def\@mugsdoctype{Thesis}}
240 \DeclareOption{dissertation}{\def\@mugsdoctype{Dissertation}}
241 \DeclareOption{10pt}{\PassOptionsToClass{10pt}{memoir}}
242 \DeclareOption{11pt}{\PassOptionsToClass{11pt}{memoir}}
243 \DeclareOption{12pt}{\PassOptionsToClass{12pt}{memoir}}
244 \DeclareOption{final}{\PassOptionsToClass{final}{memoir}}
245 \DeclareOption{draft}{\PassOptionsToClass{draft}{memoir}}
246 \DeclareOption{indentfirsttrue}{\booltrue{indentfirst}}
247 \DeclareOption{indentfirstfalse}{\boolfalse{indentfirst}}
248 \DeclareOption*{%
249 \ClassWarning{mugsthesis}{Unknown option `\CurrentOption' ignored}%
250 }
251 % \end{macrocode}
252 % Execute default options \opt{thesis}, \opt{12pt}, \opt{final}, and \opt{indentfirsttrue},
253 % and process the author-specified options.
254 % \begin{macrocode}
255 \ExecuteOptions{thesis,12pt,final,indentfirsttrue}
256 \ProcessOptions\relax
257 % \end{macrocode}
258 % Use the \pkg{indentfirst} package if \opt{indentfirsttrue} is set.
259 % \begin{macrocode}
260 \ifbool{indentfirst}{\RequirePackage{indentfirst}}{}
261 % \end{macrocode}
262 % Load the base \cls{memoir} class with options \opt{letterpaper} and \opt{oneside}.
263 % \begin{macrocode}
264 \LoadClass[letterpaper,oneside]{memoir}
265 % \end{macrocode}
266 %
267 % Set the line spacing and justification according to the MUGS \emph{Thesis Directives}.
268 % Additionally set |\raggedbottom| to avoid underfull |\hbox|es with rigid skip lengths.
269 % \begin{macrocode}
270 \DoubleSpacing
271 \raggedright
272 \raggedbottom
273 % \end{macrocode}
274 % Set the page layout.
275 % \begin{macrocode}
276 \setlrmarginsandblock{1.5in}{1.0in}{*} % left and right margins
277 \setulmarginsandblock{1.0in}{1.0in}{*} % top and bottom margins
278 \setheaderspaces{0.5in}{*}{*} % header 0.5in from edge
279 \marginparmargin{left} % use the wider (left) margin for notes
280 \setmarginnotes{0.125in}{1.25in}{\baselineskip} % type area for notes
281 \checkandfixthelayout[lines] % check the layout; TODO check algorithm selection
282 % \end{macrocode}
283 % Set the paragraph indentation.
284 % \begin{macrocode}
285 \setlength\parindent{0.5in}
286 % \end{macrocode}
287 % Define and use the |mugs| pagestyle for page numbering throughout the thesis.
288 % \begin{macrocode}
289 \makepagestyle{mugs}
290 \makeevenhead{mugs}{}{}{\thepage}
291 \makeoddhead{mugs}{}{}{\thepage}
292 % \end{macrocode}
293 % Alias the |chapter| pagestyle to |mugs| so the chapter opening pages
294 % have numbering identical to the rest of the pages, and set the page style for the document.
295 % \begin{macrocode}
296 \aliaspagestyle{chapter}{mugs}
297 \pagestyle{mugs}
298 % \end{macrocode}
299 %
300 % \begin{macro}{\degree}
301 % \begin{macro}{\degreemo}
302 % \begin{macro}{\degreeyr}
303 % Define |\degree|\marg{degree} to set the degree name for the title page.
304 % \begin{macrocode}
305 \newcommand{\degree}[1]{\def\mugsdegree{#1}}
306 % \end{macrocode}
307 % Similarly, define |\degreemo|\marg{month} and |\degreeyr|\marg{year} to set the
308 % date of conferral for the title and abstract pages.
309 % \begin{macrocode}
310 \newcommand{\degreemo}[1]{\def\mugsdegreemo{#1}}
311 \newcommand{\degreeyr}[1]{\def\mugsdegreeyr{#1}}
312 % \end{macrocode}
313 % \end{macro}
314 % \end{macro}
315 % \end{macro}
316 %
317 % \begin{macro}{\title}
318 % Redefine |\title| to use full upper case.
319 % \begin{macrocode}
320 \renewcommand{\title}[1]{\def\@title{\uppercase{#1}}}
321 % \end{macrocode}
322 % \end{macro}
323 %
324 % \begin{macro}{\maketitle}
325 % Redefine |\maketitle| to produce the appropriate title page, using all author metadata.
326 % \begin{macrocode}
327 \renewcommand{\maketitle}{{%
328 \cleardoublepage
329 \pagenumbering{Alph}
330 \SingleSpace
331 \thispagestyle{empty}
332 \centering
333 \@title
334 \vfill
335 by
336 \vskip \onelineskip
337 \@author
338 \vfill
339 A \@mugsdoctype\ submitted to the Faculty of the Graduate School,\\
340 Marquette University,\\
341 in Partial Fulfillment of the Requirements for\\
342 the Degree of \mugsdegree{}
343 \vfill
344 Milwaukee, Wisconsin
345 \vskip \onelineskip
346 \mugsdegreemo~\mugsdegreeyr
347 \clearpage
348 }}
349 % \end{macrocode}
350 % \end{macro}
351 %
352 %
353 % \begin{environment}{abstract}
354 % Redefine the |abstract| environment for typesetting according to the directives.
355 % \begin{macrocode}
356 \renewenvironment{abstract}{%
357 \thispagestyle{empty}
358 \begin{SingleSpace}
359 \begin{center}
360 ABSTRACT\\
361 \@title
362 \vskip 2\onelineskip
363 \@author
364 \vskip \onelineskip
365 Marquette University, \mugsdegreeyr
366 \vskip 2\baselineskip
367 \end{center}
368 \@afterindentfalse\@afterheading % makes indentfirst work with custom envs
369 }{
370 \end{SingleSpace}\setcounter{page}{0}
371 }
372 % \end{macrocode}
373 % \end{environment}
374 %
375 %
376 % \begin{environment}{acknowledgments}
377 % Define the optional |acknowledgments| environment.
378 % \begin{macrocode}
379 \newenvironment{acknowledgments}{%
380 \addcontentsline{toc}{chapter}{ACKNOWLEDGMENTS}
381 \chapter*{Acknowledgments}
382 \begin{SingleSpace}
383 \begin{center}
384 \unskip
385 \@author
386 \vskip 2\onelineskip
387 \end{center}
388 \@afterindentfalse\@afterheading
389 }{\end{SingleSpace}}
390 % \end{macrocode}
391 % \end{environment}
392 %
393 %
394 % \begin{environment}{dedication}
395 % Define the optional |dedication| environment.
396 % \begin{macrocode}
397 \newenvironment{dedication}{%
398 \addcontentsline{toc}{chapter}{DEDICATION}
399 \chapter*{Dedication}
400 \begin{SingleSpace}\vskip\onelineskip
401 \@afterindentfalse\@afterheading
402 }{\end{SingleSpace}}
403 % \end{macrocode}
404 % \end{environment}
405 %
406 %
407 % Declare subfloats using \cls{memoir} facilities.\footnote{These are not needed by all users; consider an option to enable? Maximum depth required?}
408 % Ensure any subfloats are listed in the list of figures and list of tables.
409 % \begin{macrocode}
410 \newsubfloat{figure}
411 \newsubfloat{table}
412 \setcounter{lofdepth}{2}
413 \setcounter{lotdepth}{2}
414 % \end{macrocode}
415 % Define and use the MUGS chapter style throughout the thesis.
416 % \begin{macrocode}
417 \makechapterstyle{mugs}{%
418 \setlength{\midchapskip}{0pt}
419 \setlength{\afterchapskip}{0pt}
420 \renewcommand*{\chapterheadstart}{}
421 \renewcommand*{\chaptitlefont}{\bfseries}
422 \renewcommand*{\printchaptername}{\centering \MakeTextUppercase{\@chapapp}}
423 \renewcommand*{\printchapternum}{\thechapter}
424 \renewcommand*{\printchaptertitle}[1]{%
425 \SingleSpacing \protect\parbox{\textwidth}{%
426 \centering \chaptitlefont \MakeTextUppercase{##1}
427 }
428 }
429 }% end{mugs}
430 \chapterstyle{mugs}
431 % \end{macrocode}
432 % Put the LoT and LoF on their own pages by patching their definitions.
433 % \begin{macrocode}
434 \pretocmd{\listoftables}{\clearforchapter}{}{%
435 \ClassWarning{mugsthesis}{Patching `\noexpand\listoftables' failed}
436 }
437 % \end{macrocode}
438 %
439 % \begin{macrocode}
440 \pretocmd{\listoffigures}{\clearforchapter}{}{%
441 \ClassWarning{mugsthesis}{Patching `\noexpand\listoffigures' failed}
442 }
443 % \end{macrocode}
444 %
445 % \begin{macro}{\contentsname}
446 % \begin{macro}{\listtablename}
447 % \begin{macro}{\listfigurename}
448 % \begin{macro}{\bibname}
449 % Style the ToC, LoT, LoF, and Bibliography headings.
450 % \begin{macrocode}
451 \renewcommand*{\contentsname}{TABLE OF CONTENTS}
452 \renewcommand*{\listtablename}{LIST OF TABLES}
453 \renewcommand*{\listfigurename}{LIST OF FIGURES}
454 \renewcommand*{\bibname}{BIBLIOGRAPHY}
455 % \end{macrocode}
456 % \end{macro}
457 % \end{macro}
458 % \end{macro}
459 % \end{macro}
460 % Specify one line skip between bibliography entries.
461 % \begin{macrocode}
462 \setlength{\bibitemsep}{\onelineskip}
463 % \end{macrocode}
464 %
465 % \begin{macro}{\prebibhook}
466 % Redefine |\prebibhook| to set single spacing in the bibliography and proper spacing after the heading.
467 % \begin{macrocode}
468 \renewcommand*{\prebibhook}{\SingleSpacing\vskip\onelineskip}
469 % \end{macrocode}
470 % \end{macro}
471 %
472 % \begin{macro}{\biblistextra}
473 % Redefine |\biblistextra| to set item separation and indentation.
474 % \begin{macrocode}
475 \renewcommand*{\biblistextra}{%
476 \setlength{\itemsep}{\bibitemsep}
477 \setlength{\leftmargin}{0.375in}% hanging indent
478 \setlength{\itemindent}{\labelwidth}%
479 \addtolength{\itemindent}{\labelsep}
480 \addtolength{\itemindent}{-\leftmargin}
481 }
482 % \end{macrocode}
483 % \end{macro}
484 %
485 % \begin{macro}{\tableofcontents}
486 % Do not place an entry for the ToC within the ToC itself.
487 % \begin{macrocode}
488 \renewcommand{\tableofcontents}{%
489 \@ifstar{\mem@tableofcontents{01}}
490 {\mem@tableofcontents{01}}%
491 }
492 % \end{macrocode}
493 % \end{macro}
494 %
495 % Set the indentation for the ToC, LoT, and LoF (0.5\,in additional per level).
496 % \begin{macrocode}
497 \setlength{ \cftchapterindent}{0.0in}
498 \setlength{ \cftsectionindent}{0.5in}
499 \setlength{ \cftsubsectionindent}{1.0in}
500 \setlength{\cftsubsubsectionindent}{1.5in}
501 \setlength{ \cftparagraphindent}{2.0in}
502 \setlength{ \cftsubparagraphindent}{2.5in}
503 \setlength{ \cfttableindent}{0.0in}
504 \setlength{ \cftsubtableindent}{0.5in}
505 \setlength{ \cftfigureindent}{0.0in}
506 \setlength{ \cftsubfigureindent}{0.5in}
507 % \end{macrocode}
508 % Ragged right within and one line skip between ToC, LoT, and LoF entries.
509 % \begin{macrocode}
510 \setrmarg{3.55em plus 1fil}
511 \setlength{\cftbeforechapterskip}{\onelineskip}
512 \setlength{\cftbeforesectionskip}{\onelineskip}
513 \setlength{\cftbeforesubsectionskip}{\onelineskip}
514 \setlength{\cftbeforesubsubsectionskip}{\onelineskip}
515 \setlength{\cftbeforeparagraphskip}{\onelineskip}
516 \setlength{\cftbeforesubparagraphskip}{\onelineskip}
517 \setlength{\cftbeforetableskip}{\onelineskip}
518 \setlength{\cftbeforesubtableskip}{\onelineskip}
519 \setlength{\cftbeforefigureskip}{\onelineskip}
520 \setlength{\cftbeforesubfigureskip}{\onelineskip}
521 % \end{macrocode}
522 %
523 % \begin{macro}{\insertchapterspace}
524 % No extra space between chapters.
525 % \begin{macrocode}
526 \renewcommand{\insertchapterspace}{}
527 % \end{macrocode}
528 % \end{macro}
529 %
530 % \begin{macro}{\aftertoctitle}
531 % \begin{macro}{\afterlottitle}
532 % \begin{macro}{\afterloftitle}
533 % Switch to single spacing in the ToC, LoT, and LoF.
534 % \begin{macrocode}
535 \renewcommand{\aftertoctitle}{\vspace{-\onelineskip}\aftergroup\SingleSpacing}
536 \renewcommand{\afterlottitle}{\vspace{-\onelineskip}\aftergroup\SingleSpacing}
537 \renewcommand{\afterloftitle}{\vspace{-\onelineskip}\aftergroup\SingleSpacing}
538 % \end{macrocode}
539 % \end{macro}
540 % \end{macro}
541 % \end{macro}
542 %
543 %
544 % \begin{macro}{\cftchapterfont}
545 % \begin{macro}{\cftchapterleader}
546 % \begin{macro}{\cftchapterpagefont}
547 % Style the ToC chapter headings.
548 % \begin{macrocode}
549 \renewcommand{\cftchapterfont}{\normalfont}
550 \renewcommand{\cftchapterleader}{\cftsectionleader}
551 \renewcommand{\cftchapterpagefont}{\normalfont}
552 % \end{macrocode}
553 % \end{macro}
554 % \end{macro}
555 % \end{macro}
556 %
557 % \begin{macro}{\f@rtoc}
558 % For \pkg{hyperref} bookmarking functionality (if present).
559 % \begin{macrocode}
560 \AtEndPreamble{\providecommand{\texorpdfstring}[2]{#1}}
561 \settocpreprocessor{chapter}{%
562 \let\tempf@rtoc\f@rtoc%
563 \def\f@rtoc{%
564 \texorpdfstring{\MakeTextUppercase{\tempf@rtoc}}{\tempf@rtoc}}%
565 }
566 % \end{macrocode}
567 % \end{macro}
568 %
569 % Set spacing in quote and quotation environments.
570 % \begin{macrocode}
571 \AtBeginEnvironment{quote}{\par\SingleSpacing}
572 \AtBeginEnvironment{quotation}{\par\SingleSpacing}
573 % \end{macrocode}
574 % Set sectional unit numbering levels and ToC depth.
575 % \begin{macrocode}
576 \maxsecnumdepth{subsection}
577 \settocdepth{subsection}
578 % \end{macrocode}
579 % Style the lower-level headings.
580 % \begin{macrocode}
581 \newlength{\preheadskip}\setlength{\preheadskip}{1sp plus 1sp minus 1sp}
582 \newlength{\postheadskip}\setlength{\postheadskip}{\onelineskip}
583 \setsecheadstyle{\bfseries\SingleSpacing}
584 \setbeforesecskip{\preheadskip}
585 \setaftersecskip{\postheadskip}
586 \setsubsecheadstyle{\bfseries\SingleSpacing}
587 \setbeforesubsecskip{\preheadskip}
588 \setaftersubsecskip{\postheadskip}
589 \setsubsubsecheadstyle{\bfseries\SingleSpacing}
590 \setbeforesubsubsecskip{\preheadskip}
591 \setaftersubsubsecskip{\postheadskip}
592 % \end{macrocode}
593 % Set the list and table spacings.
594 % \begin{macrocode}
595 \tightlists
596 \AtBeginEnvironment{tabular}{\SingleSpacing}
597 % \end{macrocode}
598 % Set the caption styles and spacing.
599 % \begin{macrocode}
600 \captionstyle[\centering]{\raggedright}
601 \subcaptionsize{\small}
602 \setlength{\abovecaptionskip}{\parsep}
603 \setlength{\belowcaptionskip}{-\parsep}
604 % \end{macrocode}
605 % Avoid orphans, widows, and other detritus.
606 % \begin{macrocode}
607 \clubpenalty=10000
608 \widowpenalty=9996
609 \brokenpenalty=4991
610 \predisplaypenalty=10000
611 \postdisplaypenalty=1549
612 \displaywidowpenalty=1602
613 % \end{macrocode}
614 % Set the spacing between floats and surrounding elements.
615 % \begin{macrocode}
616 \setlength{\floatsep}{3\onelineskip}
617 \setlength{\intextsep}{2\onelineskip}
618 \setlength{\textfloatsep}{2\onelineskip}
619 \setlength{\dblfloatsep}{2\onelineskip}
620 \setlength{\dbltextfloatsep}{2\onelineskip}
621 % \end{macrocode}
622
623 %
624 % \iffalse
625 %</class>
626 % \fi
627 %
628 % \Finale
629 \endinput