ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/fennellDissertation/nddiss2e.cls
Revision: 2918
Committed: Mon Jul 3 13:55:25 2006 UTC (18 years ago) by chrisfen
File size: 22400 byte(s)
Log Message:
Fennell Dissertation

File Contents

# Content
1 %%
2 %% This is file `nddiss2e.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% nddiss2e.dtx (with options: `class')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright (C) 2004 Sameer Vijay
12 %%
13 %% This file may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either
15 %% version 1.2 of this license or (at your option) any later
16 %% version. The latest version of this license is in
17 %%
18 %% http://www.latex-project.org/lppl.txt
19 %%
20 %% and version 1.2 or later is part of all distributions of
21 %% LaTeX version 1999/12/01 or later.
22 %%
23 %% ==============================================================
24 %%
25 %% Notre Dame's Dissertation document class by Sameer Vijay
26 %% that adheres to the University of Notre Dame guidelines
27 %% published in 2003-2004.
28 %%
29 %% Please send any improvements/suggestions to :
30 %% Shari Hill, Graduate Reviewer.
31 %% shill2@nd.edu
32 %%
33 %% For documentation on how to use nddiss2e class, process the
34 %% file nddiss2e.dtx through LaTeX.
35 %%
36 %% ==============================================================
37 %%
38 %%
39 %% nddiss2e LaTeX2e class
40 %%
41 %% See the instructions in ndthesis.ins for how to obtain a
42 %% sample template thesis file.
43 %%
44 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
45 \newcommand\dissfileversion{1.0}
46 \newcommand\dissfiledate{2004/06/15}
47 \ProvidesClass{nddiss2e}
48 [\dissfiledate\space v\dissfileversion\space ^^J%
49 Notre Dame Dissertation document class by Sameer Vijay^^J]
50 \newif\ifpdf
51 \ifx\pdfoutput\undefined
52 \else
53 \ifx\pdfoutput\relax
54 \else
55 \ifcase\pdfoutput
56 \else
57 \pdftrue
58 \fi
59 \fi
60 \fi
61
62 \newif\ifcentered@chaptitle \centered@chaptitletrue
63 \newif\ifdiss@draft \diss@drafttrue
64 \newif\ifdiss@review \diss@reviewfalse
65 \newif\ifdiss@final \diss@finalfalse
66 \newif\ifsummary@page \summary@pagetrue
67 \newif\ifadvisors@two \advisors@twofalse
68 \newif\ifdiss@dedication \diss@dedicationfalse
69 \DeclareOption{draft}{\setlength\overfullrule{5pt}
70 \typeout{DRAFT MODE}\typeout{}\diss@drafttrue\summary@pagefalse%
71 \PassOptionsToClass{letterpaper,oneside,draft}{book} }
72 \DeclareOption{review}{\typeout{REVIEW MODE}\typeout{}%
73 \diss@reviewtrue\summary@pagetrue
74 \PassOptionsToClass{12pt,letterpaper,oneside,final}{book} }
75 \if@compatibility\else
76 \DeclareOption{final}{\setlength\overfullrule{0pt}
77 \typeout{FINAL MODE}\typeout{}\diss@finaltrue\summary@pagetrue%
78 \PassOptionsToClass{12pt,letterpaper,oneside,final}{book} }
79 \fi
80 \DeclareOption{nocenter}{\centered@chaptitlefalse}
81 \DeclareOption{openbib}{%
82 \AtEndOfPackage{%
83 \renewcommand\@openbib@code{%
84 \singlespacing\advance\leftmargin\bibindent
85 \itemindent -\bibindent
86 \listparindent \itemindent
87 \parsep \z@
88 }%
89 \renewcommand\newblock{\par}%
90 }%
91 }
92 \DeclareOption{twoadvisors}{\typeout{TWO ADVISORS}\typeout{}%
93 \advisors@twotrue}
94 \DeclareOption{10pt}{%
95 \ifdiss@draft%
96 \PassOptionsToClass{10pt}{book}%
97 \else%
98 \OptionNotUsed%
99 \ClassWarningNoLine{nddiss2e}%
100 {Font size 10pt not allowed; using 12pt}%
101 \fi%
102 }
103 \DeclareOption{11pt}{%
104 \ifdiss@draft%
105 \PassOptionsToClass{11pt}{book}%
106 \else%
107 \OptionNotUsed%
108 \ClassWarningNoLine{nddiss2e}%
109 {Font size 11pt not allowed; using 12pt}%
110 \fi
111 }
112 \DeclareOption{nosummary}{\summary@pagefalse}
113 \DeclareOption{twoside}{\typeout{TWO SIDED DOCUMENT}%
114 \PassOptionsToClass{twoside}{book} }%
115 \DeclareOption*{\ClassWarning{nddiss2e}%
116 {UnknownOption `\CurrentOption'} }%
117 \ProcessOptions\relax
118 \LoadClass{book}
119 \RequirePackage{ifthen,exscale}
120 \RequirePackage{longtable}
121 \RequirePackage{xspace}
122 \RequirePackage{indentfirst}
123 \RequirePackage{tabularx}
124 \RequirePackage{enumerate}
125 \RequirePackage{latexsym}
126 \ifdiss@draft
127 \RequirePackage{showkeys}
128 \fi
129 \ifpdf
130 \RequirePackage[pdftex]{epsfig}
131 \RequirePackage[pdftex]{color}
132 \RequirePackage[pdftex]{graphicx}
133 \RequirePackage[pdftex,
134 letterpaper=true,%
135 bookmarks=true,%
136 bookmarksnumbered=true,%
137 linktocpage=true,%
138 breaklinks=true,%
139 bookmarkstype=toc,%
140 colorlinks=false,%
141 pdfpagemode=UseOutlines]{hyperref}
142 \AtBeginDocument{
143 \pdfadjustspacing=1
144 }
145 \else
146 \RequirePackage[dvips]{epsfig}
147 \RequirePackage[dvips]{color}
148 \RequirePackage[dvips]{graphicx}
149 \fi
150 \AtBeginDocument{
151 \RequirePackage{amsmath,amssymb}
152 \RequirePackage{float}
153 \RequirePackage{lscape}
154 \RequirePackage{booktabs}
155 \RequirePackage{rotating}
156 \RequirePackage[doublespacing]{setspace}
157 }
158
159 \newcommand{\normalspacing}{\doublespacing}
160 \newcommand\single@baselinestretch{1.0}
161 \newcommand\double@baselinestretch{1.66}
162 \newlength{\single@skip}
163 \setlength{\single@skip}{\single@baselinestretch em}
164 \newlength{\double@skip}
165 \setlength{\double@skip}{\double@baselinestretch em}
166 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}%
167 \cleardoublepage}}
168 \DeclareRobustCommand{\nddiss}{%
169 \textsf{{\scshape nd}diss\kern-0.03em%
170 2}$_\mathsf{\textstyle\varepsilon}$}
171 \def\@chapter[#1]#2{
172 \ifnum \c@secnumdepth >\m@ne
173 \if@mainmatter
174 \refstepcounter{chapter}%
175 \typeout{\@chapapp\space\thechapter.}%
176 \addcontentsline{toc}{chapter}%
177 {{\@chapapp\ \thechapter: #1}}%
178 \else
179 \addcontentsline{toc}{chapter}{#1}%
180 \fi
181 \else
182 \addcontentsline{toc}{chapter}{#1}%
183 \fi
184 \chaptermark{#1}%
185 \addtocontents{lof}{\protect\addvspace{10\p@}}%
186 \addtocontents{lot}{\protect\addvspace{10\p@}}%
187 \if@twocolumn
188 \@topnewpage[\@makechapterhead{#2}]%
189 \else
190 \@makechapterhead{#2}%
191 \@afterheading
192 \fi}
193
194 \renewcommand{\@makechapterhead}[1]{%
195 \vspace*{.625in}%
196 {\parindent \z@ \raggedright
197 \ifnum \c@secnumdepth >\m@ne
198 \normalfont\normalsize\mdseries\normalspacing%
199 \if@mainmatter
200 \ifcentered@chaptitle\center\else\relax\fi%
201 \@chapapp{} \thechapter\par\nobreak
202 \fi
203 \fi
204 \interlinepenalty\@M
205 \ifcentered@chaptitle\center\else\relax\fi%
206 \normalsize\mdseries{#1}\par\nobreak
207 \vskip 30\p@
208 }}
209 \renewcommand{\@makeschapterhead}[1]{%
210 \vspace*{.625in}%
211 {\parindent \z@ \raggedright
212 \interlinepenalty\@M
213 \ifcentered@chaptitle\center\else\relax\fi
214 \normalfont\normalsize\mdseries\normalspacing{#1}\par\nobreak
215 \vskip 30\p@}}
216 \renewcommand\section{\suppressfloats[t]%
217 \@startsection {section}{1}{\z@}%
218 {-4.2ex \@plus -1ex \@minus -.2ex}%
219 {1.8ex \@plus.2ex}%
220 {\normalfont\normalsize\mdseries} }
221 \renewcommand\subsection{\suppressfloats[t]%
222 \@startsection{subsection}{2}{\z@}%
223 {-3.9ex\@plus -1ex \@minus -.2ex}%
224 {1.2ex \@plus .2ex}%
225 {\normalfont\normalsize\mdseries} }
226 \renewcommand\subsubsection{\suppressfloats[t]%
227 \@startsection{subsubsection}{3}{\z@}%
228 {-3.9ex\@plus -1ex \@minus -.2ex}%
229 {1.2ex \@plus .2ex}%
230 {\normalfont\normalsize\mdseries} }
231 \renewcommand\paragraph{%
232 \@startsection{paragraph}{4}{\z@}%
233 {3.9ex \@plus1ex \@minus.2ex}%
234 {-1em}%
235 {\normalfont\normalsize\mdseries} }
236 \renewcommand\subparagraph{%
237 \@startsection{subparagraph}{5}{\parindent}%
238 {3.9ex \@plus1ex \@minus .2ex}%
239 {-1em}%
240 {\normalfont\normalsize\mdseries} }
241 \renewcommand*{\l@chapter}[2]{%
242 \addpenalty{-\@highpenalty}%
243 \setlength\@tempdima{1.5em}%
244 \begingroup \leavevmode
245 \@dottedtocline{1}{0pt}{\@tempdima}{#1}{#2}
246 \par
247 \penalty\@highpenalty
248 \endgroup
249 }
250 \renewcommand{\l@subsubsection}{%
251 \@dottedtocline{3}{3.8em}{4.1em}}
252 \addtocounter{secnumdepth}{1}
253 \addtocounter{tocdepth}{1}
254 \renewcommand{\thesubsubsection}{%
255 \thesubsection.\arabic{subsubsection}}
256 \newcommand{\work}[1]{\def\@work{#1}}
257 \newcommand{\degaward}[1]{\def\@degaward{#1}}
258 \newcommand{\degprior}[1]{\def\@degprior{#1}}
259 \newcommand{\advisor}[1]{\def\@advisor{#1}}
260 \ifadvisors@two
261 \newcommand{\secondadvisor}[1]{\def\@secondadvisor{#1}}
262 \fi
263 \newcommand{\department}[1]{\def\@department{#1}}
264 \newcommand{\degdate}[1]{\def\@degdate{#1}}
265 \degdate{\ifcase\month\or
266 January\or February\or March\or April\or May\or June\or
267 July\or August\or September\or October\or November\or December\fi
268 \space\number\year}
269 \title{}
270 \author{}
271 \work{}
272 \degaward{}
273 \degprior{}
274 \advisor{}
275 \ifadvisors@two \secondadvisor{} \fi
276 \department{}
277 \newcommand{\summarypage}{\thispagestyle{empty}
278 \begin{center}
279 \large This \@work\space \\ entitled \\ \@title \\
280 typeset with \nddiss\ v%
281 \dissfileversion\ (\dissfiledate) %
282 on \today\space for\\
283 \@author\\
284 \end{center}
285
286 \normalfont\normalsize\singlespacing
287
288 \noindent This \LaTeXe\xspace classfile conforms to the
289 University of Notre Dame style guidelines established in
290 Spring 2004. However it is still possible to generate a
291 non-conformant document if the published instructions are
292 not followed! Be sure to refer to the published Graduate
293 School guidelines at \url{http://graduateschool.nd.edu}
294 as well.\\
295
296 \noindent It is YOUR resposnsibility to ensure that the Chapter titles
297 and Table caption titles are put in CAPS LETTERS. This classfile does
298 {\em NOT\xspace} do that! This way, you have total control
299 over how you want the symbols and sub-/superscripts in titles
300 and captions look like.\\
301
302 \noindent\itshape This summary page can be disabled by
303 specifying the {\sffamily nosummary} option to the class invocation.
304 \upshape (i.e., {\ttfamily \textbackslash
305 documentclass[\ldots,nosummary,\ldots\/]\{nddiss2e\}})
306 \begin{center}
307 {\bfseries\large\singlespacing THIS PAGE IS \slshape NOT
308 \upshape PART OF THE THESIS, BUT MUST BE TURNED IN TO THE
309 PROOFREADER!}
310 \end{center}
311 \normalsize\normalfont
312 \nddiss\ documentation can be found at these locations:
313 \begin{center}
314 \url{http://www.gsu.nd.edu}\\
315 \url{http://graduateschool.nd.edu}
316 \end{center}
317
318 \vfill
319 \normalfont\normalsize\normalspacing\eject}
320 \renewcommand{\maketitle}{
321 \ifsummary@page\summarypage\else\relax\fi%
322 \clearemptydoublepage
323 \normalfont\normalsize\normalspacing
324 \begin{titlepage}%
325 \ifthenelse{\equal{\@work}{}}{\ClassError{nddiss2e}%
326 {The \protect\work\space macro is undefined.\MessageBreak
327 The title page may be incorrectly formatted.}%
328 {Specify \protect\work\space as Dissertation or Thesis}}{\relax}
329 \ifthenelse{\equal{\@degaward}{}}{\ClassError{nddiss2e}%
330 {The \protect\degaward\space macro is undefined.\MessageBreak
331 The title page may be incorrectly formatted.}%
332 {\protect\degaward\space defines the awarded degree%
333 (Ph.D., M.S., etc.)}}%
334 {\relax}
335 \ifthenelse{\equal{\@advisor}{}}{\ClassError{nddiss2e}%
336 {The \protect\advisor\space macro is undefined.\MessageBreak
337 The title page may be incorrectly formatted.}%
338 {\protect\advisor\space is who signs your walking papers!}}{\relax}
339 \ifthenelse{\equal{\@department}{}}{\ClassError{nddiss2e}%
340 {The \protect\department\space macro is undefined.\MessageBreak
341 The title page may be incorrectly formatted.}%
342 {What \protect\department\space is awarding your degree?}}{\relax}
343 \ifadvisors@two
344 \ifthenelse{\equal{\@secondadvisor}{}}{\ClassError{nddiss2e}%
345 {The \protect\secondadvisor\space macro is undefined.\MessageBreak
346 The title page may be incorrectly formatted.}%
347 {Use \protect\secondadvisor\space for your second advisor}}{\relax}
348 \fi
349 \skip1=1.2\double@skip
350 \skip2=1.7\double@skip
351 \skip3=2.7\double@skip
352 \skip4=1em
353 \ifadvisors@two \skip1=1.0\double@skip \skip4=1.5em \else\relax\fi
354 \setbox0=\hbox{\@title}
355 \ifdim \wd0 > 3\hsize
356 \advance\skip4 .5\double@skip
357 \advance\skip1 -.33\double@skip
358 \else
359 \ifdim \wd0 > 2\hsize
360 \advance\skip4 .5\double@skip
361 \advance\skip1 -.167\double@skip
362 \else
363 \ifdim \wd0 > \hsize
364 \advance\skip4 .5\double@skip
365 \fi
366 \fi
367 \fi
368 \setbox1=\vbox{\@degaward}
369 \ifdim \ht1 > \double@skip\relax
370 \else \advance\skip1 .167\double@skip \fi
371 \null\vspace*{-\skip4}
372 \begin{center}%
373 \@title \par%
374 \vfill%\vskip\skip1%
375 A \@work \par%
376 \vfill%\vskip\skip1%
377 Submitted to the Graduate School \\
378 of the University of Notre Dame \\
379 in Partial Fulfillment of the Requirements \\
380 for the Degree of \par
381 \vfill%
382 \@degaward%
383 \vfill%
384 by%
385 \vfill%
386 {\normalsize
387 \begin{tabular}[t]{c@{}l}%
388 \@author, &\ \@degprior
389 \end{tabular}\par}%
390 \ifadvisors@two\vskip\skip2\else \vskip\skip3\fi%
391 \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
392 \hspace*{2.75in}\@advisor, Director\\
393 \ifadvisors@two %
394 \vskip\double@skip%
395 \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
396 \hspace*{2.75in}\@secondadvisor, Director\\
397 \fi
398 \vfill%
399 Graduate Program in \@department \\%
400 Notre Dame, Indiana \\
401 \@degdate
402 \end{center}%\par
403 \end{titlepage}%
404 }
405 \newenvironment{copyrightpage}{%
406 \clearemptydoublepage
407 \typeout{Copyleft page}
408 \pagestyle{empty}
409 \null\vfil
410 \begin{center}\normalspacing}%
411 { \end{center}\vfil\null \clearpage }
412 \newcommand{\makecopyright}{%
413 \begin{copyrightpage}
414 \normalfont\normalsize
415 \copyright\space Copyright by \\
416 \@copyrightholder \\
417 \@copyrightyear\\
418 All Rights Reserved \\[10mm]
419 \end{copyrightpage}
420 }%
421
422 \newcommand{\@copyrightyear}{\year}
423 \newcommand{\@copyrightholder}{\@author}
424
425 \newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}
426 \newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
427
428 \newcommand{\makepublicdomain}{%
429 \begin{copyrightpage}
430 This document is in the public domain.
431 \end{copyrightpage}
432 }%
433 \renewcommand{\tablename}{TABLE}
434 \renewcommand{\figurename}{Figure}
435 \renewcommand{\chaptername}{CHAPTER}
436 \renewcommand{\appendixname}{APPENDIX}
437 \renewcommand{\contentsname}{CONTENTS}
438 \renewcommand{\listfigurename}{FIGURES}
439 \renewcommand{\listtablename}{TABLES}
440 \renewcommand{\bibname}{BIBLIOGRAPHY}
441 \renewcommand{\indexname}{INDEX}
442 \newcommand{\abstractname}{Abstract}
443 \newcommand{\dedicationname}{DEDICATION}
444 \newcommand{\prefacename}{PREFACE}
445 \newcommand{\acknowledgename}{ACKNOWLEDGMENTS}
446 \newcommand{\symbolsname}{SYMBOLS}
447 \newenvironment{abstract}{%
448 \ifpdf
449 \pdfbookmark[0]{\abstractname}{abstract}%abstract.0
450 \fi
451 \typeout{Abstract page(s)}
452 \renewcommand{\@oddfoot}{\@empty}
453 \renewcommand{\@evenfoot}{\@empty}
454 \addtolength{\topmargin}{.206in}
455 \let\@evenhead\@oddhead
456 \renewcommand{\@oddhead}{\hfil{\upshape\@author}}
457 \titlepage
458 \null
459 \begin{center}
460 \vspace*{.2525in}
461 {\normalsize\mdseries \normalspacing
462 \@title \\[3.5ex]
463 \normalsize\abstractname \\ by \\ \@author\space}%
464 \@endparpenalty \@M
465 \end{center}\par}%
466 {\par\vfil\null\endtitlepage}
467 %%
468 %% Dedication
469 %%
470 \newenvironment{dedication}{%
471 \global\diss@dedicationtrue
472 \typeout{Dedication page}
473 \ifpdf
474 \pdfbookmark[0]{\dedicationname}{dedication}%dedication.0
475 \fi
476 \chapter*{\dedicationname}%
477 \thispagestyle{plain}
478 \setcounter{page}{2}
479 \null\centering}
480 {\par\null\clearpage}%
481 %%
482 \renewcommand\tableofcontents{%
483 \ifdiss@dedication\relax\else\setcounter{page}{2}\fi
484 \chapter*{\contentsname}%
485 \ifpdf
486 \pdfbookmark[0]{\contentsname}{contents}%contents.0
487 \fi
488 \singlespacing
489 \@starttoc{toc}%
490 \normalspacing
491 }
492 \renewcommand\listoffigures{%
493 \if@twocolumn
494 \@restonecoltrue\onecolumn
495 \else
496 \@restonecolfalse
497 \fi
498 \chapter*{\listfigurename}%
499 \addcontentsline{toc}{chapter}{\listfigurename}%
500 \typeout{List of figures - \listfigurename}
501 \singlespacing
502 \@starttoc{lof}%
503 \normalspacing
504 \if@restonecol\twocolumn\fi
505 }
506 \renewcommand\listoftables{%
507 \if@twocolumn
508 \@restonecoltrue\onecolumn
509 \else
510 \@restonecolfalse
511 \fi
512 \chapter*{\listtablename}%
513 \addcontentsline{toc}{chapter}{\listtablename}%
514 \typeout{List of tables - \listtablename}
515 \singlespacing
516 \@starttoc{lot}%
517 \normalspacing
518 \if@restonecol\twocolumn\fi
519 }
520 %% Preface
521 \newenvironment{preface}{%
522 \typeout{Preface page}
523 \chapter*{\prefacename}
524 \addcontentsline{toc}{chapter}{\prefacename}%
525 }%
526 {\par\null\clearpage}%
527 %% Acknowledgements
528 \newenvironment{acknowledge}{%
529 \typeout{Acknowledgment page}
530 \chapter*{\acknowledgename}
531 \addcontentsline{toc}{chapter}{\acknowledgename}%
532 }%
533 {\par\null\clearpage}%
534 %% List of Symbols
535 \newcommand{\sym}[2]{\ensuremath{#1} & #2 \\}
536 \newenvironment{symbols}[1][rl]{%
537 \typeout{Symbols page}
538 \chapter*{\symbolsname}%
539 \addcontentsline{toc}{chapter}{\symbolsname}%
540 \begin{center}\begin{longtable}{#1}}%
541 {\end{longtable}\end{center}\par\null}
542 \renewenvironment{quote}
543 {\list{}{\rightmargin\leftmargin}%
544 \singlespacing
545 \item\relax}
546 {\endlist}
547 \setlength{\floatsep}{30pt}
548 \setlength{\intextsep}{50pt}
549 \setlength\abovecaptionskip{20\p@}
550 %%was originally 10pt, leave below at 0pt
551 \newlength\capwidth
552 \setlength{\capwidth}{0.95\textwidth}
553 \newlength\abovetableskip
554 \newlength\belowtableskip
555 \newlength\abovefigureskip
556 \newlength\belowfigureskip
557 \setlength\abovetableskip\belowcaptionskip
558 \setlength\belowtableskip\abovecaptionskip
559 \setlength\abovefigureskip\abovecaptionskip
560 \setlength\belowfigureskip\belowcaptionskip
561 \renewenvironment{table}{%
562 \setlength{\abovecaptionskip}{\abovetableskip}
563 \setlength{\belowcaptionskip}{\belowtableskip}
564 \renewcommand{\arraystretch}{\double@baselinestretch}
565 \let\@makecaption\@maketablecaption
566 \@float{table}}%
567 {%
568 \addtocontents{lot}{ {\vskip 0.4em} }%
569 \end@float%
570 \setlength{\capwidth}{0.9\textwidth}%
571 }
572 \renewenvironment{figure}{%
573 \setlength{\abovecaptionskip}{\abovefigureskip}
574 \setlength{\belowcaptionskip}{\belowfigureskip}
575 \let\@makecaption\@makefigurecaption
576 \@float{figure}}%
577 {%
578 \addtocontents{lof}{ {\vskip 0.4em} }%
579 \end@float%
580 \setlength{\capwidth}{0.9\textwidth}%
581 }
582 \long\def\@maketablecaption#1#2{
583 \vskip\abovecaptionskip
584 \begin{center}
585 \parbox{\capwidth}{
586 \centering
587 \normalspacing
588 {#1}\\
589 {#2}%\par
590 \vskip\belowcaptionskip }%
591 \end{center}
592 }
593 \long\def\@makefigurecaption#1#2{%
594 \vskip\abovecaptionskip
595 \begin{center}
596 \parbox{\capwidth}{
597 \centering
598 {#1}. {#2}%\par
599 \vskip\belowcaptionskip }%
600 \end{center}
601 }%
602
603 \renewcommand\longtable{%
604 \par
605 \ifx\multicols\@undefined
606 \else
607 \ifnum\col@number>\@ne
608 \@twocolumntrue
609 \fi
610 \fi
611 \if@twocolumn
612 \LT@err{longtable not in 1-column mode}\@ehc
613 \fi
614 \singlespacing
615 \renewcommand{\arraystretch}{\double@baselinestretch}
616 \begingroup
617 \@ifnextchar[\LT@array{\LT@array[x]}}
618
619 %%
620 \renewcommand\endlongtable{%
621 \crcr
622 \noalign{%
623 \let\LT@entry\LT@entry@chop
624 \xdef\LT@save@row{\LT@save@row}}%
625 \LT@echunk
626 \LT@start
627 \unvbox\z@
628 \LT@get@widths
629 \if@filesw
630 {\let\LT@entry\LT@entry@write\immediate\write\@auxout{%
631 \gdef\expandafter\noexpand
632 \csname LT@\romannumeral\c@LT@tables\endcsname
633 {\LT@save@row}}}%
634 \fi
635 \ifx\LT@save@row\LT@@save@row
636 \else
637 \LT@warn{Column \@width s have changed\MessageBreak
638 in table \thetable}%
639 \LT@final@warn
640 \fi
641 \endgraf\penalty -\LT@end@pen
642 \endgroup
643 \global\@mparbottom\z@
644 \pagegoal\vsize
645 \endgraf\penalty\z@\addvspace\LTpost
646 \ifvoid\footins\else\insert\footins{}\fi
647 }
648
649 \LTcapwidth=\textwidth
650 \renewcommand\LT@makecaption[3]{%
651 \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
652 \vskip\abovetableskip%
653 \centering
654 \normalspacing
655 #1{#2 }\\
656 {#3}\par%\vskip\parskip%
657 \endgraf\vskip\belowtableskip}%
658 \hss}}}
659 \setlength{\hoffset}{0pt}
660 \setlength{\voffset}{0pt}
661 \addtolength{\topmargin}{-32pt}
662 \setlength{\headsep}{9pt}
663 \setlength{\marginparwidth}{54pt}
664 \setlength{\marginparsep}{0pt}
665 \addtolength{\textheight}{63pt}
666 \addtolength{\textwidth}{26pt}
667 \setlength{\oddsidemargin}{36pt}
668 \setlength{\evensidemargin}{18pt}
669 \setlength{\footskip}{36pt}
670 %% URLs
671 \expandafter\ifx\csname url\endcsname\relax%
672 \newcommand{\url}[1]{\texttt{#1}}\fi
673 \expandafter\ifx\csname urlprefix\endcsname\relax%
674 \newcommand{\urlprefix}{URL: }\fi
675 %%
676 \newcommand\timenow{%
677 \@tempcnta=\time \divide\@tempcnta by 60 \number\@tempcnta:\multiply
678 \@tempcnta by 60 \@tempcntb=\time \advance\@tempcntb by -\@tempcnta
679 \ifnum\@tempcntb <10 0\number\@tempcntb\else\number\@tempcntb\fi}
680
681 \def\RCS$#1: #2 ${\expandafter\def\csname RCS#1\endcsname{#2}}
682
683 \newcommand\draftheader{%
684 Draft of \today\/ at \timenow\/}%
685
686 \ifdiss@final
687 \renewcommand{\ps@plain}{
688 \renewcommand{\@oddhead}{\@empty}
689 \renewcommand{\@oddfoot}{\hfil\thepage\hfil}
690 \let\@evenhead\@oddhead
691 \let\@evenfoot\@oddfoot
692 }%
693 \renewcommand{\ps@headings}{
694 \renewcommand{\@oddhead}{\@empty}
695 }%
696 \else
697 \renewcommand{\ps@plain}{
698 \renewcommand{\@oddhead}{\centering
699 \framebox[\textwidth]{\centering\footnotesize\tt%
700 \ifdiss@review~{\bf REVIEW}~\fi\draftheader}}%
701 \renewcommand{\@oddfoot}{\hfil\textrm{\thepage}\hfil}
702 \let\@evenhead\@oddhead
703 \let\@evenfoot\@oddfoot
704 }%
705 \renewcommand{\ps@headings}{
706 \renewcommand{\@oddhead}{\hfill\framebox{\footnotesize\tt%
707 ~\em\draftheader}\hfil}%
708 \renewcommand{\@oddfoot}{\hfil\thepage\hfil}
709 \let\@evenhead\@oddhead
710 \let\@evenfoot\@oddfoot
711 }%
712 \fi
713 %% bibliography
714 \ifpdf
715 \RequirePackage[square,numbers,comma,sort&compress]{natbib}
716 \RequirePackage{hypernat}
717 \else
718 \RequirePackage[square,numbers,comma,sort&compress]{natbib}
719 \fi
720 %%
721 \renewcommand\bibsection{
722 \chapter*{\bibname}%
723 \addcontentsline{toc}{chapter}{\bibname}%
724 \@mkboth{\MakeUppercase{\bibname}}{\MakeUppercase{\bibname}}
725 }%
726 \newcommand{\bibfont}{\singlespacing}
727 \renewcommand{\@biblabel}[1]{\hfill#1.\hfill}
728 %%
729 \AtBeginDocument{
730 \pagestyle{plain}
731 \normalspacing
732 \typeout{Pagestyle and spacing normal}
733 }
734 \ifdiss@final
735 \AtEndDocument{
736 \vfill
737 \centering\singlespacing
738 \framebox[0.85\textwidth]{
739 \begin{minipage}{0.80\textwidth}\footnotesize%
740 \centering \itshape This document was prepared \& typeset with
741 \upshape\ifpdf pdf\LaTeX\else\LaTeXe\fi\itshape , and
742 formatted with \upshape\nddiss\xspace\itshape classfile
743 (v\dissfileversion [\dissfiledate]) provided by Sameer Vijay.
744 \end{minipage} }
745 \clearpage}
746 \else\relax\fi
747
748 %%
749 %%
750 \endinput
751 %%
752 %% End of file `nddiss2e.cls'.