|
| 1 | +% Princeton University PhD thesis style -- modifications to the report style |
| 2 | +%\typeout{Princeton University PhD thesis style. Released 1 June 1990} |
| 3 | +% |
| 4 | +\long\def\comment#1{} |
| 5 | +\newcommand{\outline}{\comment} |
| 6 | +\newcommand{\aside}[1]{{\narrower{\noindent\sf#1}\hfil\par}} |
| 7 | + |
| 8 | +% redefine appendix to give appendices for each chapter |
| 9 | +% instead of entire document -- jbe |
| 10 | +%\def\cappendix{\par |
| 11 | +% \clearpage |
| 12 | +% \setcounter{section}{0} |
| 13 | +% \setcounter{subsection}{0} |
| 14 | +% \def\appendixsection##1{\section{Appendix: ##1} |
| 15 | +% \setcounter{equation}{0}} |
| 16 | +% \def\thesection{\thechapter.\Alph{section}} |
| 17 | +% \def\theequation{{\rm \thechapter.\Alph{section}.\arabic{equation}}} |
| 18 | +% % start of first derivation section of appendix |
| 19 | +% \def\apxfsec##1{{\it Equation (\ref{##1}):}} |
| 20 | +% % start of other derivation sections of appendix |
| 21 | +% \def\apxsec##1{\bigskip \par \noindent {\it Equation (\ref{##1}):}}} |
| 22 | +%\def\unappendix{\par |
| 23 | +% \setcounter{section}{0} |
| 24 | +% \setcounter{subsection}{0} |
| 25 | +% \def\thesection{\thechapter.\arabic{section}} |
| 26 | +% \def\theequation{{\rm \thechapter.\arabic{equation}}}} |
| 27 | + |
| 28 | +% |
| 29 | +% |
| 30 | +\comment{ |
| 31 | + Example of use: |
| 32 | + \documentstyle[12pt,puthesis]{report} |
| 33 | + \begin{document} |
| 34 | + \title{How to Write Theses\\ |
| 35 | + With Two Line Titles} |
| 36 | + \author{John Henry Candidate} |
| 37 | + \principaladviser{John Parker} |
| 38 | + \firstreader{John Smallberries} |
| 39 | + \secondreader{John BigBooty\\(Yoyodyne Corporation)} |
| 40 | + |
| 41 | + \beforepreface |
| 42 | + \prefacesection{Preface} |
| 43 | + This thesis tells you all you need to know about... |
| 44 | + \prefacesection{Acknowledgements} |
| 45 | + I would like to thank... |
| 46 | + \afterpreface |
| 47 | + |
| 48 | + \chapter{Introduction} |
| 49 | + ... |
| 50 | + \chapter{Conclusions} |
| 51 | + ... |
| 52 | + \appendix |
| 53 | + \chapter{A Long Proof} |
| 54 | + ... |
| 55 | + \bibliographystyle{cacm} |
| 56 | + \bibliography{mybib} |
| 57 | + \addcontentsline{toc}{chapter}{Bibliography} |
| 58 | + End of example |
| 59 | + |
| 60 | + |
| 61 | +Documentation: |
| 62 | + This style file modifies the standard report style to follow the |
| 63 | + Graduate School's recommendations. It sets the margins, interline |
| 64 | + spacing, the figure and table numbering style, and disallows page |
| 65 | + breaks at hyphens. |
| 66 | + |
| 67 | + The \beforepreface command creates the title page, a copyright page |
| 68 | + (optionally), and a signature page. Then the user should put |
| 69 | + preface section(s), using the \prefacesection{section title} |
| 70 | + command. The \afterpreface command then produces the tables of |
| 71 | + contents, tables and figures, and sets things up to start |
| 72 | + the main body (on arabic page 1). |
| 73 | + |
| 74 | + The following commands can control what goes in the front matter |
| 75 | + material: |
| 76 | + |
| 77 | + \title{thesis title} |
| 78 | + \author{author's name} |
| 79 | + \dept{author's department} |
| 80 | + - Electrical Engineering by default |
| 81 | + \principaladviser{the principal advisor's name} |
| 82 | + (or \principaladvisor, if you prefer advisor spelled with o) |
| 83 | + \firstreader{the first reader's name} |
| 84 | + \secondreader{the second reader's name} |
| 85 | + \submitdate{month year in which submitted to GS} |
| 86 | + - default is date LaTeX'd |
| 87 | + \copyrightyear{year degree conferred (next year if submitted in Dec.)} |
| 88 | + - year LaTeX'd (or next year, in December) by default |
| 89 | + \copyrighttrue or \copyrightfalse |
| 90 | + - produce or don't produce a copyright page (true by default) |
| 91 | + \signaturetrue or \signaturefalse |
| 92 | + - produce or don't produce a signature page (true by default) |
| 93 | + \figurespagetrue or \figurespagefalse |
| 94 | + - produce or don't produce a List of Figures page |
| 95 | + (true by default) |
| 96 | + \tablespagetrue or \tablespagefalse |
| 97 | + - produce or don't produce a List of Tables page |
| 98 | + (true by default) |
| 99 | + |
| 100 | + This style uses interline spacing that is 1.3 times normal, except |
| 101 | + in the figure and table environments where normal spacing is used. |
| 102 | + That can be changed by doing: |
| 103 | + \renewcommand{\baselinestretch}{1.6} |
| 104 | + (or whatever you want instead of 1.6) |
| 105 | + Unfortunately, that command probably won't take effect unless it comes |
| 106 | + before the \begin{document} or after something like \small \normalsize. |
| 107 | + |
| 108 | + The example above shows the 12pt substyle being used. This seems to give |
| 109 | + acceptable looking results, but it may be changed to get smaller print. |
| 110 | + |
| 111 | +} |
| 112 | +% |
| 113 | +%no widows/orphans |
| 114 | +\clubpenalty = 10000 |
| 115 | +\widowpenalty = 10000 |
| 116 | +% |
| 117 | +\raggedbottom |
| 118 | + |
| 119 | +\makeatletter |
| 120 | +% We need 1" margins except on the binding edge, where it is 1 1/2" |
| 121 | +% OLD MARGIN DEF |
| 122 | +\oddsidemargin 0.5in \evensidemargin 0in |
| 123 | +\marginparsep 10pt \topmargin 0pt \headsep .35in \textheight 8.0in |
| 124 | +\marginparwidth 40pt |
| 125 | +\textwidth 6in |
| 126 | +% KJF MARGIN DEF |
| 127 | +%\oddsidemargin 0.5in \evensidemargin 0in |
| 128 | +%\marginparsep 10pt |
| 129 | +%\marginparwidth 40pt |
| 130 | +%\textwidth 6in |
| 131 | +%\topmargin 0pt \headheight 12pt \headsep .3in |
| 132 | +%\textheight 8.2in |
| 133 | +%\footskip 0.3in |
| 134 | + |
| 135 | +% Disallow page breaks at hyphens (this will give some underfull vbox's, |
| 136 | +% so an alternative is to use \brokenpenalty=100 and manually search |
| 137 | +% for and fix such page breaks) |
| 138 | +\brokenpenalty=10000 |
| 139 | + |
| 140 | +% Use XXX times the normal baseline-to-baseline skip |
| 141 | + |
| 142 | + |
| 143 | +% Figures and tables are to be numbered sequentially throughout the |
| 144 | +% thesis, rather than within chapters; for style consistency, do |
| 145 | +% equations the same. The following \def of \cl@chapter is a kludge: |
| 146 | +% really there should be a \removefromreset, to stop figure numbers, etc., |
| 147 | +% from being reset at chapter beginnings |
| 148 | +% CURRENTLY DISABLED |
| 149 | +%\def\cl@chapter{\@elt{section}\@elt{footnote}} |
| 150 | +%\def\thefigure{\@arabic\c@figure} |
| 151 | +%\def\thetable{\@arabic\c@table} |
| 152 | +%\def\theequation{\arabic{equation}} |
| 153 | + |
| 154 | +% Redefine the macro used for chapter headings; the report style headings |
| 155 | +% are too large and look queer. -- jbe |
| 156 | +%\def\@makechapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright |
| 157 | +% \ifnum \c@secnumdepth >\m@ne \LARGE \bf \@chapapp{} \thechapter \par |
| 158 | +% \vskip 20pt \fi \LARGE \bf #1\par |
| 159 | +% \nobreak \vskip 40pt } } |
| 160 | +%\def\@makeschapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright |
| 161 | +% \LARGE \bf #1\par |
| 162 | +% \nobreak \vskip 40pt } } |
| 163 | + |
| 164 | +% Redefined by me---echong |
| 165 | +\def\@makechapterhead#1{ \vspace*{20pt} {\parindent 0pt \raggedright |
| 166 | + \ifnum \c@secnumdepth >\m@ne \LARGE \bf \hfill \@chapapp{} \thechapter |
| 167 | + \vskip 10 pt\hrule \par |
| 168 | + \vskip 22pt \fi \Huge \bf \singlespacing \begin{center}#1\end{center}\par |
| 169 | + \nobreak \vskip 32pt } } |
| 170 | +\def\@makeschapterhead#1{ \vspace*{20pt} {\parindent 0pt \raggedright |
| 171 | + \LARGE \bf \hfill #1\par |
| 172 | + \vskip 10 pt\hrule \par |
| 173 | + \nobreak \vskip 40pt } } |
| 174 | + |
| 175 | +% Whatever this is screws up \usepackage{color} and \usepackage{hyperref} |
| 176 | +%% Redefine the macro used for floats (including figures and tables) |
| 177 | +%% so that single spacing is used. |
| 178 | +%% (Note \def\figure{\@float{figure}set single spacing} doesn't work |
| 179 | +%% because figure has an optional argument) |
| 180 | +%\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else |
| 181 | +% \@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner |
| 182 | +% \@parmoderr\@floatpenalty\z@ |
| 183 | +% \else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname |
| 184 | +% \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n |
| 185 | +% \@tfor \@tempa :=#2\do |
| 186 | +% {\if\@tempa h\advance\@tempcnta \@ne\fi |
| 187 | +% \if\@tempa t\advance\@tempcnta \tw@\fi |
| 188 | +% \if\@tempa b\advance\@tempcnta 4\relax\fi |
| 189 | +% \if\@tempa p\advance\@tempcnta 8\relax\fi |
| 190 | +% }\global\count\@currbox\@tempcnta}\@fltovf\fi |
| 191 | +% \global\setbox\@currbox\vbox\bgroup |
| 192 | +% \def\baselinestretch{1}\@normalsize |
| 193 | +% \boxmaxdepth\z@ |
| 194 | +% \hsize\columnwidth \@parboxrestore} |
| 195 | + |
| 196 | +% Redefine the macro used for footnotes to use single spacing |
| 197 | +\long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize |
| 198 | + \interlinepenalty\interfootnotelinepenalty |
| 199 | + \splittopskip\footnotesep |
| 200 | + \splitmaxdepth \dp\strutbox \floatingpenalty \@MM |
| 201 | + \hsize\columnwidth \@parboxrestore |
| 202 | + \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext |
| 203 | + {\rule{\z@}{\footnotesep}\ignorespaces |
| 204 | + #1\strut}}} |
| 205 | + |
| 206 | +% \author, \title are defined in report; here are the rest of the |
| 207 | +% front matter defining macros |
| 208 | +\def\dept#1{\gdef\@dept{#1}} |
| 209 | +\def\principaladviser#1{\gdef\@principaladviser{#1}} |
| 210 | +\def\advis@r{Adviser} % default spelling |
| 211 | +\def\principaladvisor#1{\gdef\@principaladviser{#1}\gdef\advis@r{Advisor}} |
| 212 | +\def\firstreader#1{\gdef\@firstreader{#1}} |
| 213 | +\def\secondreader#1{\gdef\@secondreader{#1}} |
| 214 | +% Princeton says that theses should have the date set to the date the |
| 215 | +% Trustee's grant the degree |
| 216 | +\def\submitdate#1{\gdef\@submitdate{#1}} |
| 217 | +\def\copyrightyear#1{\gdef\@copyrightyear{#1}} % \author, \title in report |
| 218 | +\def\@title{}\def\@author{}\def\@dept{electrical engineering} |
| 219 | +\def\@principaladviser{}\def\@firstreader{}\def\@secondreader{} |
| 220 | +\def\@submitdate{\ifcase\the\month\or |
| 221 | + January\or February\or March\or April\or May\or June\or |
| 222 | + July\or August\or September\or October\or November\or December\fi |
| 223 | + \space \number\the\year} |
| 224 | +% Stanford says that December theses should have the next year as the |
| 225 | +% copyright year (I don't know about Princeton) |
| 226 | +\ifnum\month=12 |
| 227 | + \@tempcnta=\year \advance\@tempcnta by 1 |
| 228 | + \edef\@copyrightyear{\number\the\@tempcnta} |
| 229 | +\else |
| 230 | + \def\@copyrightyear{\number\the\year} |
| 231 | +\fi |
| 232 | + |
| 233 | +% conditional page checks |
| 234 | +\newif\ifcopyright \newif\ifsignature |
| 235 | +\newif\iftablespage \newif\iffigurespage |
| 236 | +% default page additions |
| 237 | +\copyrighttrue \signaturetrue |
| 238 | + |
| 239 | + |
| 240 | +\def\titlep{ |
| 241 | + \thispagestyle{empty} |
| 242 | + \null |
| 243 | + \begin{center} |
| 244 | + \baselineskip 40pt |
| 245 | + \vskip-0.75in |
| 246 | + {\protect\huge\bf\expandafter{\@title}} |
| 247 | + \null\vskip1in |
| 248 | + \large\expandafter{\@author} |
| 249 | + \null |
| 250 | + \end{center} |
| 251 | + \vfill |
| 252 | + \begin{center} |
| 253 | + A dissertation\\ |
| 254 | +% A second proposition\\ |
| 255 | + presented to the faculty \\ |
| 256 | + of Princeton University\\ |
| 257 | + in candidacy for the degree\\ |
| 258 | +% in partial fulfillment of the requirements\\ |
| 259 | + of Doctor of Philosophy\\ |
| 260 | + \vskip0.5in |
| 261 | + Recommended for acceptance\\ |
| 262 | + by the Department of Electrical Engineering\\ |
| 263 | + %\lowercase\expandafter{\@dept}\\ |
| 264 | + \vskip0.4in |
| 265 | + \@submitdate\\ |
| 266 | + \end{center} |
| 267 | + \newpage} |
| 268 | + |
| 269 | +\def\copyrightpage{ |
| 270 | + \thispagestyle{empty} |
| 271 | + \vspace*{0.5in} |
| 272 | +% \null\vfill |
| 273 | + \begin{center} |
| 274 | + \copyright\ Copyright |
| 275 | + by |
| 276 | + \@author, |
| 277 | + \@copyrightyear. |
| 278 | + All rights reserved. |
| 279 | + \end{center} |
| 280 | + \vfill\newpage} |
| 281 | + |
| 282 | +\long\def\signature#1{ |
| 283 | + \begin{center} |
| 284 | + \begin{minipage}{4in} |
| 285 | + \parindent=0pt |
| 286 | + I certify that I have read this thesis and that in my \linebreak opinion |
| 287 | + it is fully adequate, in scope and in quality, as a dissertation |
| 288 | + for the degree of Doctor of Philosophy. |
| 289 | + \par |
| 290 | + \vspace{.5in} |
| 291 | + \hbox to 4in{\hfil\shortstack{\vrule width 3in height 0.4pt\\#1}} |
| 292 | + \end{minipage} |
| 293 | + \end{center}} |
| 294 | + |
| 295 | +\def\signaturepage{ |
| 296 | + \vspace*{-1in} |
| 297 | + \signature{\@principaladviser\\(Principal \advis@r)} |
| 298 | + \vfill |
| 299 | + \signature\@firstreader |
| 300 | + \vfill |
| 301 | + \signature\@secondreader |
| 302 | + \vfill |
| 303 | + \begin{center} |
| 304 | + \begin{minipage}{4in} |
| 305 | + Approved for the Princeton University Graduate School.\par |
| 306 | + \vspace{.5in} |
| 307 | + \hbox to 4in{\hfil\shortstack{\vrule width 3in height 0.4pt\\ |
| 308 | + Dean of the Graduate School}} |
| 309 | + \end{minipage} |
| 310 | + \vspace*{0.4in} |
| 311 | + \end{center}} |
| 312 | + |
| 313 | +\def\beforepreface{ |
| 314 | + \pagenumbering{roman} |
| 315 | + \pagestyle{plain} |
| 316 | + \titlep |
| 317 | + \ifcopyright\copyrightpage\fi |
| 318 | + \ifsignature\signaturepage\fi |
| 319 | + } |
| 320 | + |
| 321 | +\def\prefacesection#1{ |
| 322 | +%\chapter*{#1} |
| 323 | +\clearpage \thispagestyle{plain} \global\@topnum\z@ |
| 324 | +\@afterindentfalse |
| 325 | +%\vspace*{20pt} |
| 326 | +{ \parindent 0pt \raggedright |
| 327 | +\centering \huge \bf #1\par |
| 328 | +\nobreak \vskip 40pt } |
| 329 | +\@afterheading |
| 330 | + \addcontentsline{toc}{chapter}{#1}} |
| 331 | + |
| 332 | +% Redefine "headings" so that not uppercased.---echong |
| 333 | +%\def\ps@headings{\let\@mkboth\markboth |
| 334 | +%\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\sl \rightmark |
| 335 | +%\hfil \rm\thepage}\def\chaptermark##1{\markright {\ifnum |
| 336 | +%\c@secnumdepth |
| 337 | +%>\m@ne |
| 338 | +% \@chapapp\ \thechapter: \ \fi ##1}}} |
| 339 | + |
| 340 | + |
| 341 | +\def\ps@headings{% |
| 342 | + \let\@oddfoot\@empty\let\@evenfoot\@empty |
| 343 | + \def\@evenhead{\thepage\hfil\leftmark}%\def\@evenhead{\thepage\hfil\slshape\leftmark} |
| 344 | + \def\@oddhead{{\rightmark}\hfil\thepage}%\def\@oddhead{{\slshape\rightmark}\hfil\thepage} |
| 345 | + \let\@mkboth\markboth |
| 346 | + \def\chaptermark##1{% |
| 347 | + \markboth {{% |
| 348 | + \ifnum \c@secnumdepth >\m@ne |
| 349 | + \@chapapp\ \thechapter: \ % |
| 350 | + \fi |
| 351 | + ##1}}{}}% |
| 352 | + \def\sectionmark##1{% |
| 353 | + \markright {{% |
| 354 | + \ifnum \c@secnumdepth >\z@ |
| 355 | + \thesection: \ % |
| 356 | + \fi |
| 357 | + ##1}}}} |
| 358 | + |
| 359 | + |
| 360 | +% Redefine "newtheorem" to put a colon after the number. E.Chong |
| 361 | +\def\@begintheorem#1#2{\it \trivlist \item[\hskip \labelsep{\bf #1\ #2:}]} |
| 362 | +\def\@opargbegintheorem#1#2#3{\it \trivlist |
| 363 | + \item[\hskip \labelsep{\bf #1\ #2\ (#3):}]} |
| 364 | + |
| 365 | +% Set counter for theorems to be Chapter.Number |
| 366 | +\def\@thmcounter#1{\noexpand\arabic{#1}} |
| 367 | + |
| 368 | +% The \addvspace business below is to avoid the extra space that gets put |
| 369 | +% in the tables of figures and tables between chapters (it makes no sense |
| 370 | +% now that the numbering is continuous) |
| 371 | +\def\afterpreface{\newpage |
| 372 | + \tableofcontents |
| 373 | + \cleardoublepage |
| 374 | + \iftablespage |
| 375 | + {\addvspace{10pt} |
| 376 | + \let\saveaddvspace=\addvspace |
| 377 | + \def\addvspace##1{} |
| 378 | + \addcontentsline{toc}{chapter}{List of Tables} |
| 379 | + \listoftables |
| 380 | + \let\addvspace=\saveaddvspace} |
| 381 | + \cleardoublepage |
| 382 | + \fi |
| 383 | + \iffigurespage |
| 384 | + {\addvspace{10pt} |
| 385 | + \let\saveaddvspace=\addvspace |
| 386 | + \def\addvspace##1{} |
| 387 | + \addcontentsline{toc}{chapter}{List of Figures} |
| 388 | + \listoffigures |
| 389 | + \let\addvspace=\saveaddvspace} |
| 390 | + \cleardoublepage |
| 391 | + \fi |
| 392 | + \pagenumbering{arabic} |
| 393 | + \pagestyle{headings}} |
| 394 | + |
| 395 | +\pagestyle{headings} |
0 commit comments