ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/chuckDissertation/nddiss2e.cls
(Generate patch)

Comparing trunk/chuckDissertation/nddiss2e.cls (file contents):
Revision 3483 by chuckv, Tue Jan 13 14:39:50 2009 UTC vs.
Revision 3496 by chuckv, Wed Apr 8 19:13:41 2009 UTC

# Line 8 | Line 8
8   %%
9   %% This is a generated file.
10   %%
11 < %%  Copyright (C) 2004 Sameer Vijay
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 %%
17   %%     http://www.latex-project.org/lppl.txt
18   %%
20 %%  and version 1.2 or later is part of all distributions of
21 %%  LaTeX version 1999/12/01 or later.
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 2003-2004.
24 > %% published in Spring 2004.
25   %%
26   %% Please send any improvements/suggestions to :
27   %%     Shari Hill, Graduate Reviewer.
# Line 35 | Line 32
32   %%
33   %% ==============================================================
34   %%
35 < %%
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}
35 > \NeedsTeXFormat{LaTeX2e}[1999/12/01]
36   \ProvidesClass{nddiss2e}
37 <    [\dissfiledate\space v\dissfileversion\space ^^J%
38 <      Notre Dame Dissertation document class by Sameer Vijay^^J]
39 < \newif\ifpdf
40 < \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
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\ifsummary@page           \summary@pagetrue
44 > \newif\ifinfo@page              \info@pagetrue
45   \newif\ifadvisors@two           \advisors@twofalse
46   \newif\ifdiss@dedication        \diss@dedicationfalse
47 < \DeclareOption{draft}{\setlength\overfullrule{5pt}
48 <    \typeout{DRAFT MODE}\typeout{}\diss@drafttrue\summary@pagefalse%
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}{\typeout{REVIEW MODE}\typeout{}%
55 <    \diss@reviewtrue\summary@pagetrue
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 < \if@compatibility\else
59 < \DeclareOption{final}{\setlength\overfullrule{0pt}
60 <    \typeout{FINAL MODE}\typeout{}\diss@finaltrue\summary@pagetrue%
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 < \fi
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 <  \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 <   }%
69 >   \PassOptionsToPackage{openbib}{natbib}
70   }
71   \DeclareOption{twoadvisors}{\typeout{TWO ADVISORS}\typeout{}%
72      \advisors@twotrue}
# Line 109 | Line 88
88      {Font size 11pt not allowed; using 12pt}%
89   \fi
90   }
91 < \DeclareOption{nosummary}{\summary@pagefalse}
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}%
# Line 117 | Line 99
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@draft
127 <    \RequirePackage{showkeys}
128 < \fi
109 > \ifdiss@final\relax\else\RequirePackage{showkeys}\fi
110   \ifpdf
111    \RequirePackage[pdftex]{epsfig}
112    \RequirePackage[pdftex]{color}
# Line 135 | Line 116
116              bookmarks=true,%
117              bookmarksnumbered=true,%
118              linktocpage=true,%
119 +                        linkbordercolor={1 1 1},%
120 +                        citebordercolor={1 1 1},%
121              breaklinks=true,%
122              bookmarkstype=toc,%
123              colorlinks=false,%
# Line 147 | Line 130
130    \RequirePackage[dvips]{color}
131    \RequirePackage[dvips]{graphicx}
132   \fi
133 + \ifnum@refs
134 +  \RequirePackage[numbers,sort&compress]{natbib}
135 + \else
136 +  \RequirePackage[authoryear,sort]{natbib}
137 + \fi
138 + \ifpdf
139 +    \RequirePackage{hypernat}
140 + \fi
141   \AtBeginDocument{
142   \RequirePackage{amsmath,amssymb}
143   \RequirePackage{float}
144   \RequirePackage{lscape}
145   \RequirePackage{booktabs}
146   \RequirePackage{rotating}
147 < \RequirePackage[doublespacing]{setspace}
147 > \RequirePackage{url}
148 > \RequirePackage[doublespacing]{setspace}[2000/12/01]
149   }
150 <
150 > \AtBeginDocument{
151 > \pagestyle{plain}
152 > \normalspacing
153 > \typeout{Pagestyle and spacing normal}
154 > }
155   \newcommand{\normalspacing}{\doublespacing}
156   \newcommand\single@baselinestretch{1.0}
157 < \newcommand\double@baselinestretch{1.66}
157 > %\newcommand\double@baselinestretch{1.66}
158 > \newcommand\double@baselinestretch{2.0}
159   \newlength{\single@skip}
160   \setlength{\single@skip}{\single@baselinestretch em}
161   \newlength{\double@skip}
162   \setlength{\double@skip}{\double@baselinestretch em}
163 + \setlength{\hoffset}{0pt}
164 + \setlength{\voffset}{0pt}
165 + \addtolength{\topmargin}{-32pt}
166 + \setlength{\headsep}{12pt}
167 + \setlength{\marginparwidth}{54pt}
168 + \setlength{\marginparsep}{0pt}
169 + \addtolength{\textheight}{63pt}
170 + \addtolength{\textwidth}{26pt}
171 + \setlength{\oddsidemargin}{36pt}
172 + \setlength{\evensidemargin}{18pt}
173 + \setlength{\footskip}{36pt}
174 + \setlength{\floatsep}{30pt}
175 + \setlength{\intextsep}{50pt}
176   \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}%
177      \cleardoublepage}}
178   \DeclareRobustCommand{\nddiss}{%
179 <        \textsf{{\scshape nd}diss\kern-0.03em%
180 <        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}}
179 >        \textsf{{\scshape nd}diss}\kern-0.03em%
180 >        2$_\mathsf{\textstyle\varepsilon}$}
181   \newcommand{\work}[1]{\def\@work{#1}}
182   \newcommand{\degaward}[1]{\def\@degaward{#1}}
183   \newcommand{\degprior}[1]{\def\@degprior{#1}}
# Line 274 | Line 199
199    \advisor{}
200    \ifadvisors@two \secondadvisor{} \fi
201    \department{}
202 < \newcommand{\summarypage}{\thispagestyle{empty}
202 > \DeclareRobustCommand{\@infopage}{
203 >  \thispagestyle{empty}
204 >  \null\vspace*{\single@skip}
205    \begin{center}
206    \large This \@work\space \\ entitled \\ \@title \\
207          typeset with \nddiss\ v%
# Line 285 | Line 212
212  
213     \normalfont\normalsize\singlespacing
214  
215 <   \noindent This \LaTeXe\xspace classfile conforms to the
215 >   \noindent This \LaTeXe\space classfile conforms to the
216     University of Notre Dame style guidelines established in
217     Spring  2004. However it is still possible to generate a
218 <   non-conformant document if the published instructions are
219 <   not followed! Be sure to refer to the published Graduate
218 >   non-conformant document if the instructions in the class
219 >   file documentation are not followed!
220 >
221 >   \begin{center}
222 >   \begin{minipage}{0.75\textwidth}
223 >   \noindent Be sure to refer to the published Graduate
224     School guidelines at \url{http://graduateschool.nd.edu}
225 <   as well.\\
225 >   as well. Those guidelines override everything mentioned
226 >   about formatting in the documentation for
227 >   this \nddiss\space class file.
228 >   \end{minipage}
229 >   \end{center}
230  
231 <   \noindent It is YOUR resposnsibility to ensure that the Chapter titles
231 >   \noindent It is YOUR responsibility to ensure that the Chapter titles
232     and Table caption titles are put in CAPS LETTERS. This classfile does
233 <   {\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.\\
233 >   {\em NOT\space} do that! \\
234  
235 <  \noindent\itshape This summary page can be disabled by
236 <  specifying the {\sffamily nosummary} option to the class invocation.
237 <  \upshape (i.e., {\ttfamily \textbackslash
238 <  documentclass[\ldots,nosummary,\ldots\/]\{nddiss2e\}})
235 >  \noindent\itshape This page can be disabled by
236 >  specifying the ``{\upshape\ttfamily noinfo}'' option to the class invocation.
237 >  \upshape
238 > (i.e.,{\ttfamily{\textbackslash}documentclass[\ldots,noinfo]\{nddiss2e\}}
239 > )
240    \begin{center}
241 <        {\bfseries\large\singlespacing THIS PAGE IS \slshape NOT
242 <        \upshape PART OF THE THESIS, BUT MUST BE TURNED IN TO THE
243 <        PROOFREADER!}
241 >    {\bfseries\large\singlespacing This page is \slshape NOT
242 >    \upshape part of the dissertation/thesis, but MUST be turned in to the
243 >    proofreader(s) or the reviwer(s)!}
244    \end{center}
245 <        \normalsize\normalfont
246 <                \nddiss\ documentation can be found at these locations:
245 >    \normalsize\normalfont
246 >    \nddiss\ documentation can be found at these locations:
247    \begin{center}
248 <                \url{http://www.gsu.nd.edu}\\
249 <                \url{http://graduateschool.nd.edu}
248 >    \url{http://www.gsu.nd.edu}\\
249 >    \url{http://graduateschool.nd.edu}
250    \end{center}
251  
252   \vfill
253   \normalfont\normalsize\normalspacing\eject}
254   \renewcommand{\maketitle}{
255 <  \ifsummary@page\summarypage\else\relax\fi%
255 >  \ifinfo@page\@infopage\else\relax\fi%
256    \clearemptydoublepage
257    \normalfont\normalsize\normalspacing
258    \begin{titlepage}%
# Line 329 | Line 263
263   \ifthenelse{\equal{\@degaward}{}}{\ClassError{nddiss2e}%
264    {The \protect\degaward\space macro is undefined.\MessageBreak
265          The title page may be incorrectly formatted.}%
266 <  {\protect\degaward\space defines the awarded degree%
267 <         (Ph.D., M.S., etc.)}}%
334 < {\relax}
266 >  {Specify \protect\degaward\space. It defines the awarded degree%
267 >         (Ph.D., M.S., etc.)}}{\relax}
268   \ifthenelse{\equal{\@advisor}{}}{\ClassError{nddiss2e}%
269    {The \protect\advisor\space macro is undefined.\MessageBreak
270          The title page may be incorrectly formatted.}%
271 <  {\protect\advisor\space is who signs your walking papers!}}{\relax}
271 >  {Spepcify \protect\advisor\space It is who signs your walking papers!}}{\relax}
272   \ifthenelse{\equal{\@department}{}}{\ClassError{nddiss2e}%
273    {The \protect\department\space macro is undefined.\MessageBreak
274          The title page may be incorrectly formatted.}%
275 <  {What \protect\department\space is awarding your degree?}}{\relax}
275 >  {Specify which \protect\department\space is awarding your degree?}}{\relax}
276   \ifadvisors@two
277    \ifthenelse{\equal{\@secondadvisor}{}}{\ClassError{nddiss2e}%
278    {The \protect\secondadvisor\space macro is undefined.\MessageBreak
# Line 368 | Line 301
301   \setbox1=\vbox{\@degaward}
302   \ifdim \ht1 > \double@skip\relax
303     \else \advance\skip1 .167\double@skip \fi
304 < \null\vspace*{-\skip4}
304 >  \null\vspace*{-\skip4}
305    \begin{center}%
306      \@title \par%
307 <    \vfill%\vskip\skip1%
307 >    \vskip\skip1%
308      A \@work \par%
309 <    \vfill%\vskip\skip1%
309 >    \vskip\skip1%
310        Submitted to the Graduate School \\
311            of the University of Notre Dame \\
312            in Partial Fulfillment of the Requirements \\
313            for the Degree of \par
314 <        \vfill%
314 >        \vskip\skip1%
315          \@degaward%
316 <        \vfill%
316 >        \vskip\skip1%
317          by%
318 <        \vfill%
318 >        \vskip\skip1%
319      {\normalsize
320        \begin{tabular}[t]{c@{}l}%
321 <        \@author, &\ \@degprior
322 <      \end{tabular}\par}%
323 < \ifadvisors@two\vskip\skip2\else \vskip\skip3\fi%
321 >        \@author
322 >      \end{tabular}\par }%
323 >     \ifadvisors@two
324 >        \vskip\skip2\else
325 >        \vskip\skip3\fi%
326          \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
327          \hspace*{2.75in}\@advisor, Director\\
328   \ifadvisors@two %
# Line 395 | Line 330
330          \hspace*{2.75in}\underline{\hspace{2.75in}}\\%
331          \hspace*{2.75in}\@secondadvisor, Director\\
332   \fi
333 <  \vfill%
333 >  \vskip\skip1%
334    Graduate Program in \@department \\%
335    Notre Dame, Indiana \\
336    \@degdate
337 <  \end{center}%\par
337 >  \end{center}
338    \end{titlepage}%
339   }
340   \newenvironment{copyrightpage}{%
# Line 409 | Line 344
344    \null\vfil
345    \begin{center}\normalspacing}%
346   { \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
347   \newcommand{\@copyrightyear}{\year}
348   \newcommand{\@copyrightholder}{\@author}
424
349   \newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}
350   \newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
351 <
352 < \newcommand{\makepublicdomain}{%
353 <  \begin{copyrightpage}
354 <   This document is in the public domain.
355 <  \end{copyrightpage}
351 > \newcommand{\makecopyright}{%
352 >  \ifdiss@final
353 >    \begin{copyrightpage}
354 >    \normalfont\normalsize
355 >    \copyright\space Copyright by \\
356 >    \@copyrightholder \\
357 >    \@copyrightyear\\
358 >    All Rights Reserved \\[10mm]
359 >    \end{copyrightpage}
360 >  \fi
361   }%
362 + \newcommand{\makepublicdomain}{%
363 +  \ifdiss@final
364 +    \begin{copyrightpage}
365 +       This document is in the public domain.
366 +    \end{copyrightpage}
367 +  \fi
368 + }%
369 + \providecommand{\abstractname}{Abstract}
370 + \providecommand{\dedicationname}{\mbox{}}
371 + \providecommand{\prefacename}{PREFACE}
372 + \providecommand{\acknowledgename}{ACKNOWLEDGMENTS}
373 + \providecommand{\symbolsname}{SYMBOLS}
374   \renewcommand{\tablename}{TABLE}
375   \renewcommand{\figurename}{Figure}
376   \renewcommand{\chaptername}{CHAPTER}
# Line 439 | Line 380
380   \renewcommand{\listtablename}{TABLES}
381   \renewcommand{\bibname}{BIBLIOGRAPHY}
382   \renewcommand{\indexname}{INDEX}
442 \newcommand{\abstractname}{Abstract}
443 \newcommand{\dedicationname}{DEDICATION}
444 \newcommand{\prefacename}{PREFACE}
445 \newcommand{\acknowledgename}{ACKNOWLEDGMENTS}
446 \newcommand{\symbolsname}{SYMBOLS}
383   \newenvironment{abstract}{%
384    \ifpdf
385       \pdfbookmark[0]{\abstractname}{abstract}%abstract.0
# Line 451 | Line 387
387    \typeout{Abstract page(s)}
388    \renewcommand{\@oddfoot}{\@empty}
389    \renewcommand{\@evenfoot}{\@empty}
454  \addtolength{\topmargin}{.206in}
390    \let\@evenhead\@oddhead
391    \renewcommand{\@oddhead}{\hfil{\upshape\@author}}
392    \titlepage
393    \null
394    \begin{center}
395 <  \vspace*{.2525in}
395 >  \vspace*{0.25in}
396    {\normalsize\mdseries \normalspacing
397       \@title \\[3.5ex]
398       \normalsize\abstractname \\ by \\ \@author\space}%
399     \@endparpenalty \@M
400     \end{center}\par}%
401   {\par\vfil\null\endtitlepage}
467 %%
468 %% Dedication
469 %%
402   \newenvironment{dedication}{%
403    \global\diss@dedicationtrue
404    \typeout{Dedication page}
# Line 478 | Line 410
410    \setcounter{page}{2}
411    \null\centering}
412   {\par\null\clearpage}%
481 %%
413   \renewcommand\tableofcontents{%
414    \ifdiss@dedication\relax\else\setcounter{page}{2}\fi
415    \chapter*{\contentsname}%
# Line 490 | Line 421
421    \normalspacing
422    }
423   \renewcommand\listoffigures{%
493    \if@twocolumn
494      \@restonecoltrue\onecolumn
495    \else
496      \@restonecolfalse
497    \fi
424      \chapter*{\listfigurename}%
425      \addcontentsline{toc}{chapter}{\listfigurename}%
426      \typeout{List of figures - \listfigurename}
427      \singlespacing
428      \@starttoc{lof}%
429      \normalspacing
504    \if@restonecol\twocolumn\fi
430   }
431   \renewcommand\listoftables{%
507    \if@twocolumn
508      \@restonecoltrue\onecolumn
509    \else
510      \@restonecolfalse
511    \fi
432      \chapter*{\listtablename}%
433      \addcontentsline{toc}{chapter}{\listtablename}%
434      \typeout{List of tables - \listtablename}
435      \singlespacing
436      \@starttoc{lot}%
437      \normalspacing
518    \if@restonecol\twocolumn\fi
438   }
520 %% Preface
439   \newenvironment{preface}{%
440    \typeout{Preface page}
441    \chapter*{\prefacename}
442    \addcontentsline{toc}{chapter}{\prefacename}%
443   }%
444   {\par\null\clearpage}%
527 %% Acknowledgements
445   \newenvironment{acknowledge}{%
446    \typeout{Acknowledgment page}
447    \chapter*{\acknowledgename}
448    \addcontentsline{toc}{chapter}{\acknowledgename}%
449   }%
450   {\par\null\clearpage}%
534 %% List of Symbols
451   \newcommand{\sym}[2]{\ensuremath{#1} & #2 \\}
452   \newenvironment{symbols}[1][rl]{%
453    \typeout{Symbols page}
# Line 539 | Line 455
455    \addcontentsline{toc}{chapter}{\symbolsname}%
456    \begin{center}\begin{longtable}{#1}}%
457   {\end{longtable}\end{center}\par\null}
458 + \def\@chapter[#1]#2{
459 +  \ifnum \c@secnumdepth >\m@ne
460 +  \if@mainmatter
461 +    \refstepcounter{chapter}%
462 +    \typeout{\@chapapp\space\thechapter.}%
463 +    \addcontentsline{toc}{chapter}%
464 +      {{\@chapapp\ \thechapter: #1}}%
465 +    \else
466 +      \addcontentsline{toc}{chapter}{#1}%
467 +    \fi
468 +  \else
469 +     \addcontentsline{toc}{chapter}{#1}%
470 +  \fi
471 +  \chaptermark{#1}%
472 +  \addtocontents{lof}{\protect\addvspace{10\p@}}%
473 +  \addtocontents{lot}{\protect\addvspace{10\p@}}%
474 +  \@makechapterhead{#2}%
475 +  \@afterheading }%
476 + \renewcommand{\@makechapterhead}[1]{%
477 +  \vspace*{.625in}%
478 +  {\parindent \z@ \raggedright
479 +    \ifnum \c@secnumdepth >\m@ne
480 +      \normalfont\normalsize%
481 +      \if@mainmatter
482 +        \ifcentered@chaptitle\center\else\relax\fi%
483 +        \@chapapp{} \thechapter\par\nobreak
484 +      \fi
485 +    \fi
486 +    \interlinepenalty\@M
487 +    \ifcentered@chaptitle\center\else\relax\fi%
488 +    \mdseries{#1}\par\nobreak
489 +    \vskip 30\p@
490 +  }}
491 + \renewcommand{\@makeschapterhead}[1]{%
492 +  \vspace*{.625in}%
493 +  {\parindent \z@ \raggedright
494 +     \normalfont\normalsize%
495 +     \interlinepenalty\@M
496 +     \ifcentered@chaptitle\center\else\relax\fi
497 +     \mdseries{#1}\par\nobreak
498 +     \vskip 30\p@
499 +  }}
500 + \renewcommand\section{\suppressfloats[t]%
501 +    \@startsection {section}{1}{\z@}%
502 +    {-4.2ex \@plus -1ex \@minus -.2ex}%
503 +    {1.8ex \@plus.2ex}%
504 +    {\normalfont\normalsize\mdseries} }
505 + \renewcommand\subsection{\suppressfloats[t]%
506 +    \@startsection{subsection}{2}{\z@}%
507 +    {-3.9ex\@plus -1ex \@minus -.2ex}%
508 +    {1.2ex \@plus .2ex}%
509 +    {\normalfont\normalsize\mdseries} }
510 + \renewcommand\subsubsection{\suppressfloats[t]%
511 +    \@startsection{subsubsection}{3}{\z@}%
512 +    {-3.9ex\@plus -1ex \@minus -.2ex}%
513 +    {1.2ex \@plus .2ex}%
514 +    {\normalfont\normalsize\mdseries} }
515 + \renewcommand\paragraph{%
516 +    \@startsection{paragraph}{4}{\z@}%
517 +    {3.9ex \@plus1ex \@minus.2ex}%
518 +    {-1em}%
519 +    {\normalfont\normalsize\mdseries} }
520 + \renewcommand\subparagraph{%
521 +    \@startsection{subparagraph}{5}{\parindent}%
522 +    {3.9ex \@plus1ex \@minus .2ex}%
523 +    {-1em}%
524 +    {\normalfont\normalsize\mdseries} }
525 + \renewcommand*{\l@chapter}[2]{%
526 +  \addpenalty{-\@highpenalty}%
527 +  \setlength\@tempdima{1.5em}%
528 +  \begingroup \leavevmode
529 +  \@dottedtocline{1}{0pt}{\@tempdima}{#1}{#2}
530 +  \par
531 +  \penalty\@highpenalty
532 +  \endgroup
533 + }
534 + \renewcommand{\l@subsubsection}{%
535 +   \@dottedtocline{3}{3.8em}{4.1em}}
536 + \addtocounter{secnumdepth}{1}
537 + \addtocounter{tocdepth}{1}
538 + \renewcommand{\thesubsubsection}{%
539 +   \thesubsection.\arabic{subsubsection}}
540   \renewenvironment{quote}
541                 {\list{}{\rightmargin\leftmargin}%
542                   \singlespacing
543                 \item\relax}
544                 {\endlist}
547 \setlength{\floatsep}{30pt}
548 \setlength{\intextsep}{50pt}
545   \setlength\abovecaptionskip{20\p@}
550 %%was originally 10pt, leave below at 0pt
546   \newlength\capwidth
547 < \setlength{\capwidth}{0.95\textwidth}
547 > \setlength{\capwidth}{0.90\textwidth}
548   \newlength\abovetableskip
549   \newlength\belowtableskip
550   \newlength\abovefigureskip
# Line 558 | Line 553
553   \setlength\belowtableskip\abovecaptionskip
554   \setlength\abovefigureskip\abovecaptionskip
555   \setlength\belowfigureskip\belowcaptionskip
556 + \renewenvironment{figure}{%
557 +   \setlength{\abovecaptionskip}{\abovefigureskip}
558 +   \setlength{\belowcaptionskip}{\belowfigureskip}
559 +   \let\@makecaption\@makefigurecaption
560 +   \@float{figure}}%
561 +   {%
562 +   \addtocontents{lof}{ {\vskip 0.4em} }%
563 +   \end@float%
564 + }
565 + \long\def\@makefigurecaption#1#2{%
566 +  \vskip\abovecaptionskip
567 +  \begin{center}
568 +  \parbox{\capwidth}{
569 +    \centering\singlespacing
570 +    {#1}. {#2}%\par
571 +  \vskip\belowcaptionskip\normalspacing }%
572 +  \end{center}
573 + }%
574   \renewenvironment{table}{%
575     \setlength{\abovecaptionskip}{\abovetableskip}
576     \setlength{\belowcaptionskip}{\belowtableskip}
577 +   \singlespacing
578     \renewcommand{\arraystretch}{\double@baselinestretch}
579     \let\@makecaption\@maketablecaption
580     \@float{table}}%
581     {%
582     \addtocontents{lot}{ {\vskip 0.4em} }%
583     \end@float%
570   \setlength{\capwidth}{0.9\textwidth}%
584   }
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 }
585   \long\def\@maketablecaption#1#2{
586    \vskip\abovecaptionskip
587    \begin{center}
588      \parbox{\capwidth}{
589 <    \centering
590 <    \normalspacing
588 <    {#1}\\
589 >    \centering\normalspacing
590 >    {#1}\\[\single@skip]
591      {#2}%\par
592    \vskip\belowcaptionskip }%
593    \end{center}
594   }
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
595   \renewcommand\longtable{%
596 <  \par
597 <  \ifx\multicols\@undefined
598 <  \else
599 <     \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 < %%
596 >   \singlespacing
597 >   \renewcommand{\arraystretch}{\double@baselinestretch}
598 >   \begingroup
599 >   \@ifnextchar[\LT@array{\LT@array[x]}}
600   \renewcommand\endlongtable{%
601    \crcr
602    \noalign{%
# Line 639 | Line 619
619      \LT@final@warn
620    \fi
621    \endgraf\penalty -\LT@end@pen
622 +  \addtocontents{lot}{ {\vskip 0.4em} }%
623    \endgroup
624    \global\@mparbottom\z@
625    \pagegoal\vsize
626    \endgraf\penalty\z@\addvspace\LTpost
627    \ifvoid\footins\else\insert\footins{}\fi
628   }
629 <
649 < \LTcapwidth=\textwidth
629 > \setlength{\LTcapwidth}{\capwidth}
630   \renewcommand\LT@makecaption[3]{%
631    \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
632    \vskip\abovetableskip%
633 <    \centering
634 <    \normalspacing
635 <    #1{#2 }\\
656 <    {#3}\par%\vskip\parskip%
633 >    \centering\normalspacing
634 >    #1{#2 }\\[\single@skip]
635 >    {#3}\par
636    \endgraf\vskip\belowtableskip}%
637    \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 %%
638   \newcommand\timenow{%
639    \@tempcnta=\time \divide\@tempcnta by 60 \number\@tempcnta:\multiply
640    \@tempcnta by 60 \@tempcntb=\time \advance\@tempcntb by -\@tempcnta
641    \ifnum\@tempcntb <10 0\number\@tempcntb\else\number\@tempcntb\fi}
642 <
643 < \def\RCS$#1: #2 ${\expandafter\def\csname RCS#1\endcsname{#2}}
644 <
683 < \newcommand\draftheader{%
684 <    Draft of \today\/ at \timenow\/}%
685 <
642 > \newcommand{\diss@header}{%
643 >    \ifdiss@review Review \else Draft \fi document [\today\/ at \timenow\/]
644 >    }%
645   \ifdiss@final
646      \renewcommand{\ps@plain}{
647          \renewcommand{\@oddhead}{\@empty}
# Line 690 | Line 649
649          \let\@evenhead\@oddhead
650          \let\@evenfoot\@oddfoot
651      }%
693    \renewcommand{\ps@headings}{
694        \renewcommand{\@oddhead}{\@empty}
695    }%
652   \else
653      \renewcommand{\ps@plain}{
654 <        \renewcommand{\@oddhead}{\centering
655 <           \framebox[\textwidth]{\centering\footnotesize\tt%
700 <           \ifdiss@review~{\bf REVIEW}~\fi\draftheader}}%
654 >        \renewcommand{\@oddhead}{\framebox[\textwidth]{
655 >           \centering\footnotesize\tt\diss@header}}%
656          \renewcommand{\@oddfoot}{\hfil\textrm{\thepage}\hfil}
657          \let\@evenhead\@oddhead
658          \let\@evenfoot\@oddfoot
659      }%
660 <    \renewcommand{\ps@headings}{
661 <        \renewcommand{\@oddhead}{\hfill\framebox{\footnotesize\tt%
662 <           ~\em\draftheader}\hfil}%
663 <        \renewcommand{\@oddfoot}{\hfil\thepage\hfil}
660 >    \renewcommand{\ps@empty}{
661 >        \renewcommand{\@oddhead}{\framebox[\textwidth]{
662 >           \centering\footnotesize\tt\diss@header}}%
663 >        \renewcommand{\@oddfoot}{\@empty}
664          \let\@evenhead\@oddhead
665          \let\@evenfoot\@oddfoot
666      }%
667   \fi
668 < %% 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{
668 > \renewcommand{\bibsection}{
669    \chapter*{\bibname}%
670    \addcontentsline{toc}{chapter}{\bibname}%
724  \@mkboth{\MakeUppercase{\bibname}}{\MakeUppercase{\bibname}}
671   }%
672   \newcommand{\bibfont}{\singlespacing}
673 < \renewcommand{\@biblabel}[1]{\hfill#1.\hfill}
674 < %%
675 < \AtBeginDocument{
730 < \pagestyle{plain}
731 < \normalspacing
732 < \typeout{Pagestyle and spacing normal}
733 < }
673 > \ifnum@refs
674 >  \renewcommand{\@biblabel}[1]{\hfill#1.\hfill}
675 > \fi
676   \ifdiss@final
677 < \AtEndDocument{
678 <    \vfill
679 <    \centering\singlespacing
680 <    \framebox[0.85\textwidth]{
681 <    \begin{minipage}{0.80\textwidth}\footnotesize%
682 <    \centering \itshape This document was prepared \& typeset with
683 <    \upshape\ifpdf pdf\LaTeX\else\LaTeXe\fi\itshape , and
684 <    formatted with \upshape\nddiss\xspace\itshape classfile
685 <    (v\dissfileversion [\dissfiledate]) provided by Sameer Vijay.
686 <    \end{minipage} }
687 <    \clearpage}
677 > %\AtEndDocument{
678 > %    \vfill
679 > %    \centering\singlespacing
680 > %    \framebox[0.85\textwidth]{
681 > %    \begin{minipage}{0.80\textwidth}\footnotesize%
682 > %    \centering \itshape This document was prepared \& typeset with
683 > %    \upshape\ifpdf pdf\LaTeX\else\LaTeXe\fi\itshape , and
684 > %    formatted with \upshape\nddiss\xspace\itshape classfile
685 > %    (v\dissfileversion [\dissfiledate]) provided by Sameer Vijay.
686 > %    \end{minipage} }
687 > %    \clearpage}
688   \else\relax\fi
747
689   %%
690   %%
691   \endinput

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines