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