Debian Codegraph @

texmf-dist/source/latex/nddiss/nddiss2e.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2004-2005 by Sameer Vijay
4 %
5 % This file may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.2 of this license or (at your option) any later
8 % version. The latest version of this license is in
9 %
10 % http://www.latex-project.org/lppl.txt
11 %
12 %
13 % \fi
14 %
15 %
16 % \CheckSum{1478}
17 % \CharacterTable
18 % {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
19 % 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
20 % Digits \0\1\2\3\4\5\6\7\8\9
21 % Exclamation \! Double quote \" Hash (number) \#
22 % Dollar \$ Percent \% Ampersand \&
23 % Acute accent \' Left paren \( Right paren \)
24 % Asterisk \* Plus \+ Comma \,
25 % Minus \- Point \. Solidus \/
26 % Colon \: Semicolon \; Less than \<
27 % Equals \= Greater than \> Question mark \?
28 % Commercial at \@ Left bracket \[ Backslash \\
29 % Right bracket \] Circumflex \^ Underscore \_
30 % Grave accent \` Left brace \{ Vertical bar \|
31 % Right brace \} Tilde \~}
32 %
33 % \changes{v0.98}{2004/04/15}{Initial {\em beta} version}
34 % \renewcommand{\generalname}{Release}
35 % \changes{v1.0}{2004/06/15}{First release}
36 % \renewcommand{\generalname}{General}
37 % \changes{v1.1}{2005/04/14}{Minor changes and clean-up}
38 % \changes{v2.0}{2005/05/14}{Some bugfixes, cleaned some of documentation}
39 % \changes{v2.1}{2005/06/14}{More bugfixes, changes in documentation}
40 % \renewcommand{\generalname}{Release}
41 % \changes{v3.0}{2005/07/27}{Major revamp and clean-up of the code, added
42 % \texttt{numrefs} and \texttt{textrefs} to allow different kinds of citation
43 % styles, added some more macros and modified others,
44 % changed the titlepage a bit, completed source documentation}
45 % \changes{v3.2013$\beta$}{2013/1/14}{Initial release of updates in order to comply with
46 % the Graduate School's current formatting regulations and to take advantage
47 % of some LaTeX package updates. Should be functional, and has been approved
48 % by the Dissertation/Thesis editors, but has not undergone wide-scale testing. - Megan Patnott}
49 % \changes{v3.2013}{2013/4/20}{Some bug fixes, minor changes in documentation, and addition of support for parts. - MP}
50 % \changes{v3.2016}{2016/10/16}{Fix natbib/showkeys ordering bug}
51 % \changes{v3.2017.1}{2017/05/09}{Display (CONTINUED) on multipage long table captions}
52 % \changes{v3.2017.2}{2017/08/23}{Add LuaLaTeX support. Allow non-capitalized titles.}
53 % \renewcommand{\generalname}{Update}
54 %
55 % \iffalse (Don't show this in the doc).
56 % \begin{macrocode}
57 %<*driver>
58 \ProvidesFile{nddiss2e.dtx}
59 \documentclass{ltxdoc}
60 \setcounter{secnumdepth}{2}
61 \setcounter{tocdepth}{2}
62 \DeclareRobustCommand{\nddiss}{%
63 \textsf{{\scshape nd}diss}\kern-0.03em%
64 2$_\mathsf{\textstyle\varepsilon}$}
65 \providecommand{\dissfileversion}{3.2017.2}
66 \providecommand{\dissfiledate}{2017-05-09}
67 \DisableCrossrefs
68 \CodelineNumbered
69 \RecordChanges
70 \begin{document}
71 \DocInput{nddiss2e.dtx}
72 \end{document}
73 %</driver>
74 % \end{macrocode}
75 % \fi
76 %
77 % \title{The \nddiss\/ class\thanks{Version~\dissfileversion,%
78 % dated~\dissfiledate.}}
79 %
80 % \date{\dissfiledate}
81 %
82 % \maketitle
83 %
84 % \begin{abstract}
85 % The \nddiss\space class can be used to typeset dissertations submitted
86 % to the University of Notre Dame's Graduate School. This class conforms with
87 % the Graduate School guidelines as of Spring 2013 for the layout of the Ph.D.
88 % dissertations and Master's theses.
89 % \end{abstract}
90 %
91 % \tableofcontents
92 %
93 % \section{Introduction}
94 % \label{sec:intro}
95 % The \LaTeXe\space document class \nddiss\ is suitable for producing dissertations
96 % and theses conforming to the Spring 2013
97 % guidelines of the Graduate School at the University of Notre Dame.
98 % The package is extends the standard \LaTeX\/ \textsf{book} class.
99 %
100 % The latest version of this class and related documentation can be found
101 % in a few places:
102 % \begin{itemize}
103 % \item On CTAN: \url{https://ctan.org/pkg/nddiss}
104 % \item On GitHub: \url{https://github.com/ndlib/nddiss}
105 % \item On the University of Notre Dame's Graduate School website: \url{http://graduateschool.nd.edu/}
106 % \end{itemize}
107 %
108 % \subsection{Disclaimer}
109 % \label{sec:disclaimer}
110 % While this class does as much formatting as it can, there are a few formatting items that
111 % you, the user, must do manually (see Section \ref{sec:author}).
112 % Please keep in mind that only \emph{you} are responsible for the
113 % correct formatting of your dissertation/thesis.
114 % Should you have questions, please consult the official formatting guide or email \url{[email protected]}.
115 %
116 % \subsection{Dependencies and Limitations}
117 % \label{sec:deps}
118 % This classfile depends on many other packages to be installed.
119 % All of these required packages are available through MiKTeX and TeXLive, and
120 % chances are good they are already installed by your TeX distribution.
121 % Refer to section \ref{sec:features} for a list of the essential packages.
122 %
123 % The document class has only been tested with a small subset of available packages.
124 % There are numerous packages you may want to use for your work, but they may have
125 % to be modified accordingly.
126 % Things lacking include support for the \textsf{subfigure}
127 % and \textsf{subcaption} package and proper formatting of the captions in such an environment.
128 % Formatting of the captions could be much easier with the
129 % \textsf{caption}\footnote{\textsf{caption} package by Axel Sommerfeldt v3.0b[2004/05/16]
130 % and higher} in general, and is a thing-to-do for future versions. Permitting use of the
131 % \textsf{subfigure} and \textsf{subcaption} packages would also be a good thing to do
132 % if an update is ever made for reaosns other than resolving conflicts caused by changing
133 % Graduate School regulations. If you want to use a \textsf{subfigure} environment and don't
134 % need the caption capabilities of the \textsf{subcaption} package, adding the following
135 % code to your preamble may allow you to do this and still have your captions formatted
136 % according to the Graduate School's rules.
137 % \begin{verbatim}
138 % \usepackage{subcaption}
139 % \makeatletter
140 % \renewcommand\LT@makecaption[3]{%
141 % \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
142 % \vskip\abovetableskip%
143 % \centering\normalspacing
144 % #1{#2 }\\[\single@skip]
145 % {#3}\par
146 % \endgraf\vskip\belowtableskip}%
147 % \hss}}}
148 % \makeatother
149 % \end{verbatim}
150 %
151 % \subsection{History}
152 %
153 % The \nddiss\ package is an extensive rewrite by Sameer Vijay of an earlier \textsf{NDthesis} class
154 % for formatting dissertations.
155 % Megan Patnott updated \nddiss\ to the 2013 Graduate School Formatting guidelines.
156 % The \textsf{NDThesis} class was by D. A. Peterson.
157 %
158 % \section{Quick Start}
159 %
160 % This section provides a template you can use to get started.
161 % The distribution comes with a more detailed file, |template.tex|, that is similar, but more detailed.
162 %
163 % \begin{verbatim}
164 % \documentclass[numrefs,final]{nddiss2e}
165 %
166 % \begin{document}
167 %
168 % \frontmatter
169 %
170 % \title{Title in Title Caps}
171 % \author{Your Name}
172 % \work{Dissertation}
173 % \degaward{Doctor of Philosophy}
174 % \advisor{}
175 % \department{}
176 % \maketitle
177 % \makepublicdomain % There is also a copyright option
178 %
179 % \begin{abstract}
180 % Abstract here
181 % \end{abstract}
182 %
183 % % dedication is optional
184 % \begin{dedication}
185 % For Someone
186 % \end{dedication}
187 %
188 % \tableofcontents
189 % \listoffigures
190 % \listoftables
191 %
192 % % list of symbols is optional
193 % \begin{symbols}
194 % \sym{a}{definition of a}
195 % \end{symbol}
196 %
197 % % preface is optional
198 % \begin{preface}
199 % Preface here
200 % \end{preface}
201 %
202 % \begin{acknowledge}
203 % Thanks to everyone
204 % \end{acknowledge}
205 %
206 % \mainmatter
207 %
208 % \chapter{A New Dawn} % Chapter 1
209 % All the text ...
210 %
211 % \appendix
212 % \chapter{Additional Data} % Appendix A
213 %
214 % \backmatter
215 % \bibliographystyle{nddiss2e}
216 % \bibliography{bibdatabase}
217 %
218 % \end{document}
219 % \end{verbatim}
220 %
221 %
222 % \section{Usage}
223 %
224 % Invoke the \nddiss\space document class by adding |\documentclass|\oarg{options}|{nddiss2e}|
225 % at the beginning of your \LaTeX\space source file.
226 % For most people the options |\documentclass[draft]{nddiss2e}| is good enough for the initial revisions.
227 % If you want your figures to display, use |\documentclass[review]{nddiss2e}|.
228 %
229 % Use the option |\documentclass[final]{nddiss2e}| for your formatting check submission,
230 % and |\documentclass[final,noinfo]{nddiss2e}| for the final submitted version.
231 %
232 % If you have two advisors, add the option |twoadvisors| here, and then use |\secondadvisor{}|
233 % later on the title page to give the name of the second advisor.
234 %
235 % By default, all documents produced using this class
236 % are formatted as one-sided, doublespaced, letter-sized pages, per the Graduate School requirements.
237 % In theory, the class file's specifications should override your system's defaults.
238 % If, however, you are getting A4 paper, try adding |\pdfpagewidth{8.5in}| and
239 % |\pdfpageheight{11in}| immediately after the |\documentclass| in your file.
240 %
241 % \subsection{Options}
242 % \label{subsec:options}
243 %
244 % \DescribeMacro{draft}
245 % \DescribeMacro{review}
246 % \DescribeMacro{final}
247 % Exactly \emph{one} of these options must be used.
248 % The |draft| and |review| options enable faster processing of the document and
249 % also include annotations to help write and edit it.
250 %
251 % The |draft| option enables a fast processing and preliminary document
252 % showing the labels for citations, tables, figures etc. and a black solid rule
253 % highlighting the horizontal overflows. Additionally, figures are replaced
254 % with placement boxes showing where the included figure would be placed. Such
255 % a document would be the one you would prepare for revising your text during
256 % writing stages.
257 %
258 % The |review| option makes it possible to prepare a document that is
259 % one step closer to the final version.
260 % Almost all the formatting of the final version is present,
261 % but the labels and keys as in the |draft| option are also displayed.
262 % A document prepared with the |review| option would be the one to
263 % personally check for proper formatting and possibly giving to your advisor if
264 % she wished to suggest corrections.
265 %
266 % The |final| option produces the document to be submitted to the Graduate School for
267 % formatting checks and as the final version.
268 %
269 % \DescribeMacro{twoadvisors}
270 % The |twoadvisors| option will produce a title page with space for two advisors.
271 % Use the |\secondadvisor| macro command
272 % (discussed in Section \ref{subsec:titlepage}) on the title page to give the
273 % name of the second advisor.
274 %
275 % \DescribeMacro{noinfo}
276 % The |noinfo| option disables the information page produced
277 % when the |review| or |final| style options are used. It is
278 % recommended that you only use this option when making the final
279 % submission to the Graduate School.
280 %
281 % \DescribeMacro{numrefs}
282 % \DescribeMacro{textrefs}
283 % These options determine how citations are displayed in the text.
284 % The default style is |numrefs|.
285 % The |numrefs| option produces a numbered citation sytle by using \textsf{natbib}
286 % and the ``nddiss2e'' or ``nddiss2enoarticletitles'' citation style
287 % file\footnote{|nddiss2e.bst| is a slight modificiation of |abbrvnat.bst|
288 % in the \textsf{natbib} package; |nddiss2enoarticletitles.bst| is
289 % essentially the same as |nddiss2e|, but does not display the titles of
290 % journal articles, as this is the standard in some fields}.
291 % The |textrefs| option changes the citation style to be similar to
292 % ``author-date'' style with the same files.
293 %
294 % \DescribeMacro{sort}
295 % \DescribeMacro{compress}
296 % \DescribeMacro{sort\&compress}
297 % At most one of these options should be selected. The |sort| option will cause
298 % both numerical and ``author-date'' style references to be sorted in the order
299 % that they appear in the bibliography when multiple references are cited. The
300 % |compress| option compresses numerical citations, e.g. it turns [1,2,3] into
301 % [1-3], and does nothing to ``author-date'' style references. The
302 % |sort&compress| option first sorts and then compresses numerical references, and
303 % only sorts ``author-date'' style references.
304 %
305 % Since the same set of packages and
306 % style files result in differing citation formats,
307 % refer to the documentation for |natnotes.dvi| in your |TEXMF| tree,
308 % to be aware of the
309 % various ways in which you can make a citation in your text.
310 %
311 % \DescribeMacro{10pt}
312 % \DescribeMacro{11pt}
313 % \DescribeMacro{12pt}
314 % These options adjust the font size of the body text.
315 % The choice is only applicable when the |draft| option is used, and defaults
316 % to |10pt|.
317 % When |review| or |final| is used, this option is ignored and |12pt| is used.
318 %
319 % \DescribeMacro{twoside}
320 % The |twoside| option causes the class file to prepare a document meant
321 % to be printed double-sided.
322 % This option is strictly for if you want to prepare a two-sided document for
323 % your own use. The only difference from the one-sided document is in the page
324 % layout.
325 % Do NOT use this option when preparing to submit it to the Graduate School.
326 %
327 % \DescribeMacro{nocenter}
328 % The |nocenter| option allows non-centered chapter titles.
329 % Do NOT turn in your document this way to the Graduate School!
330 %
331 % \DescribeMacro{openbib}
332 % The |openbib| option formats your bibliography in the following manner: \\
333 % \qquad Author \\
334 % \qquad \qquad Article/book title \\
335 % \qquad \qquad Other information \\
336 % \qquad \qquad Website, if applicable \\
337 % Usually you would not need to use this option since the default layout of the
338 % |bibliography| is acceptable.
339 %
340 % \section{Arrangement of Contents}
341 %
342 % A dissertation or a thesis document contains the following parts,
343 % in the order listed. Only those marked as optional may be omitted.
344 %
345 % \begin{enumerate}
346 % \item Title Page
347 % \item Copyright page
348 % \item Abstract \emph{(optional for Master's thesis)}
349 % \item Dedication \emph{(optional)}
350 % \item Table of Contents
351 % \item List of Figures
352 % \item List of Tables
353 % \item List of Symbols \emph{(optional)}
354 % \item Preface \emph{(optional)}
355 % \item Acknowledgments \emph{(optional)}
356 % \item Text
357 % \item Appendix (or Appendices) \emph{(optional)}
358 % \item Bibliography (or References, or Works cited)
359 % \end{enumerate}
360 %
361 % The macros and environments described below ease the formatting of these
362 % parts.
363 %
364 % \subsection{Title Page}
365 % \label{subsec:titlepage}
366 %
367 % \DescribeMacro{\maketitle}
368 % The title page is generated by |\maketitle| with no arguments.
369 % This macro has been modified for providing a title page in the correct format.
370 %
371 % You can set information to display on the title page by using the following
372 % commands before invoking |\maketitle|.
373 % \begin{itemize}
374 % \item \DescribeMacro{\title\{\}} The title of the document, using the
375 % |\title| macro. You may use linebreaks within the title,
376 % protected via |\protect\\| and the title may be up to four
377 % lines long.
378 % \item \DescribeMacro{\author\{\}} Give your name in full and exactly as
379 % registered with the Graduate School, using the
380 % |\author| macro, e.g. |\author{Gary Graham Gordon-Graeme}|).
381 % \item \DescribeMacro{\work\{\}} Whether the document is a
382 % \emph{Thesis} or a \emph{Dissertation} as the argument of the
383 % |\work| macro, e.g. |\work{Dissertation}|).
384 % \item \DescribeMacro{\degaward\{\}} Specify the degree you're aiming for
385 % with the |\degaward| macro. Should be one of
386 % |\degaward{Doctor of Philosophy}| (without the ``in \emph{subject}'' or
387 % |\degaward{Master of Science\\in\\Engineering}|.
388 % \item \DescribeMacro{\advisor\{\}} Give the name of your advisor with
389 % the |\advisor| macro.
390 % \item \DescribeMacro{\secondadvisor\{\}} Give the name of your second advisor,
391 % if any, with the |\secondadvisor| macro. You also need to pass in the
392 % |twoadvisors| option in the |\documentclass| declaration.
393 % \item \DescribeMacro{\department\{\}} Give the name of your department with the
394 % |\department| macro, e.g. |\department{Gnulogical Engineering}|).
395 % \item \DescribeMacro{\degdate\{\}} The month and year of the defense of the
396 % thesis with the |\degdate| e.g. |\degdate{June 2004}|). If you forget to
397 % declare this, the current month/year will be used.
398 % \end{itemize}
399 %
400 % \subsection{Copyright Page}
401 % \DescribeMacro{\makecopyright}
402 % \DescribeMacro{\copyrightholder\{\}}
403 % \DescribeMacro{\copyrightyear\{\}}
404 % The |\makecopyright| macro should be invoked after |\maketitle| to
405 % produce a copyright page.
406 % Prior to calling |\makecopyright|, you may specify a different name
407 % for the copyright holder (the default is the name given through the
408 % |\author| macro) and for the copyright year (the default being the
409 % current year). Do this with the |\copyrightholder|\marg{name}
410 % and |\copyrightyear|\marg{year} macros.
411 %
412 % \DescribeMacro{\makepublicdomain}
413 % Alternatively, you can use
414 % |\makepublicdomain| to produce a page with the message ``This document
415 % is in the public domain.'' Note that the absence of the copyright page
416 % does \emph{not} place your dissertaion in the public domain, you must
417 % declare it as such explicitly.
418 %
419 % \subsection{Abstract Page(s)}
420 % \DescribeEnv{abstract}
421 % The abstract text should be placed between
422 % |\begin{abstract}| and |\end{abstract}|.
423 % If the abstract is longer than one page, the environment will place
424 % the author's name in the top-right header.
425 %
426 % \DescribeMacro{\abstractname\{\}}
427 % You may use |\abstractname|\marg{text} to change the abstract caption
428 % to |text|.
429 % Default name: |Abstract|.
430 % You probably don't need to change it.
431 %
432 % \subsection{Dedication}
433 % \DescribeEnv{dedication}
434 % The dedication is optional.
435 % If you want one, use the \textsf{dedication} envrionment.
436 % The format of dedication is essentially free.
437 % This environment will center the text of your dedication vertically on the page.
438 %
439 % \DescribeMacro{\dedicationame\{\}}
440 % You may use |\dedicationname|\marg{text} to change the title for the
441 % dedication page. Default name: |\mbox{}| i.e.\/ an empty title.
442 % You probably don't need to change it.
443 %
444 % \subsection{Table of Contents; Lists of Figures and Tables}
445 % \DescribeMacro{\tableofcontents}
446 % \DescribeMacro{\listoffigures}
447 % \DescribeMacro{\listoftables}
448 % Use the macros |\tableofcontents|,|\listoffigures| and |\listoftables|,
449 % \emph{in this order}, to produce the required table of contents and lists of
450 % figures and tables.
451 %
452 % \DescribeMacro{\contentsname\{\}}
453 % \DescribeMacro{\listfigurename\{\}}
454 % \DescribeMacro{\listtablename\{\}}
455 % You may use |\contentsname|, |\listfigurename| and |\listtablename|
456 % to change the titles for these sections.
457 % By default they are |CONTENTS|, |FIGURES|, and |TABLES|.
458 % You probably don't need to change them.
459 %
460 % \subsection{List of Symbols}
461 % \DescribeEnv{symbols}
462 % The list of symbols is optional.
463 % Use the \textsf{symbols} envrionment to format a list of
464 % symbols/abbreviations used in your work.
465 % The envrionment takes an optional argument specifying the desired format, e.g.
466 % |\begin{symbols}[cl]| for first column centered and the next column
467 % aligned left. By default, the first column will be right aligned and
468 % the second column will be left aligned. You may use any of the standard
469 % |tabular| column alignment options.
470 %
471 % \DescribeMacro{\sym\{\}\{\}}
472 % The command |\sym|\marg{symbol}\marg{definition} may make the task of
473 % entering the symbols and their meanings in the \textsf{symbols}
474 % environment easier. |\sym| takes two arguments: the first, a math
475 % ``object'' and the second, the plain text describing the
476 % symbol. Since the first argument is in math mode, any plain text
477 % needs to be wrapped with |\mathrm{..}|
478 % Likewise, any math symbol in the second argument needs to placed in
479 % |$..$|. Example: |\sym{\beta_\mathrm{norm}}{Definition for $\beta$}|
480 %
481 % \DescribeMacro{\symbolsname\{\}}
482 % You may use |\symbolsname{}| to change the title of the symbols section.
483 % Default name: |SYMBOLS|.
484 %
485 % \subsection{Preface}
486 % \DescribeEnv{preface}
487 % The \textsf{preface} environment is provided for formatting the preface to your work.
488 %
489 % \DescribeMacro{\prefacename\{\}}
490 % You may use |\prefacename| to change the name of this section.
491 % Default name: |PREFACE|.
492 %
493 % \subsection{Acknowledgments}
494 % \DescribeEnv{acknowledgments}
495 % The environment \textsf{acknowledgments} is used to format the
496 % acknowledgment \emph{chapter}.
497 %
498 %
499 % \DescribeMacro{\acknowledgename\{\}}
500 % You may use |\acknowledgename| to change the name of this section.
501 % Default name: |Acknowledgments|.
502 %
503 % \subsection{Text}
504 % \DescribeMacro{\mainmatter}
505 % Use the macro |\mainmatter| to mark the beginning of your text.
506 % You can then use |\part|, |\chapter|, |\section|, |\subsection|, and |\subsubsection|
507 % commands, as you would with the \textsf{book} class.
508 % Text is formatted in |\normalspacing| i.e. double-spacing.
509 % The pages are numbered in |plain| pagestyle such that the page numbers
510 % are centered in the bottom. The |chapter| titles can be multi-line,
511 % and if so are formatted doubly spaced.
512 %
513 % \DescribeMacro{\unnumchapter\{\}}
514 % Use the macro |\unnumchapter| to create to create unnumbered chapters that
515 % appear in the Table of Contents.
516 %
517 % \subsection{Appendix}
518 % \DescribeMacro{\appendix}
519 % Use the command |\appendix| after the last normal chapter to signal
520 % that all following chapters are to be appendices.
521 % This use is the same as in the \textsf{book} class.
522 % To begin an appendix, use the |\chapter|\marg{title} macro.
523 %
524 % \subsection{Backmatter}
525 % \DescribeMacro{\backmatter}
526 % The |\backmatter| macro separates the bibliography, index
527 % and glossary from the main matter and any appendices.
528 %
529 % \subsection{Bibliography} \DescribeMacro{\bibliography}
530 % If you are using \BibTeX\/ (and why would you not want to use \BibTeX?),
531 % use the |\bibliography|\marg{bibfile} macro to generate the
532 % bibliography. You should refer to \BibTeX\/ manual for details about making a |.bib| file
533 % and format for the entries.
534 %
535 % For citing references in the text, the package \textsf{natbib} is
536 % included with either the settings \texttt{numbers,sort\&compress} (|numrefs| option) or
537 % \texttt{authoryear,sort} (|textrefs| option). The package \textsf{natbib} is a
538 % fantastic package that has numerous macros for \emph{citing} in different ways.
539 %
540 % \textbf{Warning:} The packages \textsf{cite} and \textsf{citation} are
541 % NOT compatible
542 % with the \textsf{natbib} package, and will cause errors if used.
543 %
544 % \DescribeEnv{thebibliography}
545 % If you are not using \BibTeX\/ make your own bibliography by using the
546 % \textsf{thebibliography} environment. In this case, you would have
547 % to write the reference entries in the right format in your |.tex| source
548 % file itself. If you are using the |textrefs| option, you'll need to
549 % consult the \textsf{natbib} manual to ensure that you enter your entries in
550 % the format required by the package.
551 %
552 % \DescribeMacro{\bibname\{\}}
553 % You may use |\bibname|\marg{newbibname} to change the name of this section.
554 % Default name: |Bibliography|.
555 %
556 % \subsection{Chapter-wise Bibliography}
557 % By default the bibliography appears at the end of your work and contains
558 % all the references from the entire entity.
559 % If you need to have a separate bibliography for each chapter,
560 % you can do it in the following way.
561 % First, load the package \textsf{chapterbib} without any options
562 % in the preamble of your main source file and
563 % redefine the commands |\bibname| and |\bibsection| as shown below.
564 % \begin{verbatim}
565 % %% Main source file %%
566 % \documentclass[...]{nddiss2e}
567 % \usepackage{chapterbib}
568 % \renewcommand{\bibname}{Cited works}
569 % \renewcommand{\bibsection}{\section{\bibname}}
570 % ...
571 % \begin{document}
572 % \include{chptr1}
573 % ...
574 % \include{appndx}
575 % \end{document}
576 % \end{verbatim}
577 %
578 % To process the bibliography for each chapter individually, the chapters or sections
579 % must be separated into different files and \emph{include}
580 % them in the main file, as shown above. Each such |\include|d file must contain
581 % its own |\bibliographystyle{nddiss2e}| and |\bibliography{...}| command at
582 % an appropriate position. There should not be any bibliographic commands in
583 % the main source file.
584 %
585 % After compiling the main tex file once (with |latex| or
586 % |pdflatex|), the |.aux| files needed by |bibtex| will have been created
587 % and you can then run |bibtex| on each of the separate source files to obtain a |.bbl|
588 % for each file. The remaining steps are the same as for a normal |.tex| file.
589 %
590 % You can find more details of this in the \textsf{natbib} manual.
591 %
592 % \section{Note For Authors}
593 % \label{sec:author}
594 % The dissertation author must make sure that the
595 % following conditions are met in order to generate a dissertation
596 % acceptable by the Graduate School:
597 %
598 % \begin{itemize}
599 % \item The List of Figures must be \emph{before} the List of Tables, i.e. the
600 % macro command |\listoffigures| comes before |\listoftables| in the
601 % frontmatter.
602 % \item Table captions must be \emph{above} the corresponding table,
603 % In case of the \textsf{table} environment, this can be achieved by
604 % putting |\caption| before you include the table (e.g. in a \textsf{
605 % tabular} environment).
606 % \item Figure captions should be \emph{below} the corresponding figure.
607 % In the \textsf{figure} environment, the |\caption| goes after
608 % the |\includegraphics| macro command.
609 % \item The bibliography is the last section/chapter of the thesis---unless
610 % you are using the \emph{chapter-wise} bibliography.
611 % \end{itemize}
612 %
613 % \subsection{Tips and Suggestions}
614 % \label{subsec:tips}
615 % \begin{itemize}
616 % \item It is \emph{strongly} recommended that you compile your document with
617 % pdf\LaTeX. Compiling to dvi or postscript first may result in ``fuzzy'' fonts
618 % when viewing the document on your screen. Additionally, the benefits
619 % of |hyperref| and |pdflscape| are only available if you compile using
620 % pdf\LaTeX.
621 % \item Use the |\toprule|, |\midrule| and |\bottomrule| macro commands (from the
622 % \textsf{booktabs} package) in tables for generating the appropriate
623 % horizontal rules. Refrain from using vertical rules to separate columns in tables
624 % as much as possible.
625 % \item Use the \textsf{longtable} environment for handling very long
626 % tabular materials. Example:
627 % \begin{verbatim}
628 % \begin{longtable}{lc}
629 % \caption[]{LONG TABLE CAPTION \label{tab:longtable} }
630 % \toprule
631 % Heading 1 & Heading 2 \\
632 % \midrule
633 % \endfirsthead
634 % \caption[]{ } \\ % doesn't matter what text is in the continued caption.
635 % \midrule
636 % Heading 1 & Heading 2 \\
637 % \midrule
638 % \endhead
639 % \endfoot
640 % \bottomrule
641 % \endlastfoot
642 % % Now the tabular material %
643 % Long & Table etc. \\
644 % \end{longtable}
645 % \end{verbatim}
646 % \item If a figure or table is very wide and will not fit on a page,
647 % use the \textsf{landscape} environment (from the included
648 % \textsf{lscape} package) to format them in \emph{landscape}
649 % mode. They will automatically appear on a separate page. If you
650 % use pdf\LaTeX\/ to compile your document, then the included
651 % \textsf{pdflscape} package will flip this page on the screen
652 % for easier reading.
653 % \item The \textsf{sidewaystable} environment (from the included
654 % \textsf{rotating} package) is incompatible with the current
655 % class and should be avoided.
656 % \item Usually the width of the figure and table captions is 90\% of the textwidth
657 % (i.e. |0.9\textwidth|). If needed, the width can be changed on a case-by-case
658 % basis by doing one of the following:
659 % \begin{itemize}
660 % \item Use a \textsf{minipage} environment of appropriate width and enclose
661 % your tabular or figure float inside it, or
662 % \item set the |\capwidth| inside the \textsf{table} or the \textsf{figure}
663 % environment, and |\LTcapwidth| \emph{outside} the \textsf{
664 % longtable} environment, e.g.,\\[\baselineskip]
665 % \begin{minipage}{0.5\textwidth}
666 % \begin{verbatim}
667 % \begin{table}[H]
668 % \setlength{\capwidth}{0.8\textwidth}
669 % \centering
670 % \caption{TABLE CAP\label{tab:this}}
671 % \begin{tabular}{lc}
672 % ...
673 % \end{tabular}
674 % \end{table}
675 % \end{verbatim}
676 % \end{minipage}
677 % \begin{minipage}{0.5\textwidth}
678 % \begin{verbatim}
679 % \setlength{\LTcapwidth}{6in}
680 % \begin{longtable}{lccc}
681 % ...
682 % \end{\longtable}
683 % \end{verbatim}
684 % \end{minipage}
685 % \end{itemize}
686 % \item Use the \textsf{tabularx} environment for the actual formatting
687 % of the tables (within the \textsf{table} environment). It differs
688 % slightly from \textsf{tabular} environment and you should refer to
689 % their documentation in the |TEXMF| tree for more information.
690 % \item If you've used a \textsf{longtable} environment in your document,
691 % it might be necessary to compile the document multiple times so as to
692 % get proper alignment of columns. This is documented in the
693 % \textsf{longtable} manual.
694 % \item If you wish to use |\footnotes| in the \textsf{longtable} environment,
695 % please read its documentation. There are some handicaps present.
696 % \item To cite a website in your bibliography\footnote{More info at
697 % \url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=citeURL}}, use the
698 % following format in your |.bib| file:
699 % \begin{verbatim}
700 % @Misc{fairley2000,
701 % author = "N. Fairley",
702 % title = "Casa{XPS} {VAMAS} processing software",
703 % howpublished = "Website",
704 % note = "\url{http://www.casaxps.com}",
705 % }
706 % \end{verbatim} When processed with the |nddiss2e.bst| citation style file
707 % this gives:\newline
708 % 111. N. Fairley. CasaXPS VAMAS processing software. Website.
709 % \url{http://www.casaxps.com}.\newline
710 % \end{itemize}
711 %
712 % \subsection{You Found Errors?}
713 % Errors in a \LaTeX\/ document are to be expected.
714 % If you have a problem that is that seems to be more than a typo or
715 % unbalanced brace, it is possible that there is a conflict between
716 % the packages you have included and those that \nddiss\/ uses.
717 % If you find yourself in that situtation, there is a mailing list
718 % for handling support issues with \nddiss\/.
719 % Look through the archive, and if there are no answers, please
720 % send an email to \url{[email protected]} (registration required).
721 % The more effort you spend in isolating the problem or in troubleshooting
722 % will make it more likely that others can reproduce the problem and help
723 % you solve it.
724 % Also if you have a problem that you then solve, please also email the list.
725 % Your doing so will help the next person to have that problem, and will
726 % also make the maintainers aware of it, so future versions of the class file
727 % can be better.
728 %
729 % \section{Other Packages Used}
730 % \label{sec:features}
731 %
732 % A number of packages are required by default and must be present in your
733 % \TeX\space search path (if you use a package manager such as MiKTeX or
734 % TeXLive, it will take care of this for you). As far as possible, these have
735 % been tested for proper formatting style with the \nddiss\/ class file. The list
736 % includes
737 % \textsf{ifthen},
738 % \textsf{exscale},
739 % \textsf{ifpdf},
740 % \textsf{ifluatex},
741 % \textsf{ifxetex},
742 % \textsf{xspace},
743 % \textsf{longtable},
744 % \textsf{indentfirst},
745 % \textsf{tabularx},
746 % \textsf{showkeys},
747 % \textsf{enumerate},
748 % \textsf{latexsym}.
749 % \textsf{epsfig},
750 % \textsf{color},
751 % \textsf{graphicx},
752 % \textsf{url},
753 % \textsf{setspace}\footnote{v6.7[2000/12/01] or above},
754 % \textsf{amsmath},
755 % \textsf{float},
756 % \textsf{lscape},
757 % \textsf{rotating},
758 % \textsf{booktabs}, and
759 % \textsf{natbib}\footnote{v8.31[2009/07/16] or above}.
760 % Sameer urges you to read the documentation of these packages available in
761 % the |TEXMF| tree, if you think you might use their features
762 % or want to tweak some advanced options. Of these packages,
763 % \textsf{ifpdf},
764 % \textsf{longtable},
765 % \textsf{natbib},
766 % \textsf{booktabs},
767 % \textsf{rotating},
768 % \textsf{url}, and
769 % \textsf{setspace}
770 % are not part of the \LaTeX\space required distribution, so you may need
771 % to download them. They are all available through both MiKTeX and TeXLive;
772 % note that \textsf{ifpdf} is part of the
773 % \textsf{oberdiek} bundle, which is what you need to download to get
774 % that package if it is not already installed on your system.
775 %
776 % Other packages may or may not be appropriate for use with the
777 % \nddiss\space class when producing copies to be submitted to the
778 % Graduate School. Please be careful when using packages that change the
779 % default fonts, or the page layout.
780 %
781 % In general, the official guidelines of the Graduate School are
782 % followed to the maximum extent possible. This includes proper
783 % formatting of the title page and the abstract page (from the
784 % \textsf{ndthesis} package), numbering of the pages in the \textit{frontmatter},
785 % generation of properly formatted table of contents, list
786 % of figures etc., as well as bibliography at the end.
787 % Per the guide, the number of different fonts and font sizes used is kept to
788 % a minimum. The contents, all lists and the bibliography are
789 % single-spaced but the inter-line spacing for the rest of the document
790 % is double.
791 %
792 % \subsection{Generating PDF document}
793 % \label{subsec:pdfdoc}
794 %
795 % The \nddiss\space class also allows production of pdf documents with
796 % pdf\LaTeX\space. As of Spring 2013, this is the preferred method of
797 % compilation. In this case, the \textsf{hyperref} and \textsf{pdflscape}
798 % packages are also required. The \textsf{hyperref} package ensures
799 % that the generated pdf document contains internal as well as external
800 % links for citations and bookmarks. A document produced by this method
801 % also contains embedded fonts (\textit{press quality} pdf) and is suitable
802 % for electronic submission to the library and for microfilm archiving.
803 % Although the most appropriate options for \textsf{hyperref} are
804 % passed on, for advanced features refer to its documentation. The
805 % \textsf{pdflscape} package flips pages with landscape orientation in the
806 % pdf file for easier reading, but the location of the page numbers does not change.
807 %
808 % Figures must be in pdf, jpeg, png, or gif format, and not in encapsualted
809 % postscript (eps). An easy way to convert \textit{eps} files to \textit{pdf}
810 % files is to use the utility |epstopdf| or |eps2pdf|, which should be
811 % available on your unix-like distribution already (should you have one). It is also
812 % possible to convert your eps files to pdfs using an online conversion tool.
813 % Searching for ``eps to pdf'' brought up several free options in Fall 2012.
814 %
815 %
816 %
817 % \StopEventually{%
818 % \footnotesize
819 % \PrintChanges
820 % }
821 %
822 % \clearpage
823 % \section{The Implementation}
824 % Following is our attempt at documenting the source of the
825 % \nddiss\space class file for the \TeX\space hackers.
826 %
827 % \small\mbox{}\\
828 % \iffalse (Don't show this in the doc).
829 %<*class>
830 % \fi
831 % At the start, we define the base version of \LaTeXe\space needed and
832 % the label information for the \nddiss\space class.
833 % \begin{macrocode}
834 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
835 \ProvidesClass{nddiss2e}
836 % \end{macrocode}
837 % \iffalse
838 %</class>
839 % \fi
840 % \iffalse (Don't show this in the doc).
841 % \begin{macrocode}
842 %<template>\ProvidesFile{template.tex}
843 % \end{macrocode}
844 % \fi
845 % \begin{macrocode}
846 [2016/10/16 v3.2016%
847 % \end{macrocode}
848 % \iffalse
849 %<*class>
850 % \fi
851 % \begin{macrocode}
852 Notre Dame Dissertation document class]
853 %
854 % \end{macrocode}
855 % \begin{macro}{\dissfileversion}
856 % \begin{macro}{\dissfiledate}
857 % The |\dissfileversion| and |\dissfiledate| macros contain the version and the date
858 % of the release.
859 % \begin{macrocode}
860 \providecommand{\dissfileversion}{3.2017.2}
861 \providecommand{\dissfiledate}{2017/05/09}
862 %
863 % \end{macrocode}
864 % \end{macro}
865 % \end{macro}
866 % \iffalse
867 %</class>
868 % \fi
869 % \iffalse (Don't show this in the doc).
870 % \begin{macrocode}
871 %<template> Template file for NDdiss2e class]
872 % \end{macrocode}
873 % \fi
874 % \iffalse
875 %<*class>
876 % \fi
877 % New boolean variables for the options used in \nddiss\ class are
878 % set here with default values.
879 % \begin{macrocode}
880 \newif\ifdiss@draft \diss@drafttrue
881 \newif\ifdiss@review \diss@reviewfalse
882 \newif\ifdiss@final \diss@finalfalse
883 \newif\ifinfo@page \info@pagetrue
884 \newif\ifadvisors@two \advisors@twofalse
885 \newif\ifdiss@dedication \diss@dedicationfalse
886 \newif\ifnum@refs \num@refstrue
887 \newif\ifcentered@chaptitle \centered@chaptitletrue
888 \newif\if@ltfirstcaption
889 %
890 % \end{macrocode}
891 % \begin{macro}{draft}
892 % \begin{macro}{review}
893 % \begin{macro}{final}
894 % Exactly one of these options must be present in order to get a proper document. These
895 % options set appropriate boolean variables (flags) and pass some common
896 % options to the parent {\sffamily book} class.
897 % \begin{macrocode}
898 \DeclareOption{draft}{
899 \setlength\overfullrule{5pt}
900 \typeout{DRAFT MODE}\typeout{}\info@pagefalse%
901 \diss@drafttrue\diss@reviewfalse\diss@finalfalse
902 \PassOptionsToClass{letterpaper,oneside,draft}{book} }
903 %
904 \DeclareOption{review}{
905 \typeout{REVIEW MODE}\typeout{}\info@pagetrue%
906 \diss@draftfalse\diss@reviewtrue\diss@finalfalse
907 \PassOptionsToClass{12pt,letterpaper,oneside,final}{book} }
908 %
909 \DeclareOption{final}{
910 \setlength\overfullrule{0pt}
911 \typeout{FINAL MODE}\typeout{}\info@pagetrue%
912 \diss@draftfalse\diss@reviewfalse\diss@finaltrue
913 \PassOptionsToClass{12pt,letterpaper,oneside,final}{book} }
914 %
915 % \end{macrocode}
916 % \end{macro}
917 % \end{macro}
918 % \end{macro}
919 % \begin{macro}{numrefs}
920 % \begin{macro}{textrefs}
921 % The options |numrefs| or |textrefs| select the appropriate citation style i.e.\/
922 % ``numbered'' or ``textual'', respectively. By
923 % choosing |textrefs|, one can get ``author-date'' style of citation in the
924 % text. The default is |numrefs|.
925 % \begin{macrocode}
926 \DeclareOption{numrefs}{
927 \typeout{NUMBERED REFERENCES}\num@refstrue}
928 \DeclareOption{textrefs}{
929 \typeout{TEXTUAL REFERENCES}\num@refsfalse}
930 % \end{macrocode}
931 % \end{macro}
932 % \end{macro}
933 % The option |nocenter| allows non-centered chapter titles.
934 % \begin{macrocode}
935 \DeclareOption{nocenter}{\centered@chaptitlefalse}
936 %
937 % \end{macrocode}
938 % The |openbib| option is useful
939 % in creating indented bibliography.
940 % Usually you would not need to use this option since the default layout of the
941 % |bibliography| is very much acceptable.
942 % \begin{macrocode}
943 \DeclareOption{openbib}{%
944 \PassOptionsToPackage{openbib}{natbib}
945 }
946 %
947 % \end{macrocode}
948 % The |sort| option is passed to natbib, and causes multiple citations to be
949 % listed in the sequence they appear in the bibliography.
950 % \begin{macrocode}
951 \DeclareOption{sort}{%
952 \PassOptionsToPackage{sort}{natbib}
953 }
954 %
955 % \end{macrocode}
956 % The |compress| option is passed to natbib, and causes numerical citations to
957 % be compressed so that, e.g. 1,2,3 becomes 1-3. Does not also sort.
958 % \begin{macrocode}
959 \DeclareOption{compress}{%
960 \PassOptionsToPackage{compress}{natbib}
961 }
962 %
963 % \end{macrocode}
964 % The |sort&compress| option sorts numerical citations, and then compresses them.
965 % \begin{macrocode}
966 \DeclareOption{sort&compress}{%
967 \PassOptionsToPackage{sort&compress}{natbib}
968 }
969 %
970 % \end{macrocode}
971 % The other options are declared in the following lines.
972 % \begin{macro}{twoadvisors}
973 % The |twoadvisors|
974 % option sets the flag for modifying the layout of the title page.
975 % \begin{macrocode}
976 \DeclareOption{twoadvisors}{\typeout{TWO ADVISORS}\typeout{}%
977 \advisors@twotrue}
978 %
979 % \end{macrocode}
980 % \end{macro}
981 % \begin{macro}{10pt}
982 % \begin{macro}{11pt}
983 % \begin{macro}{12pt}
984 % The options |10pt|, |11pt| or |12pt| are passed on to the {\sffamily book}
985 % class if appropriate, depending on whether the |\diss@draft| flag is set true.
986 % \begin{macrocode}
987 \DeclareOption{10pt}{%
988 \ifdiss@draft%
989 \PassOptionsToClass{10pt}{book}%
990 \else%
991 \OptionNotUsed%
992 \ClassWarningNoLine{nddiss2e}%
993 {Font size 10pt not allowed; using 12pt}%
994 \fi%
995 }
996 \DeclareOption{11pt}{%
997 \ifdiss@draft%
998 \PassOptionsToClass{11pt}{book}%
999 \else%
1000 \OptionNotUsed%
1001 \ClassWarningNoLine{nddiss2e}%
1002 {Font size 11pt not allowed; using 12pt}%
1003 \fi
1004 }
1005 \DeclareOption{12pt}{%
1006 \PassOptionsToClass{12pt}{book}%
1007 }
1008 %
1009 % \end{macrocode}
1010 % \end{macro}
1011 % \end{macro}
1012 % \end{macro}
1013 % \begin{macrocode}
1014 \DeclareOption{noinfo}{\info@pagefalse}
1015 %
1016 % \end{macrocode}
1017 % The |twoside| option is for when you want to prepare a two-sided
1018 % document for your own use. The only difference from the one-sided document
1019 % is in the page layout. This option is passed on to the parent {\sffamily
1020 % book} class.
1021 % \begin{macrocode}
1022 \DeclareOption{twoside}{\typeout{TWO SIDED DOCUMENT}%
1023 \PassOptionsToClass{twoside}{book} }%
1024 %
1025 % \end{macrocode}
1026 % All options other than those defined above are ignored and
1027 % a warning is printed
1028 % on the screen during compile-time. After processing all the options, the
1029 % \textsf{book} class is loaded with the specified options.
1030 % \begin{macrocode}
1031 \DeclareOption*{\ClassWarning{nddiss2e}%
1032 {UnknownOption `\CurrentOption'} }%
1033 \ProcessOptions\relax
1034 \LoadClass{book}
1035 %
1036 % \end{macrocode}
1037 % At this stage, the packages \textsf{ifthen}, \textsf{exscale},
1038 % \textsf{etoolbox} \textsf{ifpdf}, \textsf{ifluatex},
1039 % \textsf{ifxetex}, \textsf{longtable}, \textsf{xspace}, \textsf{
1040 % indentfirst}, \textsf{tabularx}, \textsf{enumerate} and \textsf{
1041 % latexsym} are loaded. It is important to load these in a specific
1042 % order so as not to cause conflicts in definitions of certain macros.
1043 % \begin{macrocode}
1044 \RequirePackage{ifthen,exscale,etoolbox}
1045 \RequirePackage{ifpdf,ifluatex,ifxetex}
1046 \ifboolexpr{bool{pdf} or bool{xetex} or bool{luatex}}{}{%
1047 \ClassError{nddiss2e}{%
1048 PDF Output is required to support the PDF/A format.
1049 }{DVI output is not supported. Use pdflatex to generate the dissertation.}
1050 }
1051 \RequirePackage[a-2b]{pdfx}
1052 \RequirePackage{longtable}
1053 \RequirePackage{threeparttable}
1054 \RequirePackage[flushleft]{threeparttablex}
1055 \RequirePackage{xspace}
1056 \RequirePackage{indentfirst}
1057 \RequirePackage{tabularx}
1058 \RequirePackage{enumerate}
1059 \RequirePackage{latexsym}
1060 \RequirePackage{textcase}
1061 %
1062 % \end{macrocode}
1063 % If the |\diss@final| is set false (when using |draft| or |review| option) then
1064 % the {\sffamily showkeys} package is also loaded.
1065 % \begin{macrocode}
1066 % \ifdiss@final\relax\else\RequirePackage{showkeys}\fi
1067 %
1068 % \end{macrocode}
1069 % Depending in whether you are using pdf\LaTeX\space or plain \LaTeX\space,
1070 % \textsf{epsfig}, \textsf{color} and \textsf{graphicx} are loaded
1071 % with respective options.
1072 % \begin{macrocode}
1073 \ifboolexpr{bool{pdf} or bool{xetex} or bool{luatex}}{%
1074 \RequirePackage{epsfig}
1075 \RequirePackage{color}
1076 \RequirePackage{graphicx}
1077 \AtBeginDocument{
1078 \pdfadjustspacing=1
1079 }
1080 }{%
1081 \RequirePackage[dvips]{epsfig}
1082 \RequirePackage[dvips]{color}
1083 \RequirePackage[dvips]{graphicx}
1084 }
1085 %
1086 % \end{macrocode}
1087 % Now the \textsf{natbib} package is loaded
1088 % with its options, appropriate to |numrefs| or |textrefs| class option. If |numrefs| is
1089 % specified, then \textsf{natbib} is read-in with its options for
1090 % ``numbered'' references and sorted \& compressed (eg. |[3-6,8-10]|).
1091 % In this case, the default delimiter is square brackets and the
1092 % default seperator is a comma. For the |textrefs| option, the
1093 % \textsf{natbib} package is read-in so as to sort the references in an
1094 % ``author-date'' style of citations.
1095 % The default delimiter and seperator, in this case, are round brackets and
1096 % colon, respectively.
1097 %
1098 % \begin{macrocode}
1099 \ifnum@refs
1100 \RequirePackage[numbers]{natbib}
1101 \else
1102 \RequirePackage[authoryear]{natbib}
1103 \fi
1104 % \end{macrocode}
1105 % Additionally, the packages \textsf{amsmath}, \textsf{float}, \textsf{booktabs},
1106 % \textsf{rotating}, \textsf{url} and \textsf{setspace} are loaded
1107 % when (pdf)\LaTeX\space processes |\begin{document}|. Again, the
1108 % order of these packages is important. Additionaly when using
1109 % pdf\LaTeX\space, the package \textsf{hyperref} (for
1110 % internal/external links in the document) is also loaded. The options
1111 % for this package have been tested to produce a document which can be
1112 % printed on laser printers without any problems because of colored
1113 % link boxes. Megan added required package pdflscape, which is part
1114 % of the oberdiek bundle in MiKTeX and TeXLive. Using this package
1115 % will flip landscape pages on the screen so that it's easier to read.
1116 % \begin{macrocode}
1117 \AtBeginDocument{
1118 \RequirePackage{amsmath}
1119 \RequirePackage{float}
1120 \RequirePackage{booktabs}
1121 \RequirePackage{rotating}
1122 \RequirePackage{url}
1123 \RequirePackage[doublespacing]{setspace}[2000/12/01]
1124 \ifboolexpr{bool{pdf} or bool{xetex} or bool{luatex}}{%
1125 \ifluatex
1126 \RequirePackage[luatex]{pdflscape}
1127 \else
1128 \ifxetex
1129 \RequirePackage[xetex]{pdflscape}
1130 \else
1131 \ifpdf
1132 \RequirePackage{pdflscape}
1133 \fi
1134 \fi
1135 \fi
1136 % cannot use RequirePackage since pdfx also includes hyperref
1137 \hypersetup{
1138 plainpages=false,
1139 pdfpagelabels,
1140 bookmarks=true,%
1141 bookmarksnumbered=true,%
1142 linktocpage=true,%
1143 breaklinks=true,%
1144 bookmarkstype=toc,%
1145 colorlinks=false,%
1146 pdfpagemode=UseOutlines}
1147 }{}
1148 }
1149 \RequirePackage{metalogo}
1150 %
1151 % \end{macrocode}
1152 % Set the |\pagestyle| for the document to |plain| here
1153 % and define default spacing.
1154 % \begin{macrocode}
1155 \AtBeginDocument{
1156 \pagestyle{plain}
1157 \normalspacing
1158 \typeout{Pagestyle and spacing normal}
1159 }
1160 %
1161 % \end{macrocode}
1162 % Here, define some spacing macros for page layout and doublespacing.
1163 % \begin{macrocode}
1164 \newcommand{\normalspacing}{\doublespacing}
1165 \newcommand\single@baselinestretch{0.979}
1166 \newcommand\double@baselinestretch{1.625}
1167 \newlength{\usedtextsize}
1168 \setlength{\usedtextsize}{\f@size pt}
1169 \newlength{\single@skip}
1170 \setlength{\single@skip}{\single@baselinestretch \usedtextsize}
1171 \newlength{\double@skip}
1172 \setlength{\double@skip}{\double@baselinestretch \usedtextsize}
1173 \setlength{\footnotesep}{\double@skip}
1174 %
1175 % \end{macrocode}
1176 % Define new lengths for some variables for a proper layout of normal pages,
1177 % pages with text and figures and pages with only floats. Note that although
1178 % the geometry package is usually easier, when Megan tried to switch to that
1179 % she discovered that something ends up overwriting it and, although the
1180 % the showframe option showed that the margins were setting correctly, the text
1181 % didn't look like they were. So these length values are set to what geometry
1182 % said they should be to get a 1.5 in left margin and 1 in margins on all other
1183 % sides (we'll use vspace commands later to get the 2 in top margin on pages
1184 % where that's needed).
1185 % \begin{macrocode}
1186 \setlength{\hoffset}{0pt}
1187 \setlength{\voffset}{0pt}
1188 \setlength{\topmargin}{-32pt}
1189 \setlength{\headsep}{20pt}
1190 \setlength{\marginparwidth}{47pt}
1191 \setlength{\marginparsep}{7pt}
1192 \setlength{\textheight}{648pt}
1193 \setlength{\textwidth}{432pt}
1194 \setlength{\oddsidemargin}{36pt}
1195 \setlength{\evensidemargin}{36pt}
1196 \setlength{\footskip}{30pt}
1197 %
1198 \setlength{\floatsep}{30pt}
1199 \setlength{\intextsep}{50pt}
1200 %
1201 % \end{macrocode}
1202 % \begin{macrocode}
1203 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}%
1204 \cleardoublepage}}
1205 %
1206 % \end{macrocode}
1207 % \begin{macro}{\nddiss} Define the macro |\nddiss| that is the logo
1208 % used in the titlepage and the stamp in the dissertation document.
1209 % \begin{macrocode}
1210 \DeclareRobustCommand{\nddiss}{%
1211 \textsf{{\scshape nd}diss}\kern-0.03em%
1212 2$_\mathsf{\textstyle\varepsilon}$}
1213 %
1214 % \end{macrocode}
1215 % \begin{macro}{\work}
1216 % \begin{macro}{\degaward}
1217 % \begin{macro}{\advisor}
1218 % \begin{macro}{\secondadvisor}
1219 % \begin{macro}{\department}
1220 % \begin{macro}{\degdate}
1221 % \iffalse (does not appear in documentation)
1222 % In 2005 the Graduate School wanted us to list our degrees after our names.
1223 % In 2013 they no longer want this, so Megan removed the macro.
1224 % Here's the code for it, in case they change their minds again:
1225 % \begin{macro}{\degprior} (goes with the other \begin{macro}s above)
1226 % \newcommand{\degprior}[1]{\def\@degprior{#1}} (goes with other newcommands below)
1227 % \fi
1228 % Here define new macros for use in the dissertation title page.
1229 % \begin{macrocode}
1230 \renewcommand{\title}[1]{\def\@title{#1}}
1231 \newcommand{\work}[1]{\def\@work{#1}}
1232 \newcommand{\degaward}[1]{\def\@degaward{#1}}
1233 \newcommand{\advisor}[1]{\def\@advisor{#1}}
1234 \ifadvisors@two
1235 \newcommand{\secondadvisor}[1]{\def\@secondadvisor{#1}}
1236 \fi
1237 \newcommand{\department}[1]{\def\@department{#1}}
1238 \newcommand{\degdate}[1]{\def\@degdate{#1}}
1239 \degdate{\ifcase\month\or
1240 January\or February\or March\or April\or May\or June\or
1241 July\or August\or September\or October\or November\or December\fi
1242 \space\number\year}
1243 %
1244 % \end{macrocode}
1245 % \end{macro}
1246 % \end{macro}
1247 % \end{macro}
1248 % \end{macro}
1249 % \end{macro}
1250 % \end{macro}
1251 % \end{macro}
1252 % As a default, these macros have an empty arguement. Only the |\degdate| macro
1253 % takes on the current month-year combination in the absence of any assignation.
1254 %^^A Removed 9-18-12: \degprior{}
1255 % \begin{macrocode}
1256 % Defaults are empty except the \degdate
1257 \title{}
1258 \author{}
1259 \work{}
1260 \degaward{}
1261 \advisor{}
1262 \ifadvisors@two \secondadvisor{} \fi
1263 \department{}
1264 %
1265 % \end{macrocode}
1266 % \begin{macro}{\@infopage}
1267 % Define |\@infopage| macro that will create a page which contains
1268 % important information about the document and the version of \nddiss\space
1269 % used etc.\ for the end-user and the proofreader along with a standard
1270 % disclaimer and
1271 % details of where to find documentation for the \nddiss\space class
1272 % file. This information can be suppressed by specifying the ``|noinfo|''
1273 % option while invoking the \nddiss\space class.
1274 % \begin{macrocode}
1275 \DeclareRobustCommand{\@infopage}{
1276 \thispagestyle{empty}
1277 \null\vspace*{\single@skip}
1278 \begin{center}
1279 This \@work\space \\ entitled \\ \MakeTextUppercase{\@title} \\
1280 typeset with \nddiss\ v%
1281 \dissfileversion\ (\dissfiledate) %
1282 on \today\space for\\
1283 \@author\\
1284 \end{center}
1285
1286 \normalfont\normalsize\singlespacing
1287
1288 \noindent This \LaTeXe\space classfile conforms to the
1289 University of Notre Dame style guidelines as of Fall
1290 2012. However it is still possible to generate a
1291 non-conformant document if the instructions in the class
1292 file documentation are not followed!
1293
1294 \begin{center}
1295 \begin{minipage}{0.75\textwidth}
1296 \noindent Be sure to refer to the published Graduate
1297 School guidelines at \url{http://graduateschool.nd.edu}
1298 as well. Those guidelines override everything mentioned
1299 about formatting in the documentation for
1300 this \nddiss\space class file.
1301 \end{minipage}
1302 \end{center}
1303
1304 \noindent\itshape This page can be disabled by
1305 specifying the ``{\upshape\ttfamily noinfo}'' option to the class invocation.
1306 \upshape
1307 (i.e.,{\ttfamily{\textbackslash}documentclass[\ldots,noinfo]\{nddiss2e\}}
1308 )
1309 \begin{center}
1310 {\bfseries\large\singlespacing This page is \slshape NOT
1311 \upshape part of the dissertation/thesis. It should be disabled before
1312 making final, formal submission, but should be included in the version
1313 submitted for format check.}
1314 \end{center}
1315 \normalsize\normalfont
1316 \nddiss\ documentation can be found at these locations:
1317 \begin{center}
1318 \url{http://graduateschool.nd.edu} \\
1319 \url{https://ctan.org/pkg/nddiss}
1320 \end{center}
1321
1322 \vfill
1323 \normalfont\normalsize\normalspacing\eject}
1324 %
1325 % \end{macrocode}
1326 % \end{macro}
1327 % \begin{macro}{\maketitle}
1328 % Redefine the macro |\maketitle| to produce the information page as well as
1329 % the actual title page of the dissertation.
1330 % \begin{macrocode}
1331 \renewcommand{\maketitle}{
1332 \ifinfo@page\@infopage\else\relax\fi%
1333 \clearemptydoublepage
1334 \normalfont\normalsize\normalspacing
1335 % \end{macrocode}
1336 % \end{macro}
1337 % \begin{macro}{titlepage}
1338 % The structuring begins with checking the proper macros for
1339 % obtaining correct formatting for the title page. If any of those are
1340 % not defined, an error is issued and processing stopped. Most of the code for
1341 % this was taken from the earlier {\sffamily ndthesis} class and hence, the
1342 % documentation is also picked from there.
1343 % \begin{macrocode}
1344 \begin{titlepage}%
1345 \ifthenelse{\equal{\@work}{}}{\ClassError{nddiss2e}%
1346 {The \protect\work\space macro is undefined.\MessageBreak
1347 The title page may be incorrectly formatted.}%
1348 {Specify \protect\work\space as Dissertation or Thesis}}{\relax}
1349 \ifthenelse{\equal{\@degaward}{}}{\ClassError{nddiss2e}%
1350 {The \protect\degaward\space macro is undefined.\MessageBreak
1351 The title page may be incorrectly formatted.}%
1352 {Specify \protect\degaward\space. It defines the awarded degree%
1353 (Ph.D., M.S., etc.)}}{\relax}
1354 \ifthenelse{\equal{\@advisor}{}}{\ClassError{nddiss2e}%
1355 {The \protect\advisor\space macro is undefined.\MessageBreak
1356 The title page may be incorrectly formatted.}%
1357 {Spepcify \protect\advisor\space It is who signs your walking papers!}}{\relax}
1358 \ifthenelse{\equal{\@department}{}}{\ClassError{nddiss2e}%
1359 {The \protect\department\space macro is undefined.\MessageBreak
1360 The title page may be incorrectly formatted.}%
1361 {Specify which \protect\department\space is awarding your degree?}}{\relax}
1362 \ifadvisors@two
1363 \ifthenelse{\equal{\@secondadvisor}{}}{\ClassError{nddiss2e}%
1364 {The \protect\secondadvisor\space macro is undefined.\MessageBreak
1365 The title page may be incorrectly formatted.}%
1366 {Use \protect\secondadvisor\space for your second advisor}}{\relax}
1367 \fi
1368 %
1369 % \end{macrocode}
1370 % \end{macro}
1371 % Now set up some skip registers to
1372 % hold the inter-data spacing. The initial values will create a two-inch top margin
1373 % for the title page, provided the title is only one line long. |\skip1| is the primary
1374 % internal spacing command; |\skip2| is the spacing between the student's name and the
1375 % line for the first adviser to sign if there are two advisers and |\skip3| is the
1376 % spacing between the student's name and the line for the adviser to sign if there is
1377 % only one adviser; |\skip4| controls the top margin. We'll account for titles longer
1378 % than one line in a bit \ldots
1379 % \begin{macrocode}
1380 \skip1=2.1\double@skip
1381 \skip2=1.7\double@skip
1382 \skip3=2.7\double@skip
1383 \skip4=36pt
1384 %
1385 % \end{macrocode}
1386 % If the author has two advisors, we need to do a little tweaking to the
1387 % internal spacing.
1388 % \begin{macrocode}
1389 \ifadvisors@two
1390 \skip1=1.6\double@skip
1391 \else\relax
1392 \fi
1393 % \end{macrocode}
1394 % The 2012 formatting guidelines require the title to be 2'' from the top of page.
1395 % If it's more than one line long, we need to adjust the internal spacing:
1396 % \begin{macrocode}
1397 \setbox0=\vbox{\MakeTextUppercase{\@title}}
1398 \ifdim \ht0 > 3\double@skip
1399 \advance \skip1 -.75\double@skip
1400 \else
1401 \ifdim \ht0 > 2\double@skip
1402 \advance\skip1 -.5\double@skip
1403 \else
1404 \ifdim \ht0 > \double@skip
1405 \advance\skip1 -.25\double@skip
1406 \fi
1407 \fi
1408 \fi
1409 % \end{macrocode}
1410 % Our default assumes a one-line \textsf{degree} field such as
1411 % \begin{center}
1412 % Doctor of Philosophy
1413 % \end{center}
1414 % but we check to see if it is two or three lines long.
1415 % If so, we need to remove those extra lines from the internal spacing.
1416 % \begin{macrocode}
1417 \setbox1=\vbox{\@degaward}
1418 \ifdim \ht1 > 2\double@skip
1419 \advance\skip1 -.5\double@skip
1420 \else
1421 \ifdim \ht1 > \double@skip
1422 \advance \skip1 -.25\double@skip
1423 \else
1424 \relax
1425 \fi
1426 \fi
1427 % \end{macrocode}
1428 % If we have two advisers, a three or four line title, and a
1429 % three line degree field or two advisers, a four line title, and
1430 % a two line degree field, then we need to remove some spacing between
1431 % the name and the first adviser and from the top margin,
1432 % and give that space to the internal spacing.
1433 % \begin{macrocode}
1434 \ifadvisors@two
1435 \ifdim \ht0 > 3\double@skip
1436 \ifdim \ht1 > \double@skip
1437 \advance \skip4 -.675\double@skip
1438 \advance \skip2 -.4\double@skip
1439 \advance \skip1 .25\double@skip
1440 \else \relax
1441 \fi
1442 \else
1443 \ifdim \ht0 > 2\double@skip
1444 \ifdim \ht1 > 2\double@skip
1445 \advance \skip2 -.4\double@skip
1446 \advance \skip1 .1\double@skip
1447 \else \relax
1448 \fi
1449 \else \relax
1450 \fi
1451 \fi
1452 \else \relax
1453 \fi
1454 % \end{macrocode}
1455 % Finally we start putting the text in place \ldots centered, of course.
1456 % \begin{macrocode}
1457 \null\vspace*{\skip4}
1458 \begin{center}%
1459 \MakeTextUppercase{\@title} \par%
1460 \vskip\skip1%
1461 %
1462 % \end{macrocode}
1463 % Now skip the required vertical space, declare that this is for the
1464 % University of Notre Dame, and list what degree has been earned.
1465 % \begin{macrocode}
1466 A \@work \par%
1467 \vskip\skip1%
1468 Submitted to the Graduate School \\
1469 of the University of Notre Dame \\
1470 in Partial Fulfillment of the Requirements \\
1471 for the Degree of \par
1472 \vskip\skip1%
1473 \@degaward%
1474 \vskip\skip1%
1475 by \\%
1476 %
1477 % \end{macrocode}
1478 % Now format the author's name.
1479 % \begin{macrocode}
1480 \@author
1481 %
1482 % \end{macrocode}
1483 % Now skip the proper space and place the signature line for the advisor
1484 % with his/her name typeset below it. This is accomplished by essentially
1485 % centering a box that is twice as long as the required length of the
1486 % signature line and placing the line in only the right-hand side.
1487 % \begin{macrocode}
1488 \ifadvisors@two
1489 \vskip\skip2
1490 \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
1491 \hspace*{2.75in}\@advisor, Co-Director\\
1492 \else
1493 \vskip\skip3
1494 \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
1495 \hspace*{2.75in}\@advisor, Director\\
1496 \fi%
1497 %
1498 % \end{macrocode}
1499 % If there is a second advisor, place that line here now.
1500 % \begin{macrocode}
1501 \ifadvisors@two %
1502 \vskip\double@skip%
1503 \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
1504 \hspace*{2.75in}\@secondadvisor, Co-Director\\
1505 \fi
1506 %
1507 % \end{macrocode}
1508 % We end with the department and date; the internal spacing is chosen so
1509 % that these are at the page bottom.
1510 % \begin{macrocode}
1511 \vskip\skip1%
1512 Graduate Program in \@department \\%
1513 Notre Dame, Indiana \\
1514 \@degdate
1515 \end{center}
1516 \end{titlepage}%
1517 }
1518 %
1519 % \end{macrocode}
1520 % \begin{environment}{copyrightpage}
1521 % The environment |copyrightpage| defines
1522 % the defaults for proper formatting the copyright page (if opted).
1523 % \begin{macrocode}
1524 \newenvironment{copyrightpage}{%
1525 \clearemptydoublepage
1526 \typeout{Copyright page}
1527 \pagestyle{empty}
1528 \null\vfil
1529 \begin{center}\normalspacing}%
1530 { \end{center}\vfil\null \clearpage }
1531 %
1532 % \end{macrocode}
1533 % \end{environment}
1534 % \begin{macro}{\copyrightholder}
1535 % \begin{macro}{\copyrightyear}
1536 % Define a few macros for defining the copyright holder and the year
1537 % desired. By default, they are taken as the current year and the |author|
1538 % of the dissertation.
1539 % \begin{macrocode}
1540 \newcommand{\@copyrightyear}{\the\year}
1541 \newcommand{\@copyrightholder}{\@author}
1542 \newcommand{\@copyrightlicense}{All Rights Reserved}
1543 \newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}
1544 \newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
1545 \newcommand{\copyrightlicense}[1]{\renewcommand{\@copyrightlicense}{#1}}
1546 %
1547 % \end{macrocode}
1548 % \end{macro}
1549 % \end{macro}
1550 % \begin{macro}{\makecopyright}
1551 % Finally, the |\makecopyright| macro creates the
1552 % copyright page as per defined in the |copyrightpage| environment.
1553 % \begin{macrocode}
1554 \newcommand{\makecopyright}{%
1555 \ifdiss@final
1556 \begin{copyrightpage}
1557 \normalfont\normalsize
1558 \copyright\space Copyright by \\
1559 \@copyrightholder \\
1560 \@copyrightyear\\
1561 \@copyrightlicense \\[10mm]
1562 \end{copyrightpage}
1563 \fi
1564 }%
1565 %
1566 % \end{macrocode}
1567 % \end{macro}
1568 % \begin{macro}{\makepublicdomain}
1569 % Or, if chosen, |\makepublicdomain| macro
1570 % creates a copyright page (using earlier |copyrightpage| environment) that
1571 % puts the document in public domain.
1572 % \begin{macrocode}
1573 \newcommand{\makepublicdomain}{%
1574 \ifdiss@final
1575 \begin{copyrightpage}
1576 This document is in the public domain.
1577 \end{copyrightpage}
1578 \fi
1579 }%
1580 %
1581 % \end{macrocode}
1582 % \end{macro}
1583 % Define some new name macros and redefine other name macros as below. These
1584 % are the names of the respective sections in your dissertation document. If
1585 % there's a need to change any name, you must use a similar command in the
1586 % preamble of your document.
1587 % \begin{macrocode}
1588 \providecommand{\abstractname}{Abstract}
1589 \providecommand{\dedicationname}{\mbox{}}
1590 \providecommand{\prefacename}{Preface}
1591 \providecommand{\acknowledgename}{Acknowledgments}
1592 \providecommand{\symbolsname}{Symbols}
1593 \renewcommand{\tablename}{Table}
1594 \renewcommand{\figurename}{Figure}
1595 \renewcommand{\partname}{Part}
1596 \renewcommand{\chaptername}{Chapter}
1597 \renewcommand{\appendixname}{Appendix}
1598 \renewcommand{\contentsname}{Contents}
1599 \renewcommand{\listfigurename}{Figures}
1600 \renewcommand{\listtablename}{Tables}
1601 \renewcommand{\bibname}{Bibliography}
1602 \renewcommand{\indexname}{Index}
1603 %
1604 % \end{macrocode}
1605 % \begin{environment}{abstract}
1606 % This environment is adapted
1607 % from the \textsf{report} class since
1608 % the \textsf{book} class does not have one. Additionally, we add
1609 % a |\pdfbookmark| for the abstract in the pdf document.
1610 % \begin{macrocode}
1611 \newenvironment{abstract}{%
1612 \ifboolexpr{bool{pdf} or bool{xetex} or bool{luatex}}{%
1613 \pdfbookmark[0]{\abstractname}{abstract}%abstract.0
1614 }{}
1615 \typeout{Abstract page(s)}
1616 \renewcommand{\@oddfoot}{\@empty}
1617 \renewcommand{\@evenfoot}{\@empty}
1618 % \end{macrocode}
1619 % If the abstract extends to a second page,
1620 % place the author's name in top right corner of that page. Make
1621 % sure it's upright, as required by the University and that this appears
1622 % at $0.75''$ from the top.
1623 % \begin{macrocode}
1624 \let\@evenhead\@oddhead
1625 \renewcommand{\@oddhead}{\hfil{\upshape\@author}}
1626 \titlepage
1627 \null
1628 \begin{center}
1629 \vspace*{36pt}
1630 {\normalsize\mdseries \normalspacing
1631 \MakeTextUppercase{\@title} \\[3.5ex]
1632 \normalsize\abstractname \\ by \\ \@author\space}%
1633 \@endparpenalty \@M
1634 \end{center}\par}%
1635 {\par\vfil\null\endtitlepage}
1636 %
1637 % \end{macrocode}
1638 % \end{environment}
1639 % \begin{environment}{dedication}
1640 % The \textsf{dedication} environment is similar to
1641 % the \textsf{abstract} environment. This page is numbered 2 and the
1642 % subsequent pages are numbered accordingly. A pdfbookmark is
1643 % not created because of a reported issue that Adobe products have with
1644 % pdfbookmarks containing an |\mbox|.
1645 % \begin{macrocode}
1646 \newenvironment{dedication}{%
1647 \global\diss@dedicationtrue
1648 \typeout{Dedication page}
1649 \chapter*{\dedicationname}%
1650 \thispagestyle{plain}
1651 \setcounter{page}{2}
1652 \null\centering}
1653 {\par\null\clearpage}%
1654 %
1655 % \end{macrocode}
1656 % \end{environment}
1657 % \begin{macro}{\tableofcontents} The |\tableofcontents| macro is redefined to
1658 % begin at page 2 if the dedication environment does not exist. It is
1659 % single-spaced.
1660 % \begin{macrocode}
1661 \renewcommand\tableofcontents{%
1662 \ifdiss@dedication\relax\else\setcounter{page}{2}\fi
1663 \chapter*{\contentsname}%
1664 \ifboolexpr{bool{pdf} or bool{xetex} or bool{luatex}}{%
1665 \pdfbookmark[0]{\contentsname}{contents}%contents.0
1666 }{}
1667 \singlespacing
1668 \@starttoc{toc}%
1669 \normalspacing
1670 }
1671 %
1672 % \end{macrocode}
1673 % \end{macro}
1674 % \begin{macro}{\listoffigures}
1675 % \begin{macro}{\listoftables}
1676 % These macros are modified to add the
1677 % |\listfigurename| and |\listoftables|
1678 % to the Table of Contents. Both of these are also single spaced. The
1679 % inter-entry spacing is changed by adding a |\vskip| after each entry. This is
1680 % done in the |figure| and |table| environments later.
1681 % \begin{macrocode}
1682 \renewcommand\listoffigures{%
1683 \chapter*{\listfigurename}%
1684 \addcontentsline{toc}{chapter}{\listfigurename}%
1685 \typeout{List of figures - \listfigurename}
1686 \singlespacing
1687 \@starttoc{lof}%
1688 \normalspacing
1689 }
1690 %
1691 \renewcommand\listoftables{%
1692 \chapter*{\listtablename}%
1693 \addcontentsline{toc}{chapter}{\listtablename}%
1694 \typeout{List of tables - \listtablename}
1695 \singlespacing
1696 \@starttoc{lot}%
1697 \normalspacing
1698 }
1699 %
1700 % \end{macrocode}
1701 % \end{macro}
1702 % \end{macro}
1703 % \begin{environment}{preface}
1704 % \begin{environment}{acknowledgement}
1705 % These environments are similar to the \textsf{dedication} environment. They are
1706 % defined as |\chapter*{}| so they are not numbered and not added to Table of
1707 % Contents and so, add that manually by using |\addcontentsline|.
1708 % \begin{macrocode}
1709 \newenvironment{preface}{%
1710 \typeout{Preface page}
1711 \chapter*{\prefacename}
1712 \addcontentsline{toc}{chapter}{\prefacename}%
1713 }%
1714 {\par\null\clearpage}%
1715 %
1716 \newenvironment{acknowledge}{%
1717 \typeout{Acknowledgment page}
1718 \chapter*{\acknowledgename}
1719 \addcontentsline{toc}{chapter}{\acknowledgename}%
1720 }%
1721 {\par\null\clearpage}%
1722 %
1723 % \end{macrocode}
1724 % \end{environment}
1725 % \end{environment}
1726 % \begin{macro}{\unnumchapter}
1727 % Allows the user to create unnumbered chapters that appear in the TOC.
1728 % \begin{macrocode}
1729 \newcommand\unnumchapter[1]{%
1730 \chapter*{#1}%
1731 \addcontentsline{toc}{chapter}{#1}}
1732 % \end{macrocode}
1733 % \end{macro}
1734 % \begin{environment}{symbols}
1735 % \begin{macro}{\sym}
1736 % Define \textsf{symbols} environment which lays out it as a |\chapter*| and
1737 % adds |\symbolsname| to the TOC. The environment is actually a horizontally
1738 % centered \textsf{longtable} environment. To aid entry of a \emph{symbol} and
1739 % its definition, |\sym| macro command is also defined.
1740 % \begin{macrocode}
1741 \newcommand{\sym}[2]{\ensuremath{#1} & #2 \\}
1742 \newenvironment{symbols}[1][rl]{%
1743 \typeout{Symbols page}
1744 \chapter*{\symbolsname}%
1745 \addcontentsline{toc}{chapter}{\symbolsname}%
1746 \begin{center}\begin{longtable}{#1}}%
1747 {\end{longtable}\end{center}\par\null}
1748 %
1749 % \end{macrocode}
1750 % \end{macro}
1751 % \end{environment}
1752 % Modify chapter definition in |\@chapter| to put the word
1753 % ``Chapter'' (|\@chapapp|) in the Table of Contents.
1754 % That is, now the TOC will contain
1755 % ``Chapter 1: First chapter'' rather than
1756 % ``1. First chapter.''
1757 % The rest of the format code is essentially the same as
1758 % that in the \textsf{book} class.
1759 % \begin{macrocode}
1760 \def\@chapter[#1]#2{
1761 \ifnum \c@secnumdepth >\m@ne
1762 \if@mainmatter
1763 \refstepcounter{chapter}%
1764 \typeout{\MakeTextUppercase{\@chapapp\space\thechapter.}}%
1765 \addcontentsline{toc}{chapter}%
1766 {{\@chapapp\ \thechapter: #1}}%
1767 \else
1768 \addcontentsline{toc}{chapter}{#1}%
1769 \fi
1770 \else
1771 \addcontentsline{toc}{chapter}{#1}%
1772 \fi
1773 \chaptermark{#1}%
1774 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1775 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1776 \@makechapterhead{\MakeTextUppercase{#2}}%
1777 \@afterheading }%
1778 %
1779 % \end{macrocode}
1780 % Modify part definition in |\@part| and |\@spart| to keep the font
1781 % size for part headings |\normalsize| and |\mdseries|. It is otherwise
1782 % the same as in the \textsf{book} class.
1783 % \begin{macrocode}
1784 \def\@part[#1]#2{%
1785 \ifnum \c@secnumdepth >-2\relax
1786 \refstepcounter{part}%
1787 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
1788 \else
1789 \addcontentsline{toc}{part}{#1}%
1790 \fi
1791 \markboth{}{}%
1792 {\centering
1793 \interlinepenalty \@M
1794 \normalfont
1795 \ifnum \c@secnumdepth >-2\relax
1796 \normalsize\mdseries \partname\nobreakspace\thepart
1797 \par
1798 \vskip 20\p@
1799 \fi
1800 \normalsize\mdseries \MakeTextUppercase{#2}\par}%
1801 \@endpart}
1802 \def\@spart#1{%
1803 {\centering
1804 \interlinepenalty \@M
1805 \normalfont
1806 \normalsize\mdseries #1\par}%
1807 \@endpart}
1808 %
1809 % \end{macrocode}
1810 % Now format section headings to conform to the official guidelines.
1811 % \begin{macro}{\@makechapterhead}
1812 % First, modify the chapter heading label to be normalsize'd
1813 % and centered. Instead of the bold-faced heading label,
1814 % also make it |\mdseries|.
1815 % If we are in the |\mainmatter|, we add ``CHAPTER''
1816 % and chapter number before actually putting the chapter name otherwise only the
1817 % ``chapter name'' is put. Note that chapter/section headings must all be
1818 % double-spaced.
1819 % \begin{macrocode}
1820 \renewcommand{\@makechapterhead}[1]{%
1821 \vspace*{30pt}%
1822 {\parindent \z@ \raggedright
1823 \ifnum \c@secnumdepth >\m@ne
1824 \normalfont\normalsize%
1825 \if@mainmatter
1826 \ifcentered@chaptitle\center\else\relax\fi%
1827 \MakeTextUppercase{\@chapapp{} \thechapter}\par\nobreak
1828 \fi
1829 \fi
1830 \interlinepenalty\@M
1831 \ifcentered@chaptitle\center\else\relax\fi%
1832 \mdseries{#1}\par\nobreak
1833 \vskip 30\p@
1834 }}
1835 %
1836 % \end{macrocode}
1837 % \end{macro}
1838 % \begin{macro}{\@makeschapterhead}
1839 % Make the TOC, LOF, LOT and other |\chapter*| headings in normal size,
1840 % and |\mdseries| by modifying the macro |\@makeschapterhead|. Although these
1841 % heading labels usually fit in a single-line, we copy the formatting for
1842 % the chapter heading label (single-spacing) and make the spacing double again
1843 % for the text.
1844 % \begin{macrocode}
1845 \renewcommand{\@makeschapterhead}[1]{%
1846 \vspace*{30pt}%
1847 {\parindent \z@ \raggedright
1848 \normalfont\normalsize%
1849 \interlinepenalty\@M
1850 \ifcentered@chaptitle\center\else\relax\fi
1851 \mdseries{\MakeTextUppercase{#1}}\par\nobreak
1852 \vskip 30\p@
1853 }}
1854 %
1855 % \end{macrocode}
1856 % \end{macro}
1857 % Now, set the section labels to |\mdseries| rather than bold-faced. We also
1858 % make sure that these are set in normal spacing, font and size.
1859 % This is done for each
1860 % of |\section|, |\subsection|, |\subsubsection|, |\subsubsubsection|,
1861 % |\paragraph| and |\subparagraph|.
1862 % \begin{macrocode}
1863 \renewcommand\section{\suppressfloats[t]%
1864 \@startsection {section}{1}{\z@}%
1865 {-4.2ex \@plus -1ex \@minus -.2ex}%
1866 {1.8ex \@plus.2ex}%
1867 {\normalfont\normalsize\mdseries} }
1868 \renewcommand\subsection{\suppressfloats[t]%
1869 \@startsection{subsection}{2}{\z@}%
1870 {-3.9ex\@plus -1ex \@minus -.2ex}%
1871 {1.2ex \@plus .2ex}%
1872 {\normalfont\normalsize\mdseries} }
1873 \renewcommand\subsubsection{\suppressfloats[t]%
1874 \@startsection{subsubsection}{3}{\z@}%
1875 {-3.9ex\@plus -1ex \@minus -.2ex}%
1876 {1.2ex \@plus .2ex}%
1877 {\normalfont\normalsize\mdseries} }
1878 \renewcommand\paragraph{%
1879 \@startsection{paragraph}{4}{\z@}%
1880 {3.9ex \@plus1ex \@minus.2ex}%
1881 {-1em}%
1882 {\normalfont\normalsize\mdseries} }
1883 \renewcommand\subparagraph{%
1884 \@startsection{subparagraph}{5}{\parindent}%
1885 {3.9ex \@plus1ex \@minus .2ex}%
1886 {-1em}%
1887 {\normalfont\normalsize\mdseries} }
1888 %
1889 % \end{macrocode}
1890 % \begin{macro}{\l@part}
1891 % Modify the macro |\l@part| that formats part titles in the
1892 % contents-like files (|.toc|, |.lof| and |.lot|) by adding a |\@dottedtocline|
1893 % macro. The indent width is set to 1.5em - to line up a continued line with
1894 % the section number below it. We also leave less space between each part
1895 % and the last section entry than the default and don't change the font.
1896 % \begin{macrocode}
1897 \renewcommand*\l@part[2]{%
1898 \ifnum \c@tocdepth >-2\relax
1899 \addpenalty{-\@highpenalty}%
1900 \setlength\@tempdima{1.5em}%
1901 \begingroup
1902 {\leavevmode
1903 \@dottedtocline{1}{0pt}{\@tempdima}{#1}{#2}
1904 }\par
1905 \nobreak
1906 \global\@nobreaktrue
1907 \everypar{\global\@nobreakfalse\everypar{}}%
1908 \endgroup
1909 \fi}
1910 %
1911 % \end{macrocode}
1912 % \end{macro}
1913 % \begin{macro}{\l@chapter}
1914 % Modify the macro |\l@chapter| that formats chapter titles in the
1915 % contents-like files (|.toc|, |.lof| and |.lot|) by adding a |\@dottedtocline|
1916 % macro. The indent width is set to 1.5em - to line up a continued line with
1917 % the section number below it. We also leave less space between each chapter
1918 % and the last section entry than the default.
1919 % \begin{macrocode}
1920 \renewcommand*{\l@chapter}[2]{%
1921 \addpenalty{-\@highpenalty}%
1922 \setlength\@tempdima{1.5em}%
1923 \begingroup \leavevmode
1924 \@dottedtocline{1}{0pt}{\@tempdima}{#1}{#2}
1925 \par
1926 \penalty\@highpenalty
1927 \endgroup
1928 }
1929 %
1930 % \end{macrocode}
1931 % \end{macro}
1932 % \begin{macro}{\thesubsubsection}
1933 % We increase the number of section-depth by 1 and force subsubsection entry in the TOC
1934 % by increasing the |\tocdepth|. In addition, the label number of
1935 % |\subsubsection| is defined to be similar to that for |\subsection| i.\/e.\/
1936 % all arabic numerals.
1937 % \begin{macrocode}
1938 \addtocounter{secnumdepth}{1}
1939 \addtocounter{tocdepth}{1}
1940 \renewcommand{\thesubsubsection}{%
1941 \thesubsection.\arabic{subsubsection}}
1942 %
1943 % \end{macrocode}
1944 % \end{macro}
1945 % \begin{environment}{quote}
1946 % Redefine the |quote| environment to be single-spaced instead of being same
1947 % as the rest of the text.
1948 % \begin{macrocode}
1949 \renewenvironment{quote}
1950 {\list{}{\rightmargin\leftmargin}%
1951 \singlespacing
1952 \item\relax}
1953 {\endlist}
1954 %
1955 % \end{macrocode}
1956 % \end{environment}
1957 % \begin{environment}{itemize}
1958 % Redefine the |itemize| environment so that each item is
1959 % single-spaced, but with a line of space between each item.
1960 % \begin{macrocode}
1961 \let\realitemize\itemize
1962 \let\endrealitemize\enditemize
1963 \renewenvironment{itemize}
1964 {\realitemize
1965 \singlespacing}
1966 {\endrealitemize
1967 \doublespacing}
1968 % \end{macrocode}
1969 % \end{environment}{itemize}
1970 % \begin{environment}{enumerate}
1971 % Redefine the |enumerate| environment so that each item is
1972 % single-spaced, but with a line of space between each item.
1973 % Note we need the optional argument in order to be compatible
1974 % with the |enumerate| package
1975 % \begin{macrocode}
1976 \let\realenumerate\enumerate
1977 \let\endrealenumerate\endenumerate
1978 \renewenvironment{enumerate}[1][1.]
1979 {\realenumerate[#1]
1980 \singlespacing}
1981 {\endrealenumerate
1982 \doublespacing}
1983 % \end{macrocode}
1984 % \end{environment}{enumerate}
1985 % \begin{environment}{description}
1986 % Redefine the |description| environment so that each item is
1987 % single-spaced, but with a line of space between each item.
1988 % \begin{macrocode}
1989 \let\realdescription\description
1990 \let\endrealdescription\enddescription
1991 \renewenvironment{description}
1992 {\realdescription
1993 \singlespacing}
1994 {\endrealdescription
1995 \doublespacing}
1996 % \end{macrocode}
1997 % \end{environment}{description}
1998 % Set some lengths that are used in the |table| and the |figure|
1999 % environments. Note that we set the caption width (|\capwidth|)
2000 % to be 90\% of the |\textwidth|.
2001 % \begin{macrocode}
2002 \setlength\abovecaptionskip{20\p@}
2003 \newlength\capwidth
2004 \setlength{\capwidth}{0.90\textwidth}
2005 \newlength\abovetableskip
2006 \newlength\belowtableskip
2007 \newlength\abovefigureskip
2008 \newlength\belowfigureskip
2009 \setlength\abovetableskip\belowcaptionskip
2010 \setlength\belowtableskip\abovecaptionskip
2011 \setlength\abovefigureskip\abovecaptionskip
2012 \setlength\belowfigureskip\belowcaptionskip
2013 %
2014 % \end{macrocode}
2015 % \begin{environment}{figure}
2016 % For the |figure| environment, first some skip lengths are set, then
2017 % use |\@makefigurecaption| to
2018 % format the captions instead of the default |\@makecaption|, since the
2019 % layout is different for |figure| and the |table| environment. Further
2020 % add a |\vskip| to each entry in |.lof| file so that the
2021 % inter-caption spacing seems double-spaced.
2022 % \begin{macrocode}
2023 \renewenvironment{figure}{%
2024 \setlength{\abovecaptionskip}{\abovefigureskip}
2025 \setlength{\belowcaptionskip}{\belowfigureskip}
2026 \let\@makecaption\@makefigurecaption
2027 \@float{figure}}%
2028 {%
2029 \addtocontents{lof}{ {\vskip 0.4em} }%
2030 \end@float%
2031 }
2032 %
2033 % \end{macrocode}
2034 % \end{environment}
2035 % \begin{macro}{\@makefigurecaption}
2036 % The |\@makefigurecaption| is defined to format the caption in a parbox with
2037 % width equal to |\capwidth| and is formatted in
2038 % single-spacing. The interline-spacing is then changed to double after
2039 % the caption.
2040 % \begin{macrocode}
2041 \long\def\@makefigurecaption#1#2{%
2042 \vskip\abovecaptionskip
2043 \begin{center}
2044 \parbox{\capwidth}{
2045 \centering\singlespacing
2046 {#1}. {#2}%\par
2047 \vskip\belowcaptionskip\normalspacing }%
2048 \end{center}
2049 }%
2050 %
2051 % \end{macrocode}
2052 % \end{macro}
2053 % \begin{environment}{table}
2054 % After setting the above and below skip lengths,
2055 % the |table| environment is set to be
2056 % single spaced. However, to obtain double-spacing between the entries,
2057 % redefine the |\arraystretch| to be equivalent to the
2058 % |\double@baselinestretch|. This way, while there are double-spaced entries,
2059 % the entry itself is single-spaced. Similar to that in
2060 % |\@makefigurecaption|, a |\vskip| is added to each entry in the |.lot| file.
2061 % \begin{macrocode}
2062 \renewenvironment{table}[1][tbp]{%
2063 \setlength{\abovecaptionskip}{\abovetableskip}
2064 \setlength{\belowcaptionskip}{\belowtableskip}
2065 \renewcommand{\arraystretch}{\double@baselinestretch}
2066 \let\scaption\caption%
2067 \renewcommand*{\caption}[2][]{%
2068 \ifthenelse{\equal{##1}{}}{%
2069 \def\shortcaption{##2}%
2070 }{%
2071 \def\shortcaption{##1}%
2072 }%
2073 \scaption[\shortcaption]{\MakeTextUppercase{##2}}%
2074 }%
2075 \let\@makecaption\@maketablecaption
2076 \@float{table}[#1]%
2077 \singlespacing%
2078 }%
2079 {%
2080 \addtocontents{lot}{ {\vskip 0.4em} }%
2081 \end@float%
2082 }
2083 %
2084 % \end{macrocode}
2085 % \end{environment}
2086 % \begin{macro}{\@maketablecaption}
2087 % The |\@maketablecaption| is defined similarly to |\@makefigurecaption|
2088 % to have the table label and caption in
2089 % separate lines and with normal-spacing (double-spaced).
2090 % \begin{macrocode}
2091 \long\def\@maketablecaption#1#2{
2092 \vskip\abovecaptionskip
2093 \begin{center}
2094 \makebox[\linewidth]{
2095 \parbox{\capwidth}{
2096 \centering\normalspacing
2097 \MakeTextUppercase{#1}\\[\single@skip]
2098 {#2}%\par
2099 \vskip\belowcaptionskip }%
2100 }%
2101 \end{center}
2102 }
2103 %
2104 % \end{macrocode}
2105 % \end{macro}
2106 % \begin{macro}{\longtable}
2107 % Similar to the |table| environment,
2108 % the |longtable| environment is made singly-spaced but the |\arraystretch| is
2109 % made equal to double the |baselinestretch|.
2110 % \begin{macrocode}
2111 \renewcommand\longtable{%
2112 \singlespacing
2113 \renewcommand{\arraystretch}{\double@baselinestretch}
2114 \begingroup
2115 \@ltfirstcaptiontrue
2116 \@ifnextchar[\LT@array{\LT@array[x]}}
2117 %
2118 % \end{macrocode}
2119 % \end{macro}
2120 % \begin{macro}{\endlongtable}
2121 % This bit is taken from |longtable.sty|. In order to obtain double-spacing
2122 % in the list of tables, a |\vskip| of 0.4em is added to |.lot| file.
2123 % \begin{macrocode}
2124 \renewcommand\endlongtable{%
2125 \crcr
2126 \noalign{%
2127 \let\LT@entry\LT@entry@chop
2128 \xdef\LT@save@row{\LT@save@row}}%
2129 \LT@echunk
2130 \LT@start
2131 \unvbox\z@
2132 \LT@get@widths
2133 \if@filesw
2134 {\let\LT@entry\LT@entry@write\immediate\write\@auxout{%
2135 \gdef\expandafter\noexpand
2136 \csname LT@\romannumeral\c@LT@tables\endcsname
2137 {\LT@save@row}}}%
2138 \fi
2139 \ifx\LT@save@row\LT@@save@row
2140 \else
2141 \LT@warn{Column \@width s have changed\MessageBreak
2142 in table \thetable}%
2143 \LT@final@warn
2144 \fi
2145 \endgraf\penalty -\LT@end@pen
2146 \addtocontents{lot}{ {\vskip 0.4em} }%
2147 \endgroup
2148 \global\@mparbottom\z@
2149 \pagegoal\vsize
2150 \endgraf\penalty\z@\addvspace\LTpost
2151 \ifvoid\footins\else\insert\footins{}\fi
2152 }
2153 %
2154 % \end{macrocode}
2155 % \end{macro}
2156 % \begin{macro}{\LT@makecaption}
2157 % For the |longtable| environment, the |\LTcapwidth| is set equal to
2158 % |\capwidth|. In order to obtain consistent table captions, the command
2159 % |\LT@makecaption| is modified in a similar manner as |\maketablecaption|.
2160 % \begin{macrocode}
2161 \setlength{\LTcapwidth}{\capwidth}
2162 \renewcommand\LT@makecaption[3]{%
2163 \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
2164 \vskip\abovetableskip%
2165 \centering\normalspacing
2166 \if@ltfirstcaption
2167 #1{\MakeTextUppercase{#2} }\\[\single@skip]
2168 \MakeTextUppercase{#3}\par
2169 \else%
2170 #1{\MakeTextUppercase{#2 (continued)} }\par
2171 \fi
2172 \global\@ltfirstcaptionfalse
2173 \endgraf\vskip\belowtableskip}%
2174 \hss}}}
2175 %
2176 % \end{macrocode}
2177 % \end{macro}
2178 % \begin{macro}{\timenow}
2179 % This macro is used in making the |\draftheader| and |\reviewheader| below. It
2180 % outputs time in |HH:MM| format.
2181 % \begin{macrocode}
2182 \newcommand\timenow{%
2183 \@tempcnta=\time \divide\@tempcnta by 60 \number\@tempcnta:\multiply
2184 \@tempcnta by 60 \@tempcntb=\time \advance\@tempcntb by -\@tempcnta
2185 \ifnum\@tempcntb <10 0\number\@tempcntb\else\number\@tempcntb\fi}
2186 %
2187 % \end{macrocode}
2188 % \end{macro}
2189 % \begin{macro}{\diss@header}
2190 % This header is used in the dissertation document when the |draft| or |review|
2191 % option is used. These headers serve as a note for the date and time of the
2192 % document compilation.
2193 % \begin{macrocode}
2194 \newcommand{\diss@header}{%
2195 \ifdiss@review Review \else Draft \fi document [\today\/ at \timenow\/]
2196 }%
2197 %
2198 % \end{macrocode}
2199 % \end{macro}
2200 % The header prepared above is put in the document by modifiying the \emph{plain}
2201 % and \emph{empty} pagestyles except when the |final| option is chosen.
2202 % \begin{macrocode}
2203 \ifdiss@final
2204 \renewcommand{\ps@plain}{
2205 \renewcommand{\@oddhead}{\@empty}
2206 \renewcommand{\@oddfoot}{\hfil\thepage\hfil}
2207 \let\@evenhead\@oddhead
2208 \let\@evenfoot\@oddfoot
2209 }%
2210 \else
2211 \renewcommand{\ps@plain}{
2212 \renewcommand{\@oddhead}{\framebox[\textwidth]{
2213 \centering\footnotesize\tt\diss@header}}%
2214 \renewcommand{\@oddfoot}{\hfil\textrm{\thepage}\hfil}
2215 \let\@evenhead\@oddhead
2216 \let\@evenfoot\@oddfoot
2217 }%
2218 \renewcommand{\ps@empty}{
2219 \renewcommand{\@oddhead}{\framebox[\textwidth]{
2220 \centering\footnotesize\tt\diss@header}}%
2221 \renewcommand{\@oddfoot}{\@empty}
2222 \let\@evenhead\@oddhead
2223 \let\@evenfoot\@oddfoot
2224 }%
2225 \fi
2226 %
2227 % \end{macrocode}
2228 % \begin{macro}{\bibsection}
2229 % By redefining |\bibsection| macro, add the |\bibname| to the table of
2230 % contents and as a chapter heading for the bibliography.
2231 % \begin{macrocode}
2232 \renewcommand{\bibsection}{
2233 \chapter*{\bibname}%
2234 \addcontentsline{toc}{chapter}{\bibname}%
2235 }%
2236 %
2237 % \end{macrocode}
2238 % \end{macro}
2239 % \begin{macro}{\bibfont}
2240 % Changed the |\bibfont| macro to obtain single-spacing within each
2241 % bibliographic entry. Between different entries, it is still |\normalspacing|.
2242 % In addition, when the |numrefs| option is selected, the |\@biblabel| is redefined
2243 % to number the bibliographic entries as |1. xxxx| instead of the default
2244 % |[1] xxxx|.
2245 % \begin{macrocode}
2246 \renewcommand{\bibfont}{\singlespacing}
2247 \ifnum@refs
2248 \renewcommand{\@biblabel}[1]{\hfill#1.\hfill}
2249 \fi
2250 %
2251 % \end{macrocode}
2252 % \end{macro}
2253 % Lastly, after the bibliography in the final document,
2254 % add a framed box which contains a blurb about
2255 % the typesetting program and \nddiss\space version used for preparing the
2256 % dissertation document.
2257 % \begin{macrocode}
2258 \ifdiss@final
2259 \AtEndDocument{
2260 \vfill
2261 \centering\singlespacing
2262 \framebox[0.85\textwidth]{
2263 \begin{minipage}{0.80\textwidth}\footnotesize%
2264 \centering \itshape This document was prepared \& typeset with
2265 \upshape
2266 \ifluatex
2267 \LuaLaTeX
2268 \else\ifxetex
2269 \XeLaTeX
2270 \else\ifpdf
2271 pdf\LaTeX
2272 \else
2273 \LaTeXe
2274 \fi\fi\fi
2275 \itshape , and
2276 formatted with \upshape\nddiss\xspace\itshape classfile
2277 (v\dissfileversion [\dissfiledate])
2278 \end{minipage} }
2279 \clearpage}
2280 \else\relax\fi
2281 %
2282 % \endinput
2283 % End of file `nddiss2e.cls'.
2284 % \end{macrocode}
2285 %%
2286 % \iffalse
2287 %</class>
2288 % \fi
2289 %
2290 % \iffalse
2291 %<*template>
2292 \documentclass[draft]{nddiss2e}
2293 % One of the options draft, review, final must be chosen.
2294 % One of the options textrefs or numrefs should be chosen
2295 % to specify if you want numerical or ``author-date''
2296 % style citations.
2297 % Other available options are:
2298 % 10pt/11pt/12pt (available with draft only)
2299 % twoadvisors
2300 % noinfo (should be used when you compile the final time
2301 % for formal submission)
2302 % sort (sorts multiple citations in the order that they're
2303 % listed in the bibliography)
2304 % compress (compresses numerical citations, e.g. [1,2,3]
2305 % becomes [1-3]; has no effect when used with
2306 % the textrefs option)
2307 % sort&compress (sorts and compresses numerical citations;
2308 % is identical to sort when used with textrefs)
2309 \begin{document}
2310
2311 \frontmatter % All the items before Chapter 1 go in ``frontmatter''
2312
2313 \title{ Title of Work } % Title
2314
2315 \author{ Jane Doe } % Author's name
2316 \work{ Dissertation } % ``Dissertation'' or ``Thesis''
2317 \degaward{ Doctor of Philosophy } % Degree you're aiming for.
2318 % Should be one of the following options:
2319 % ``Doctor of Philosophy'' (do NOT include ``in Subject'')
2320 % ``Master of Science \\ in \\ Subject''
2321 \advisor{ John Public } % Advisor's name
2322 % \secondadvisor{ } % Second advisor, if used option ``twoadvisors''
2323 \department{ } % Name of the department
2324
2325 \maketitle % The title page is created now
2326
2327 % You must use either the \makecopyright option or the \makepublicdomain option.
2328 % \copyrightholder{ } % If you're not the copyright holder
2329 % \copyrightyear{ } % If the copyright is not for the current year
2330 % \makecopyright % If not making your work public domain
2331 % uncomment out \makecopyright
2332 % \makepublicdomain % Uncomment this to make your work public domain
2333
2334 % Including an abstract is optional for a master's thesis, and required for a
2335 % doctoral dissertation.
2336 % \begin{abstract}
2337 % \end{abstract}
2338 % % Either place the text between begin/end, or
2339 % \include{abstract} % put it in a file to be included
2340
2341 % Including a dedication is optional.
2342 % \renewcommand{\dedicationname}{\mbox{}} % Replace \mbox{} if you want
2343 % something else.
2344 % \begin{dedication}
2345 % \end{dedication}
2346 % % Use one of the two choices to add dedication text
2347 % \include{dedication}
2348
2349 \tableofcontents
2350 \listoffigures
2351 \listoftables
2352
2353 % Including a list of symbols is optional.
2354 %% \renewcommand{\symbolsname}{newsymname} % Replace ``newsymname'' with
2355 % the name you want, and uncomment
2356 % \begin{symbols}
2357 % \end{symbols}
2358 % % Use one of the two choices to add symbols text
2359 % \include{symbols}
2360
2361 % Including a preface is optional.
2362 %% \renewcommand{\prefacename}{ } % If you want another Preface name, add
2363 % something else, and uncomment.
2364 % \begin{preface}
2365 % \end{preface}
2366 % % Use one of the two choices to add preface text
2367 % \include{preface}
2368
2369 % Including an acknowledgements section may or may not be optional. It's hard to
2370 % tell from the information available in Spring 2013.
2371 %% \renewcommand{\acknowledgename}{ } % If you want another Acknowledgement name
2372 % add something else, and uncomment
2373 % \begin{acknowledge}
2374 % \end{acknowledge}
2375 % % Use one of the two choices to add acknowledge text
2376 % \include{acknowledgement}
2377
2378 \mainmatter
2379 % Place the text body here.
2380 % \include{chapter-one}
2381 % Begin each chapter with \chapter{Title}.
2382
2383 % Appendices are optional.
2384 \appendix
2385
2386 % If you have appendices, add them here.
2387 % Begin each one with \chapter{TITLE} as before. The \appendix command takes
2388 % care of renaming chapter headings and creates a new page in the Table of
2389 % Contents for them.
2390 % \include{appendix-one}
2391
2392 \backmatter % Place for bibliography and index
2393
2394 % If you are using BibTeX to manage your citations:
2395 % Use the ``nddiss2e'' bibliography style, unless your field does not
2396 % include the titles of journal articles in bibliography entires.
2397 % If you do not want the titles of journal articles to appear, use the
2398 % ``nddiss2enoarticletitles'' bibliography style.
2399
2400 \bibliographystyle{nddiss2e}
2401 \bibliography{ } % input the bib-database file name
2402
2403 % If you are not using BibTeX to manage your citations, use
2404 % \begin{thebibliography}{number}
2405 % \end{thebilbiography}
2406 % as usual. Note that if you choose this route, formatting the bibliography
2407 % is your responsibility.
2408
2409 \end{document}
2410
2411 %</template>
2412 % \fi
2413 %%
2414 % \Finale
2415 \endinput
2416 %% End of file : nddiss2e.dtx