Advertisement
Guest User

Dissertation Style File

a guest
Oct 28th, 2013
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 89.12 KB | None | 0 0
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %%
  3. %% Colorado State Univesity LaTex Thesis Class File
  4. %% Modified by Rodrigo S. Jamisola, Jr.
  5. %% Modified from the following (in the order presented):
  6. %%  1. gatech-thesis.cls (v1.6) - copyright (c) 2002 by Charles S. Wilson.
  7. %%  2. csuthesis.sty - originally written by Wade O. Troxell
  8. %%  3. ucthesis.cls - with examples from Perry H. Disdainful
  9. %%
  10. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  11.  
  12. \newcommand{\gtthesisversion}{1.6}% current version number
  13. \newcommand{\gtthesisupdated}{2003/04/14}% date of last change(s)
  14.  
  15. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16. %%
  17. %% This program is free software; you can redistribute it and/or
  18. %% modify it under the terms of the GNU General Public License
  19. %% as published by the Free Software Foundation; either version 2
  20. %% of the License, or (at your option) any later version.
  21. %%
  22. %% This program is distributed in the hope that it will be useful,
  23. %% but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25. %% GNU General Public License for more details.
  26. %%
  27. %% You should have received a copy of the GNU General Public License
  28. %% along with this program; if not, write to the Free Software
  29. %% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  30. %%
  31. %% See the COPYING file for license information.
  32. %%
  33. %% Note that the files contained within ThesisProposal.tar.gz have
  34. %% their own licence.
  35. %%
  36. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  37.  
  38. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  39. %%
  40. %%  LaTeX2e class file for formatting documents according to the
  41. %%  Graduate Studies' guidelines for theses at the Georgia Institute
  42. %%  of Technology.
  43. %%
  44. %%  USAGE:  \documentclass{gatech-thesis}
  45. %%          \documentclass[...options...]{gatech-thesis}
  46. %%
  47. %%  The default settings produce a final copy, ready for submission
  48. %%  (11pt font, single-sided, double-spaced, normal margins,
  49. %%  with single-spaced notes).
  50. %%
  51. %%  OPTIONS:
  52. %%
  53. %%   - Any standard option for the LaTeX2e ``report'' class, including
  54. %%     ``10pt'', ``11pt'', ``12pt'', ``oneside'', ``twoside'', etc.
  55. %%
  56. %%   - ``singlespaced'', ``oneandahalfspaced'', or ``doublespaced'':  Set
  57. %%     the entire document's default line spacing, except for notes,
  58. %%     which are single-spaced by default.
  59. %%
  60. %%   - ``spacednotes'':  Let the line spacing of notes be determined
  61. %%     by the line spacing of the main document, instead of being
  62. %%     forced single-spaced.
  63. %%
  64. %%   - ``narrowmargins'', ``normalmargins'', ``widemargins'',
  65. %%     ``extrawidemargins'' or ``oldmargins'':  Set the size of
  66. %%     the margins, as follows:
  67. %%      . ``normal'': 1 1/2" on left, 1" on top, right and bottom
  68. %%        headers & footers 1/4" from body;
  69. %%        - This is the Georgia Tech standard
  70. %%      . ``narrow'': 1 1/4" on the left, 3/4" on all other sides,
  71. %%        headers & footers 1/4" from body;
  72. %%      . ``wide'': 1 1/4" on all sides, headers & footers 3/4" from
  73. %%        body;
  74. %%      . ``extrawide'': 1 1/2" on all sides, headers & footers 3/4"
  75. %%        from body.
  76. %%      . ``oldmargins'': 1 1/2" on left and top, 1" on right and bottom
  77. %%        headers & footers 1/2 from body;
  78. %%        adds 2"" extra space from top of page, on the first
  79. %%        page of a chapter or appendix.
  80. %%        - This is the OLD Georgia Tech standard
  81. %%     (If you have more than just a few marginal notes, it is
  82. %%     recommended that you use ``wide'' or ``extrawide'' margins.)
  83. %%     Use ``normalmargins'' (the default) for the approved GT format.
  84. %%
  85. %%   - ``draft'':  Produce a draft copy (10pt font, double-sided,
  86. %%     double-spaced, normal margins, with the word "DRAFT" printed
  87. %%     at all four corners of every page, and current date printed in
  88. %%     a running footer).
  89. %%
  90. %%   - ``hyperref'': Indicates that the document will \usepackage{hyperref}.
  91. %%     This is a kludge, but I didn't want to explicitly *require*
  92. %%     hyperref, so we must indicate to gatech-thesis.cls whether it should
  93. %%     define certain hyperref commands as dummies.  ALWAYS use this
  94. %%     option if you use the hyperref package.  NEVER use this option if
  95. %%     you do not also use the hyperref package.
  96. %%
  97. %%  Note that these options can be used to override the default or
  98. %%  draft document settings, so that it is possible, for example,
  99. %%  to create a double-sided final copy, or a 1 1/2-spaced draft
  100. %%  copy with wide margins, etc.  Also note that when producing
  101. %%  double-sided documents, new chapters and preliminary sections
  102. %%  will always start on a right-hand page under the default
  103. %%  settings (inserting a blank page if needed), but not if the
  104. %%  ``draft'' option was used.  (This can be overriden by using the
  105. %%  ``openany'' or ``openright'' options.  To achieve this effect for
  106. %%  individual sections or chapters, use the \cleardoublepage
  107. %%  command.)  Note that the blank page inserted in these cases will
  108. %%  still contain the header and page number that is present on all
  109. %%  pages.  For ``empty'' or ``plain'' pages, explicitly use one of the
  110. %%  commands \clearemptydoublepage (totally blank inserted pages),
  111. %%  \clearplaindoublepage (blank except for page number at bottom), or
  112. %%  \cleartcplainfdoublepage (blank except for page number at Top
  113. %%  Corner (hence, TCplain).  You can also explicitly use
  114. %%  \cleargtthesisdoublepage (but I don't know why you would, since this
  115. %%  only makes sense if the current pagestyle is already gtthesis, and
  116. %%  if that is the case then you're better off just using \cleardoublepage.
  117. %%
  118. %%  NEW ENVIRONMENTS and COMMANDS:
  119. %%   in some cases, there will be two commands with identical
  120. %%   effect.  These are usually because one is needed to maintain
  121. %%   compatibility with documents that expect the old macros from
  122. %%   GTthesis.sty.
  123. %%
  124. %%   * \title{...}:  (preamble only; REQUIRED)
  125. %%
  126. %%   * \author{...}:  (preamble only; REQUIRED)
  127. %%     Specify the name of the author.
  128. %%
  129. %%   * \department{...}:    (preamble only; REQUIRED)
  130. %%   * \dept{...}:          compatibility synonym
  131. %%     Specify the name of the graduate department.
  132. %%
  133. %%   * \degree{...}:  (preamble only; REQUIRED)
  134. %%     Specify the name of the degree (e.g., "Doctor of Philosophy").
  135. %%
  136. %%   * \gradyear{...}:      (preamble only; REQUIRED)
  137. %%   * \copyrightyear{...}: compatibility synonym
  138. %%     Specify the year of graduation (defaults to current year).
  139. %%
  140. %%   * \principaladvisor{...}:  (preamble only; OPTIONAL)
  141. %%     (or \principaladviser{...}, if you prefer advisor spelled with an e)
  142. %%
  143. %%   * \committeechair{...}: (preamble only; OPTIONAL)
  144. %%
  145. %%   * \firstreader{...}:    (preamble only; OPTIONAL)
  146. %%   * \secondreader{...}:   (preamble only; OPTIONAL)
  147. %%   * \thirdreader{...}:    (preamble only; OPTIONAL)
  148. %%   * \fourthreader{...}:   (preamble only; OPTIONAL)
  149. %%   * \fifthreader{...}:    (preamble only; OPTIONAL)
  150. %%   * \sixthreader{...}:    (preamble only; OPTIONAL)
  151. %%
  152. %%   * \submitdate{month year in which submitted}
  153. %%     date is LaTeX'd if not specified
  154. %%
  155. %%   * \titlepagetrue or \titlepagefalse
  156. %%     - produce or don't produce a title page (TRUE by default)
  157. %%
  158. %%   * \signaturepagetrue or \signaturepagefalse
  159. %%     - produce or don't produce a signature page (TRUE by default)
  160. %%
  161. %%   * \copyrighttrue or \copyrightfalse
  162. %%     - place or don't place a copyright notice on the title page (FALSE by default)
  163. %%
  164. %%   * \figurespagetrue or \figurespagefalse
  165. %%     - produce or don't produce a List of Figures page (TRUE by default)
  166. %%
  167. %%   * \tablespagetrue or \tablespagefalse
  168. %%     - produce or don't produce a List of Tables page (TRUE by default)
  169. %%
  170. %%   * \contentspagetrue or \contentspagefalse
  171. %%     - produce or don't produce a Table of Contents page (TRUE by default)
  172. %%
  173. %%   * \bibpagetrue or \bibpagefalse
  174. %%     - produce or don't produce a Bibliography page (TRUE by default)
  175. %%
  176. %%   * \thesisproposaltrue or \thesisproposalfalse
  177. %%     - indicate "Thesis Proposal" or "Thesis" on the title page (FALSE by default)
  178. %%
  179. %%   * \dedicationheadingtrue or \dedicationheadingfalse
  180. %%     - display ``DEDICATION'' heading on the dedication page (FALSE by default)
  181. %%
  182. %%   * \dedicationtop and \dedicationbottom
  183. %%     - The Graduate Office Guidelines say that the dedication should be centered
  184. %%       on the page.  By default, this is done -- but IMO it looks ugly.  The
  185. %%       vertical spacing above and below your text is proided by these two
  186. %%       macros; redefined them if you want to do something different.  E.g.
  187. %%       this looks nice:
  188. %%         \renewcommand{\dedicationtop}{\vspace*{\stretch{1}}
  189. %%         \renewcommand{\dedicationbottom{\vspace*{\stretch{3}}
  190. %%       which places the dedication about 1/4 of the way down the page.
  191. %%
  192. %%   * \strictmarginstrue or \strictmarginsfalse
  193. %%     - if true, then obey the margin rules EVEN on the title and signature
  194. %%       page. Default TRUE and REQUIRED by Graduate Studies Office, but
  195. %%       not very appealing.  (under ``oldmargins'' an extra 50p spacing is
  196. %%       added so that the title page looks like the chapter headings
  197. %%       In any case, \strictmarginsfalse looks better for personal copies
  198. %%       but \strictmarginstrue is necessary for official ones.
  199. %%
  200. %%   * \multivolumetrue or \multivolumefalse
  201. %%     - if true, indicates that the thesis will span multiple volumes.
  202. %%       triggers automatic generation of the first volume title page
  203. %%       (in addition to the ``entire work'' title page), but it's up
  204. %%       to you to place the ``part{}'' commands in the appropriate
  205. %%       locations for volume 2, volume 3, etc.
  206. %%
  207. %%   * \bibfiles{...}
  208. %%    Set the list of bibfiles to use when generating a bibliography
  209. %%
  210. %%   - \linespacing{...}:  (preamble only)
  211. %%   - \spacing{...}:      compatibility synonym
  212. %%     Set the interline spacing directly, overriding document
  213. %%     defaults and options; note that in order to get the correct
  214. %%     appearance, the argument to \linespacing must be equal to
  215. %%     1/3 + 2/3 times the desired line spacing (for example,
  216. %%        single-spaced = \linespacing{1},
  217. %%         1 1/2-spaced = \linespacing{1.25}, and
  218. %%        double-spaced = \linespacing{1.66}).
  219. %%
  220. %%   - ignore{...}:
  221. %%   - comment{...}:     compatibility synonym
  222. %%     Ignore the part of the file between { and } (can include
  223. %%     paragraph breaks); useful for commenting out large blocks.
  224. %%
  225. %%   - \clearemptydoublepage, \clearplaindoublepage,
  226. %%     \cleartcplaindoublepage, \cleargtthesisdoublepage
  227. %%     Same as \cleardoublepage except that it sets the pagestyle of
  228. %%     any inserted blank page to ``empty'' ``plain'' ``tcplain'' or
  229. %%     ``gtthesis'' respectively.
  230. %%
  231. %%   - \begin{preliminary}...\end{preliminary}:
  232. %%     Delimit head matter (title page, abstract, table of contents,
  233. %%     lists of tables and figures, etc.): set the page style and
  234. %%     numbering for the preliminary sections and reset them for the
  235. %%     main document.
  236. %%    + Alternatively, at the appropriate spots call the synonums
  237. %%      \beforepreface and \afterpreface.  These ``synonyms'' do
  238. %%      the same setup tasks as \begin{preliminary} and \end{preliminary},
  239. %%      but they don't create an ``environment.  The use of these
  240. %%      synonyms is NOT recommended for new documents and are provided
  241. %%      only for backward compatibility.
  242. %%
  243. %%      - \beforepreface:
  244. %%        Sets pagestyle and generates titlepage (via \maketitle)
  245. %%        and signature page (via \makesignature) if indicated.
  246. %%        DON'T call directly in new documents.  Use \begin{preliminary}
  247. %%        instead.
  248. %%
  249. %%      - \afterpreface:
  250. %%        Sets pagestyle back to normal, restarts page numbering
  251. %%        DON'T call directly in new documents.  Use \end{preliminary}
  252. %%        instead.
  253. %%
  254. %%      - \maketitle:
  255. %%        Generate the title page from the information supplied
  256. %%        in the preamble.  Called automatically by \begin{preliminary}
  257. %%        or \beforepreface.
  258. %%
  259. %%      - \makesignature:
  260. %%        Generate a signature page from information supplied
  261. %%        in the preamble.  Called automatically by \begin{preliminary}
  262. %%        or \beforepreface.
  263. %%
  264. %%      - \begin{dedication}...\end{dedication}:
  265. %%        Generate a dedication section, if needed.
  266. %%
  267. %%      - \begin{acknowledgements}...\end{acknowledgements}:
  268. %%        Generate an acknowledgements section, if needed.
  269. %%
  270. %%      - \begin{abstract}...\end{abstract}:
  271. %%        Generate the abstract page.
  272. %%
  273. %%      - \begin{summary}...\end{summary}:
  274. %%        Generate a summary page (same as abstract, but different
  275. %%        heading)
  276. %%
  277. %%      - \begin{preface}...\end{preface}:
  278. %%        Generate a preface section, if needed.
  279. %%
  280. %%      - \prefacesection{other-title}{...text...}
  281. %%        Used to specify frontmatter sections that do not have
  282. %%        custom environments defined for them above.
  283. %%
  284. %%      - \contents
  285. %%        Prints table of contents, list of figures, and list of
  286. %%        tables as indicated by \contentspagetrue, \figurespagetrue,
  287. %%        and \tablespagetrue
  288. %%
  289. %%      - Modifying the look of the Table of Contents:
  290. %%
  291. %%        + \labelchaptersintableofcontents
  292. %%          inserts an entry into the TOC that says ``CHAPTERS'' just
  293. %%          before Chapter 1.
  294. %%
  295. %%        + \labelappendicesintableofcontents
  296. %%          inserts an entry into the TOC that says ``APPENDICES'' just
  297. %%          before Appendix A.
  298. %%
  299. %%        + \settocstring
  300. %%          change the name used for the Table of Contents (def: 'Table of Contents')
  301. %%
  302. %%        + \setlofstring
  303. %%          change the name used for the List of Figures (def: 'List of Figures')
  304. %%
  305. %%        + \setlotstring
  306. %%          change the name used for the List of Tables (def: 'List of Tables')
  307. %%
  308. %%        + \setchaptertocdepth
  309. %%          set the default for how ``deep'' to number within chapters
  310. %%          in the table of contents.
  311. %%
  312. %%        + \setappendixtocdepth
  313. %%          set the default for how ``deep'' to number within appendices
  314. %%          (chapter{}'s after the \appendix command) in the table of
  315. %%          contents
  316. %%
  317. %%        + \settocdepth
  318. %%          temporarily change how "deep" to number in the table of
  319. %%          contents for current chapter/section.  For example, you
  320. %%          usually include \section{}'s in the TOC (\setchaptertocdepth{1})
  321. %%          but in chapter 5 you want to include subsection as well:
  322. %%          \chapter{This is Chapter 5}\settocdepth{2}.  In cahapter 6 the
  323. %%          default depth of 1 is reasserted.
  324. %%
  325. %%         You should never need to call \setcounter{tocdepth}{..} directly.
  326. %%         0 = chapter only
  327. %%         1 = chapter + sections
  328. %%         2 = chapter, section, subsection
  329. %%         3 = chapter, section, subsection, subsubsection
  330. %%
  331. %%     OLD recommended structure (GTthesis.sty) for frontmatter:
  332. %%     \begin{document}
  333. %%        \beforepreface
  334. %%            \prefacesection{Dedication}dedication text...
  335. %%            \prefacesection{Preface}preface text...
  336. %%            \prefacesection{Acknowledgements}acknowledgement text...
  337. %%            \contents  % print table of contents, figures and tables here.
  338. %%            \prefacesection{Summary}summary text
  339. %%        \afterpreface
  340. %%
  341. %%     NEW recommended structure for frontmatter:
  342. %%     \begin{document}
  343. %%       \begin{preliminary}
  344. %%         \begin{dedication}...\end{dedication}
  345. %%         \begin{preface}...\end{preface}
  346. %%         \begin{acknowledgements}...\end{acknowledgements}
  347. %%         \contents
  348. %%         \begin{summary}...\end{summary}
  349. %%       \end{preliminary}
  350. %%
  351. %%    The old method still works, but the new method is preferred
  352. %%    for new documents.
  353. %%
  354. %%   - \begin{longquote}...\end{longquote}:
  355. %%     Single-spaced version of the ``quote'' environment.
  356. %%
  357. %%   - \begin{longquotation}...\end{longquotation}:
  358. %%     Single-spaced version of the ``quotation'' environment.
  359. %%
  360. %%   - \begin{singlespaced}...\end{singlespaced}:
  361. %%     Format single-spaced paragraphs.
  362. %%
  363. %%   - \begin{oneandahalfspaced}...\end{oneandahalfspaced}:
  364. %%     Format 1 1/2-spaced paragraphs.
  365. %%
  366. %%   - \begin{doublespaced}...\end{doublespaced}:
  367. %%     Format double-spaced paragraphs.
  368. %%
  369. %%   - \begin{newspacing}{<n>}...\end{newspacing}:
  370. %%     Format paragraphs with an interline spacing of ``n''.
  371. %%
  372. %%  (Note that the last four environments can be used to change the
  373. %%  default line spacing of any enclosed text, including figures,
  374. %%  tables, abstract or acknowledgement pages, table of contents,
  375. %%  etc.)
  376. %%
  377. %%   - \appendix: a global mode switch (just like the report class).
  378. %%     changes the way ``chapter'' headings and TOC entries are
  379. %%     generated.
  380. %%       \chapter{last chapter titled}...
  381. %%       \appendix
  382. %%       \chapter{first appendix title}...
  383. %%
  384. %%   - \begin{postliminary}...\end{postliminary}:
  385. %%     Delimit end matter (bibliography, vita, etc).
  386. %%    + Alternatively, call the synonyms
  387. %%      \beforepostface and \afterpostface instead.  These
  388. %%      synonyms are provided for backward compatibility with
  389. %%      GTthesis.sty; their use is not recommended for new documents.
  390. %%
  391. %%      - \beforepostface:
  392. %%        Not recommended for new documents. Use \begin{postliminary}
  393. %%        instead
  394. %%
  395. %%      - \afterpreface:
  396. %%        Not recommended for new documents. Use \end{postliminary}
  397. %%        instead
  398. %%
  399. %%      - \begin{vita}...\end{vita}:
  400. %%        Generate a vita page
  401. %%
  402. %%      - \references:
  403. %%        Generate bibliography if indicated by bibliographytrue
  404. %%        NOTE: you must set \bibpagetrue AND \bibfiles{file1,file2,...}
  405. %%        in the preample, AND you must set \bibliographystyle{...} just
  406. %%        after \begin{document}.  Otherwise \references won't work.
  407. %%
  408. %%      - \postfacesection{other-title}{...text...}
  409. %%        Used to specify endsections that do not have
  410. %%        custom environments defined for them above.
  411. %%
  412. %%     OLD recommended structure (GTthesis.sty) for endmatter:
  413. %%     \beforepostface
  414. %%       \postfacesection{Vita}vita text...
  415. %%     \afterpostface
  416. %%
  417. %%     NEW recommended structure for frontmatter:
  418. %%     \begin{postliminary}
  419. %%       \references
  420. %%       \begin{vita}...\end{vita}
  421. %%     \end{postliminary}
  422. %%
  423. %%    The old method still works, but the new method is preferred
  424. %%    for new documents.
  425. %%
  426. %%    - Modifying the look of the document
  427. %%
  428. %%      + \setbodypagestyle{x}, where x = plain, empty, headings,
  429. %%        myheadings, gtthesis, or tcplain.  plain is the default).
  430. %%      + \setfrontpagestyle{x} - set pagestyle for frontmatter
  431. %%      + \setbackpagestyle{x}   - set pagestyle for endmatter
  432. %%
  433. %%        - The Graduate Studies Office approved pagestyle is
  434. %%          plain for the body, as well frontmatter and endmatter
  435. %%          (However, pages are numbered with roman numberals in
  436. %%          the frontmatter and automatically switch to arabic
  437. %%          numbers in the body and endmatter, as required by GSO.
  438. %%          Don't try to change the pagenumbering style).  However:
  439. %%        - gtthesis adds a running header on each page identifying
  440. %%          the Chapter (and Section for twopage layouts).  This
  441. %%          is a nice touch IMO for the body and endmatter, but
  442. %%          use it ONLY for personal copies.
  443. %%        - note that you also need to add \pagestyle{gtthesis}
  444. %%          if you use \setbodypagestyle{gtthesis}.
  445. %%
  446. %%      + Chapter headings and the TOC use ROMAN numerals, but
  447. %%        the running headers at the top of each page use ARABIC
  448. %%        numbers for the Chapter number.  Thus, there are two
  449. %%        separate formats that are used.
  450. %%
  451. %%        - \thegtchapter is used for ROMAN chapter numbers
  452. %%        - \thechapter is used for ARABIC chapter numbers
  453. %%
  454. %%        If you wish all chapter headings to use ROMAN, then just
  455. %%        redefine \thechapter in your document:
  456. %%          \renewcommand{\thechapter}{\thegtchapter}
  457. %%        Do the reverse for all ARABIC chapter numbers:
  458. %%          \renewcommand{\thegtchapter}{\thechapter}
  459. %%
  460. %%  This archive provides two different examples of use -- the
  461. %%  companion file ``gatech-thesis.tex'' contains a skeleton
  462. %%  illustrating the use of this class.   In addition, the jules-verne*
  463. %%  companion files contain a more lengthy, multi-file example.
  464. %%  Finally, a much abbreviated version of gatech-thesis.txt
  465. %%  appears directly below, in this file.
  466. %%
  467. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  468.  
  469.  
  470. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  471. %%
  472. %%  Example of use:
  473. %%    \documentclass[11pt,twopage,oneandahalfspaced,normalmargins]{gatech-thesis}
  474. %%
  475. %%    (Then, use the following commands for various thesis elements, as follows)
  476. %%
  477. %%    \title{How to Write Theses\\
  478. %%           With Two Line Titles}
  479. %%    \author{John Henry Candidate}
  480. %%    \bibfiles{litserch,oodb}
  481. %%    \principaladviser{John Parker}
  482. %%    \committeechair{Jack Sprat}
  483. %%    \firstreader{John Green}
  484. %%    \secondreader{John BigBooty\\(Another Department)}
  485. %%    \thirdreader{...}
  486. %%    \fourthreader{...}
  487. %%    \department{School of Electrical and Computer Engineering}
  488. %%    \degree{Doctor of Philosophy}
  489. %%    \copyrightyear{2001}
  490. %%    \thesisproposalfalse
  491. %%    \contentspagetrue
  492. %%    \figurespagetrue
  493. %%    \tablespagefalse
  494. %%    \bibpagetrue
  495. %%    \titlepagetrue
  496. %%    \dedicationheadingfalse
  497. %%    \signaturepagetrue
  498. %%    \submitdate{January 2001}
  499. %%
  500. %%    \begin{document}
  501. %%       \bibliographystyle{gatech-thesis}
  502. %%       \begin{preliminary}
  503. %%          \begin{preface}
  504. %%            This thesis tells you all you need to know about...
  505. %%           \end{preface}
  506. %%           \contents  % print table of contents, figures and tables here.
  507. %%           \begin{acknowledgements}
  508. %%              I would like to thank...
  509. %%           \end{acknowledgements}
  510. %%       \end{preliminary}
  511. %%       \chapter{Introduction}
  512. %%             ...
  513. %%       \chapter{Conclusions}
  514. %%             ...
  515. %%       \appendix
  516. %%       \chapter{A Long Proof}
  517. %%             ...
  518. %%       \begin{postliminary}
  519. %%          \references
  520. %%          \postfacesection{Index}{%
  521. %%             ... generate an index here
  522. %%          }
  523. %%          \begin{vita}
  524. %%             ... was born in ...
  525. %%          \end{vita}
  526. %%       \end{postliminary}
  527. %%    \end{document}
  528. %%
  529. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  530.  
  531.  
  532. %%%%%%%%%%%%        IDENTIFICATION        %%%%%%%%%%%%
  533.  
  534. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{csuthesis}
  535.         [\gtthesisupdated\space\gtthesisversion\space(Charles Wilson)]%
  536. \RequirePackage{calc}% part of LaTeX tools bundle
  537.  
  538. \def\gtthesis@checkVersion#1{\edef\reserved@a{#1}%
  539.   \ifx \gatechthesis@version \reserved@a
  540.     \expandafter\@gobble
  541.   \else
  542.     \expandafter\@firstofone
  543.   \fi}
  544. \xdef\gatechthesis@version{\gtthesisversion}
  545.  
  546. %%%%%%%%%%%%         INITIAL CODE         %%%%%%%%%%%%
  547.  
  548. %% To comment out parts of a file.
  549. %
  550. \newcommand{\ignore}[1]{}
  551. \newcommand{\comment}[1]{}
  552.  
  553. %% Switch for testing draft mode (toggled by ``draft'' option).
  554. %
  555. \newif\if@draft
  556. \@draftfalse % initially false by default
  557.  
  558. %% Switch for testing current page style.
  559. %
  560. \newif\if@tcpage
  561.  % no default value (set by \pagestyle)
  562.  % indicates that page numbers are in the upper corners
  563.  
  564. %% Switch for testing line spacing of notes.
  565. %
  566. \newif\if@singlespacednotes
  567. \@singlespacednotestrue % initially true by default
  568.  
  569. %% Switch for testing the hyperref option
  570. %
  571. \newif\if@hyperref
  572. \@hyperreffalse % initially false by default
  573.  
  574. %% Macro for testing the size of margins.
  575. %
  576. \newcommand{\@marginsize}{}
  577.  
  578. %% Because of the draft option, and to allow users to override
  579. %% defaults, we don't want to be passing conflicting options back to
  580. %% the report class, so we define our own temporary toggles holding
  581. %% the most recent setting for each of four basic options: point size,
  582. %% number of page sides, whether new chapters open on right-hand pages
  583. %% or on any page, and line spacing.  These toggles will be set from
  584. %% the corresponding options below.
  585. %
  586. \newcommand{\@thesisptsz}{}
  587. \newcommand{\@thesisside}{}
  588. \newcommand{\@thesisopen}{}
  589. \newcommand{\@thesislnsp}{}
  590.  
  591.  
  592. %%%%%%%%%%%%      OPTION DECLARATION      %%%%%%%%%%%%
  593.  
  594. %% ``draft'' option: change default document settings.
  595. %
  596. \DeclareOption{draft}{\@drafttrue
  597.   \typeout{Gatech-Thesis Class Option: ``draft''}
  598.   \ExecuteOptions{10pt,twoside,openany,doublespaced,normalmargins}
  599.   \PassOptionsToClass{draft}{report}
  600.    %% Macros for printing "DRAFT" at the corners of a page.
  601.    \newcommand{\tlDRAFT}%
  602.      {\raisebox{ 3ex}[0pt][0pt]{\llap{\sffamily\scriptsize DRAFT\ \ }}}
  603.   \newcommand{\trDRAFT}%
  604.      {\raisebox{ 3ex}[0pt][0pt]{\rlap{\sffamily\scriptsize \ \ DRAFT}}}
  605.   \newcommand{\blDRAFT}%
  606.      {\raisebox{-3ex}[0pt][0pt]{\llap{\sffamily\scriptsize DRAFT\ \ }}}
  607.   \newcommand{\brDRAFT}%
  608.      {\raisebox{-3ex}[0pt][0pt]{\rlap{\sffamily\scriptsize \ \ DRAFT}}}
  609. }%DeclareOption{draft}
  610.  
  611. %% ``spacednotes'' option: make notes share the line spacing of the rest
  612. %% of the document.
  613. %
  614. \DeclareOption{spacednotes}{\@singlespacednotesfalse}
  615.  
  616. %% Margin options: change the size of margins.
  617. %% choose normalmargins option for Georgia Tech thesis format
  618. %
  619. \DeclareOption{narrowmargins}{\renewcommand{\@marginsize}{0}}
  620. \DeclareOption{normalmargins}{\renewcommand{\@marginsize}{1}}
  621. \DeclareOption{widemargins}{\renewcommand{\@marginsize}{2}}
  622. \DeclareOption{extrawidemargins}{\renewcommand{\@marginsize}{3}}
  623. \DeclareOption{oldmargins}{\renewcommand{\@marginsize}{4}}
  624.  
  625. %% Point Size options: change current setting.
  626. %
  627. \DeclareOption{10pt}{\renewcommand{\@thesisptsz}{10pt}}
  628. \DeclareOption{11pt}{\renewcommand{\@thesisptsz}{11pt}}
  629. \DeclareOption{12pt}{\renewcommand{\@thesisptsz}{12pt}}
  630.  
  631. %% Number of Page Sides options: change current setting.
  632. %
  633. \DeclareOption{twoside}{\renewcommand{\@thesisside}{twoside}}
  634. \DeclareOption{oneside}{\renewcommand{\@thesisside}{oneside}}
  635.  
  636. %% New Chapter Openings options: change current setting.
  637. %
  638. \DeclareOption{openany}{\renewcommand{\@thesisopen}{openany}}
  639. \DeclareOption{openright}{\renewcommand{\@thesisopen}{openright}}
  640.  
  641. %% Line Spacing options: change current setting.
  642. %
  643. \DeclareOption{singlespaced}{\renewcommand{\@thesislnsp}{1}}
  644. \DeclareOption{oneandahalfspaced}{\renewcommand{\@thesislnsp}{1.25}}
  645. \DeclareOption{doublespaced}{\renewcommand{\@thesislnsp}{1.66}}
  646. \DeclareOption{quadspaced}{\renewcommand{\@thesislnsp}{3.5}}
  647.  
  648. %% STUPID HACK for hyperref, \@chapter, and \MakeUppercase
  649. %
  650. \newcommand{\Makeuppercase}[1]{\MakeUppercase{#1}}
  651. \DeclareOption{hyperref}{%
  652.   \@hyperreftrue
  653. %  \renewcommand{\Makeuppercase}[1]{%
  654. %    \ifHy@pdfstring#1\else\MakeUppercase{#1}\fi}
  655. }
  656.  
  657. %% All other options are passed to the base class directly.
  658. %
  659. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
  660.  
  661.  
  662. %%%%%%%%%%%%       OPTION EXECUTION       %%%%%%%%%%%%
  663.  
  664. %% Default settings.
  665. %
  666. \ExecuteOptions{11pt,letterpaper,oneside,%
  667. openright,doublespaced,normalmargins,final}
  668. %
  669. %% Process options.
  670. %
  671. \ProcessOptions
  672.  
  673.  
  674. %%%%%%%%%%%%       PACKAGE  LOADING       %%%%%%%%%%%%
  675.  
  676. %% Load base class using current setting for basic options.
  677. %
  678. \LoadClass[\@thesisptsz,\@thesisside,\@thesisopen]{report}
  679.  
  680.  
  681. %%%%%%%%%%%%          MAIN  CODE          %%%%%%%%%%%%
  682.  
  683. \if@hyperref \else
  684.   \newcommand{\phantomsection}{}% helps with hyperref.  \phantomsection
  685. %                                 is provided by pdflatex, but not latex.
  686.   \newcommand{\texorpdfstring}[2]{#1}%
  687.   \def\pdfbookmark[#1]#2#3{}%
  688. \fi
  689.  
  690. %%%%%%    Line Spacing
  691. %
  692. %% \linespacing is used to define the default line spacing.
  693. %% for the entire document. If the argument is less than
  694. %% 1.25 (for 1.5-spaced) a warning message is displayed
  695. %% when not in draft mode.
  696. %%
  697. %% Don't use this command for temporary, localized changes.
  698. %% Instead, use the ``spacing environments'':
  699. %%    \begin{singlespace}      ...\end{singlespaced}
  700. %%    \begin{oneandahalfspaced}...\end{oneandahalfspaced}
  701. %%    \begin{doublespaed}      ...\end{doublespaced}
  702. %%    \begin{longquote}        ...\end{longquote}
  703. %%    \begin{longquotation}    ...\end{longquotation}
  704. %%    \begin{newspacing}{x.xx} ...\end{newspacing}
  705. %
  706. \newcommand{\linespacing}[1]{%
  707.   \gdef\@spacing{#1}
  708.  \newlinestretch{#1}\if@draft\else\ifdim #1pt < 1.25pt\typeout
  709.   {Gatech-Thesis Class Warning: line spacing less than 1 1/2}\fi\fi
  710. }
  711. %
  712. %% \spacing is a clone of \linespacing, retained for backwards
  713. %% compatibility with GTthesis.sty
  714. %
  715. \newcommand{\spacing}[1]{%
  716.   \gdef\@spacing{#1}
  717.  \newlinestretch{#1}\if@draft\else\ifdim #1pt < 1.25pt\typeout
  718.  {Gatech-Thesis Class Warning: line spacing less than 1 1/2}\fi\fi
  719. }
  720. \def\@spacing{1.66}
  721.  
  722. %
  723. %% ``longquote'' and ``longquotation'' produce single-spaced quotes, while
  724. %% ``newspacing'' encloses paragraphs with a different line spacing,
  725. %% such as ``singlespaced'', ``oneandahalfspaced'', or ``doublespaced''.
  726. %
  727. \newenvironment{longquote}%
  728.   {\begin{quote}\newlinestretch{1}}{\end{quote}}
  729. \newenvironment{longquotation}%
  730.   {\begin{quotation}\newlinestretch{1}}{\end{quotation}}
  731. \newenvironment{singlespaced}%
  732.   {\begin{newspacing}{1}}{\end{newspacing}}
  733. \newenvironment{oneandahalfspaced}%
  734.   {\begin{newspacing}{1.25}}{\end{newspacing}}
  735. \newenvironment{doublespaced}%
  736.   {\begin{newspacing}{1.66}}{\end{newspacing}}
  737. \newenvironment{quadspaced}%
  738.   {\begin{newspacing}{3.5}}{\end{newspacing}}
  739. \newenvironment{newspacing}[1]%
  740.   {\par\begingroup\newlinestretch{#1}}%
  741.   {\par\vskip\parskip\vskip\baselineskip\endgroup
  742.   \vskip-\parskip\vskip-\baselineskip}
  743.  
  744. %
  745. %% To change the actual line spacing.
  746. %
  747. \newcommand{\newlinestretch}[1]%
  748.   {\renewcommand{\baselinestretch}{#1}\currenttextsize}
  749.  
  750. %
  751. %% To keep track of the current text size.
  752. %
  753. \let\currenttextsize=\normalsize
  754. %
  755. %% Redefine size-changing commands to update \currenttextsize.
  756. %
  757. \let\tmp@tiny=\tiny
  758. \renewcommand{\tiny}%
  759.   {\let\currenttextsize=\tmp@tiny\tmp@tiny}
  760. \let\tmp@scriptsize=\scriptsize
  761. \renewcommand{\scriptsize}%
  762.   {\let\currenttextsize=\tmp@scriptsize\tmp@scriptsize}
  763. \let\tmp@footnotesize=\footnotesize
  764. \renewcommand{\footnotesize}%
  765.   {\let\currenttextsize=\tmp@footnotesize\tmp@footnotesize}
  766. \let\tmp@small=\small
  767. \renewcommand{\small}%
  768.   {\let\currenttextsize=\tmp@small\tmp@small}
  769. \let\tmp@normalsize=\normalsize
  770. \renewcommand{\normalsize}%
  771.   {\let\currenttextsize=\tmp@normalsize\tmp@normalsize}
  772. \let\tmp@large=\large
  773. \renewcommand{\large}%
  774.   {\let\currenttextsize=\tmp@large\tmp@large}
  775. \let\tmp@Large=\Large
  776. \renewcommand{\Large}%
  777.   {\let\currenttextsize=\tmp@Large\tmp@Large}
  778. \let\tmp@LARGE=\LARGE
  779. \renewcommand{\LARGE}%
  780.   {\let\currenttextsize=\tmp@LARGE\tmp@LARGE}
  781. \let\tmp@huge=\huge
  782. \renewcommand{\huge}%
  783.   {\let\currenttextsize=\tmp@huge\tmp@huge}
  784. \let\tmp@Huge=\Huge
  785. \renewcommand{\Huge}%
  786.   {\let\currenttextsize=\tmp@Huge\tmp@Huge}
  787. %
  788. %% Make notes single-spaced if ``spacednotes'' option was not given.
  789. %% Note that this does _not_ change the spacing of figures or tables.
  790. %
  791. \if@singlespacednotes
  792. %% Make footnotes single-spaced.
  793. \let\tmp@@footnotetext=\@footnotetext
  794. \renewcommand{\@footnotetext}[1]%
  795.   {{\newlinestretch{1}\tmp@@footnotetext{#1}}}
  796. %% Make footnotes inside a minipage single-spaced.
  797. \let\tmp@@mpfootnotetext=\@mpfootnotetext
  798. \renewcommand{\@mpfootnotetext}[1]%
  799.   {{\newlinestretch{1}\tmp@@mpfootnotetext{#1}}}
  800. %% Make marginal notes single-spaced.
  801. \let\tmp@@marginparreset=\@marginparreset
  802. \renewcommand{\@marginparreset}%
  803.   {\newlinestretch{1}\tmp@@marginparreset}
  804. \fi%@singlespacednotes
  805. %
  806. %%%%%%    New formatting environments and commands.
  807. %
  808. %% \begin{preliminary} sets the pagestyle and pagenumbering
  809. %% (roman numeral format ) for the preliminary sections;
  810. %% It also calls \beforepreface to create the title page
  811. %% and signature page if indicated by \titlepagetrue and/or
  812. %% \signaturepageture.
  813. %%
  814. %% \end{preliminary} resets the pagenumbering. To start page
  815. %% numbering in arabic format, use \pagestyle{plain} and
  816. %% \pagenumbering{arabic} after the preliminary environment block
  817. %
  818. \newenvironment{preliminary}%
  819.   {
  820.  \newlinestretch{1.0}%
  821.     \pagenumbering{roman}%
  822.     \pagestyle{\front@pagestyle}%
  823.     \iftitlepage%
  824.       \maketitle%
  825.     \fi%
  826.     \ifmultivolume%
  827.       \part{}%
  828.     \fi%
  829.     \ifcopyrightpage%
  830.       \makecopyrightpage%
  831.     \fi%
  832.     \ifsignaturepage%
  833.       \makesignature%
  834.     \fi%
  835.     \newlinestretch{\@spacing}%
  836.   }%
  837.   {%
  838.     \if@draft%
  839.     \else%
  840.       \if@twoside%
  841.         \if@openright%
  842.           \cleardoublepage%
  843.         \fi%
  844.       \fi%
  845.     \fi%
  846.     \newpage%
  847.     \pagenumbering{arabic}%
  848.     \pagestyle{\body@pagestyle}%
  849.     \newlinestretch{\@spacing}%
  850.   }%
  851.  
  852. %%%%%%    Front Matter Parameters
  853. %
  854. %% The following commands set the respective field values so we
  855. %% can generate the title page, signature page, and abstract
  856. %% page automatically
  857. %
  858. \renewcommand{\author}[1]%
  859.   {\ifx\empty#1\empty\else\gdef\@author{#1}\fi}
  860. \renewcommand{\title}[1]%
  861.   {\ifx\empty#1\empty\else\gdef\@title{#1}\fi}
  862.  
  863. \newcommand{\degree}[1]%
  864.   {\ifx\empty#1\empty\else\gdef\@degree{#1}\fi}
  865. %
  866. %% Is this a thesis, or a thesis proposal ?
  867. %
  868. \newif\ifthesisproposal
  869. \thesisproposalfalse % default to thesis, not thesis proposal
  870. %
  871. %% \department and \dept are synonymous
  872. %
  873. \newcommand{\department}[1]%
  874.   {\ifx\empty#1\empty\else\gdef\@department{#1}\gdef\@dept{#1}\fi}
  875. \newcommand{\dept}[1]%
  876.   {\ifx\empty#1\empty\else\gdef\@department{#1}\gdef\@dept{#1}\fi}
  877. %
  878. %% date stuff
  879. %% \gradyear and \copyrightyear are synonymous
  880. %
  881. \newcommand{\gradyear}[1]%
  882.   {\ifx\empty#1\empty\else\gdef\@gradyear{#1}\gdef\@copyrightyear{#1}\fi}
  883. \newcommand{\copyrightyear}[1]%
  884.   {\ifx\empty#1\empty\else\gdef\@gradyear{#1}\gdef\@copyrightyear{#1}\fi}
  885. \newcommand{\copyrightpage}[1]%
  886.   {\ifx\empty#1\empty\else\gdef\@gradyear{#1}\gdef\@copyrightpage{#1}\fi}
  887. \newcommand{\submitdate}[1]%
  888.   {\ifx\empty#1\empty\else\gdef\@submitdate{#1}\fi}
  889. %
  890. %% use \principaladviser{} or \principaladvisor{}.  Choice also
  891. %% sets the default spelling of ``advisor/adviser''.
  892. %
  893. \def\advis@r{Advisor} % default spelling
  894. \newcommand{\principaladvisor}[1]%
  895.   {\ifx\empty#1\empty\else\gdef\@principaladvisor{#1}\fi}
  896. \newcommand{\principaladviser}[1]%
  897.   {\ifx\empty#1\empty\else\gdef\@principaladvisor{#1}\gdef\advis@r{Adviser}\fi}
  898. %
  899. %% Committee Chair
  900. %
  901. \newcommand{\committeechair}[1]%
  902.   {\ifx\empty#1\empty\else\gdef\@committeechair{#1}\fi}
  903. %
  904. %% readers
  905. %
  906. \newcommand{\firstreader}[1]%
  907.   {\ifx\empty#1\empty\else\gdef\@firstreader{#1}\fi}
  908. \newcommand{\secondreader}[1]%
  909.   {\ifx\empty#1\empty\else\gdef\@secondreader{#1}\fi}
  910. \newcommand{\thirdreader}[1]%
  911.   {\ifx\empty#1\empty\else\gdef\@thirdreader{#1}\fi}
  912. \newcommand{\fourthreader}[1]%
  913.   {\ifx\empty#1\empty\else\gdef\@fourthreader{#1}\fi}
  914. \newcommand{\fifthreader}[1]%
  915.   {\ifx\empty#1\empty\else\gdef\@fifthreader{#1}\fi}
  916. \newcommand{\sixthreader}[1]%
  917.   {\ifx\empty#1\empty\else\gdef\@sixthreader{#1}\fi}
  918.  
  919. %
  920. %% Department Head
  921. %
  922. \newcommand{\departmenthead}[1]%
  923.   {\ifx\empty#1\empty\else\gdef\@departmenthead{#1}\fi}
  924.  
  925. %
  926. %% bibliography databases
  927. %
  928. \newcommand{\bibfiles}[1]%
  929.   {\ifx\empty#1\empty\else\gdef\@bibfiles{#1}\fi}
  930.  
  931. %
  932. %% default values of private functions
  933. %
  934. \def\@title{}
  935. \def\@author{}
  936. \def\@bibfiles{}
  937. \def\@principaladvisor{}
  938. \def\@committeechair{}
  939. \def\@firstreader{}
  940. \def\@secondreader{}
  941. \def\@thirdreader{}
  942. \def\@fourthreader{}
  943. \def\@fifthreader{}
  944. \def\@sixthreader{}
  945. \def\@departmenthead{}
  946. \def\@submitdate{\ifcase\the\month\or
  947.  January\or February\or March\or April\or May\or June\or
  948.  July\or August\or September\or October\or November\or December\fi
  949.  \space \number\the\year}
  950. \def\@copyrightyear{\number\the\year}
  951. \def\@copyrightpage{}
  952. \def\@bibfiles{}
  953.  
  954. %% Switch for printing copyright notice on titlepage
  955. %
  956. \newif\ifcopyright
  957. \copyrightfalse % initially false by default
  958.  
  959. %% Switch for generating a title page
  960. %
  961. \newif\iftitlepage
  962. \titlepagetrue % initially true by default
  963.  
  964. %% Switch for generating a copyright page
  965. %
  966. \newif\ifcopyrightpage
  967. \copyrightpagetrue % initially true by default
  968.  
  969. %% Switch for generating a signature page
  970. %
  971. \newif\ifsignaturepage
  972. \signaturepagetrue % initially true by default
  973.  
  974. %% Switch for generating a list of figures
  975. %
  976. \newif\iffigurespage
  977. \figurespagetrue % initially true by default
  978.  
  979. %% Switch for generating a list of tables
  980. %
  981. \newif\iftablespage
  982. \tablespagetrue % initially true by default
  983.  
  984. %% Switch for generating a table of contents
  985. %
  986. \newif\ifcontentspage
  987. \contentspagetrue % initially true by default
  988.  
  989. %% Switch for generating a bibliography
  990. %
  991. \newif\ifbibpage
  992. \bibpagetrue % initially true by default
  993.  
  994. %% Switch to indicate whether chapters are \input{}'ed or
  995. %% \include{}'ed.  Not currently used.
  996. %
  997. \newif\ifusinginclude
  998. \usingincludefalse % initially false by default -- document uses \input{}
  999.  
  1000. %% Switch for relaxing the strict margin requirements
  1001. %% on the title page and signature page.  Default is to
  1002. %% rigidly adhere to the standard (but that's ugly)
  1003. %
  1004. \newif\ifstrictmargins
  1005. \strictmarginstrue % initially true by default
  1006.  
  1007. %% Switch for printing DEDICATION across the top of the dedication page
  1008. %
  1009. \newif\ifdedicationheading
  1010. \dedicationheadingfalse % initially false by default
  1011.  
  1012. %% Switch for indicating that the thesis has multiple volumes
  1013. %
  1014. \newif\ifmultivolume
  1015. \multivolumefalse % initially false by default
  1016.  
  1017. %%%%%%    Front Matter Commands and Environments
  1018. %%
  1019. %% \beforepreface
  1020. %%   --- create title, signature page
  1021. %%   --- redefined the \maketitle command here, but
  1022. %%       don't call it directly.  Use \beforepreface.
  1023. %%
  1024. %%   \begin{dedication}...\end{dedication}
  1025. %%   \begin{preface}...\end{preface}
  1026. %%   \begin{acknowledgements}...\end{acknowlegments}
  1027. %%   \prefacesection{other-title}
  1028. %%     --- followed by section text
  1029. %%   \contents
  1030. %%     --- prints table of contents, figures, and tables
  1031. %%   \begin{abstract}...\end{abstract}  or use
  1032. %%   \begin{summary}...\end{summary}
  1033. %% \afterpreface
  1034.  
  1035. \newcommand{\title@top}{%
  1036. % make sure that linestretch is already set to 1, and all
  1037. % grouping/sectioning commands have already been begun.
  1038.   \ifstrictmargins
  1039.     \ifnum \@marginsize = 4 % oldmargins
  1040.       \vspace*{50\p@}%
  1041.     \fi
  1042.     {\ }
  1043.    \vspace{0.1in}
  1044.    \begin{center}%
  1045.       \begin{quadspaced}%
  1046.       DISSERTATION\\
  1047.      
  1048.  
  1049. %THESIS\\
  1050.         {\expandafter{\@title}}\\
  1051.      \end{quadspaced}%
  1052.     \end{center}%
  1053.   \else%
  1054.     \begin{center}
  1055. %     \vspace*{\stretch{1}}%1
  1056.       %\vspace*{.1in}%1in
  1057.       %\begin{quadspaced}
  1058.         DISSERTATION\\
  1059.         \vspace{.6in}
  1060.         %\end{quadspaced}
  1061.         \begin{doublespaced}
  1062.        {\expandafter{\@title}}
  1063.      \end{doublespaced}
  1064.    \end{center}%
  1065.    
  1066.   \fi%
  1067. }
  1068.  
  1069. \newcommand{\title@text}{
  1070.  
  1071.  \begin{center}
  1072.  \begin{doublespaced}
  1073.     \ifthesisproposal
  1074.        %A Dissertation Proposal by\\
  1075. %A Dissertation by\\
  1076.        %Presented to\\
  1077.        %The Academic Faculty\\
  1078.     \else
  1079.        Submitted by\\
  1080.        %Presented to\\
  1081.        %The Academic Faculty\\
  1082.     \fi
  1083.     {\@author}\\
  1084.    {\@department}\\
  1085.    \vspace*{1in}
  1086.    In partial fulfillment of the requirements\\
  1087.    For the Degree of {\@degree}\\
  1088.     %\vfill{\@department}\\
  1089.     Colorado State University\\
  1090.     Fort Collins, Colorado\\
  1091.     {\@submitdate}
  1092. %    \ifcopyright
  1093. %      \\ \vspace*{.3in}% one line + 0.3in
  1094. %      Copyright \copyright\ {\@copyrightyear} by {\@author}
  1095. %    \fi
  1096.   \end{doublespaced}
  1097.  \end{center}
  1098.  \begin{tabbing}
  1099.       Doctoral \= Committee:\\
  1100.       %\null \vskip 20pt
  1101.       %\vskip 1\baselineskip
  1102.       %\hksip 1.5cm
  1103.       \\[-.5\baselineskip]
  1104.            \>Advisor: AAA. A. AAAA\\
  1105.            \>Co-Advisor: BBB.B.BBBB\\
  1106.       %\null\vskip 20pt
  1107.       %\vskip 1\baselineskip
  1108.       \\[-.5\baselineskip]
  1109.            \>CCC C. CCCC\\
  1110.            \>DDD D. DDDD\
  1111.        \end{tabbing}
  1112. }
  1113.  
  1114. \newcommand{\make@parttitle}[1]{%if argument is present, it's the part title
  1115.   \begingroup
  1116.     \newlinestretch{1}%
  1117.     \phantomsection%
  1118.     \title@top
  1119.     \ifstrictmargins
  1120.       \vspace*{0.5in}
  1121.      \begin{center}
  1122.        \begin{doublespaced}{\Huge\bfseries%
  1123.           \expandafter{\Makeuppercase{\partname}\space\Makeuppercase{\thepart}}\\
  1124.           \ifx\@empty#1\@empty\else%
  1125.             \expandafter{#1}\\
  1126.           \fi%
  1127.         }\end{doublespaced}
  1128.        \ \\
  1129.        by\\
  1130.        \ \\
  1131.        {\Large\bfseries{\@author}}\\
  1132.      \end{center}%
  1133.       \vfill
  1134.     \else%
  1135.       \vspace*{0.5in}
  1136.      \begin{center}
  1137.        \begin{doublespaced}{\Huge\bfseries%
  1138.           \expandafter{\Makeuppercase{\partname}\space\Makeuppercase{\thepart}}\\
  1139.           \ifx\@empty#1\@empty\else%
  1140.             \expandafter{#1}\\
  1141.           \fi%
  1142.         }\end{doublespaced}
  1143.        \vspace*{1.35in}
  1144.        \ \\
  1145.        by\\
  1146.        \ \\
  1147.        {\Large\bfseries{\@author}}\\
  1148.      \end{center}%
  1149.       \vfill
  1150.     \fi%
  1151.   \endgroup%
  1152. }%makeparttitle
  1153.  
  1154. \renewcommand{\maketitle}{%
  1155.   %\interlinepenalty \@M
  1156.   \normalfont
  1157.   \begingroup
  1158.     \newlinestretch{1}%
  1159.     \begin{titlepage}%
  1160.       \phantomsection%
  1161.       \pdfbookmark[0]{Titlepage}{title}%
  1162.       \title@top%
  1163.       \ifstrictmargins%
  1164.         \vfill
  1165.         \title@text% contains a \vfill between \degree and \department
  1166.       \else%
  1167.         \vfill%\vspace*{1.35in}
  1168.         \title@text% contains a \vfill between \degree and \department
  1169.         \vspace*{.2in}%
  1170.       \fi%
  1171.       \setcounter{page}{1}%
  1172.     \end{titlepage}% this has a \newpage
  1173.   \endgroup%
  1174.   \setcounter{page}{2}%
  1175. }%maketitle
  1176.  
  1177.  
  1178. %
  1179. %% Insert Optional Copyright Page
  1180. %
  1181. \newcommand{\makecopyrightpage}{%
  1182.   %\interlinepenalty \@M
  1183.   \normalfont
  1184.   \begingroup
  1185.     \newlinestretch{1}%
  1186.     \begin{titlepage}%
  1187.       \begin{center}
  1188.      \begin{doublespaced}
  1189.         \vfill
  1190.         \vspace*{3.5in}
  1191.         Copyright by {\@author} {\@copyrightyear}\\
  1192.         All Rights Reserved
  1193.         \vfill
  1194.      \end{doublespaced}
  1195.      \end{center}
  1196.      \setcounter{page}{1}%
  1197.     \end{titlepage}% this has a \newpage
  1198.   \endgroup%
  1199.   \setcounter{page}{2}%
  1200. }
  1201.  
  1202.  
  1203. %
  1204. %% stuff to generate a signature page
  1205. %
  1206.  
  1207. \newcommand{\makesignature}{%
  1208.   \newpage
  1209.   \addcontentsline{toc}{chapter}%
  1210.     {\texorpdfstring{\Makeuppercase{Signature}}{Signature}}
  1211.  \begin{center}
  1212.  MMMM MMM University\\
  1213.  \end{center}
  1214.  \vspace*{1in}
  1215.  \vbox{
  1216.        \flushright{\@date}
  1217.  }
  1218.  \vspace{1em}
  1219.  \begin{oneandahalfspaced}
  1220.  \Makeuppercase{We hereby recommend that the dissertation prepared under
  1221.  our supervision by {\@author} entitled {\@title} be accepted as fulfilling
  1222.  in part requirements for the degree of \@degree}.\\
  1223.  \end{oneandahalfspaced}
  1224.  \vspace{.5in}
  1225.  
  1226.  
  1227.  \begin{center}
  1228.    \vskip 1\baselineskip
  1229.    \underline{Committee on Graduate Work} \\[1\baselineskip]
  1230.          \rule{3.8in}{1pt}\\%[-8pt]
  1231.        \makebox[3.8in][l]{{\@principaladvisor} (Adviser)}
  1232.        \rule{3.8in}{1pt}\\%[-8pt]
  1233.          \makebox[3.8in][l]{{\@firstreader} (Committee Member)}
  1234.          \rule{3.8in}{1pt}\\%[-8pt]
  1235.          \makebox[3.8in][l]{{\@secondreader} (Committee Member)}
  1236.          \rule{3.8in}{1pt}\\%[-8pt]
  1237.          \makebox[3.8in][l]{{\@thirdreader} (Committee Member)}
  1238.          \rule{3.8in}{1pt}\\%[-8pt]
  1239.          \makebox[3.8in][l]{{\@departmenthead} (Department Head)}
  1240.  \end{center}
  1241.  \setcounter{page}{2}%
  1242. }
  1243. %
  1244. %% Change \begin{abstract}...\end{abstract} to follow guidelines
  1245. %% and put the abstract on a separate page (checking @openright).
  1246. %
  1247. \renewenvironment{abstract}{%
  1248.   \typeout{*****************      Abstract     ******************}
  1249.   \if@openright\cleardoublepage\else\clearpage\fi
  1250.   \phantomsection%
  1251.   \addcontentsline{toc}{chapter}%
  1252.     %{\texorpdfstring{\Makeuppercase{Abstract of Thesis Proposal}}{Abstract of Thesis Proposal}}
  1253. {\texorpdfstring{\Makeuppercase{Abstract}}{Abstract}}
  1254.   %\chapter*{\MakeUppercase{Abstract of Thesis}}
  1255.       {\ }
  1256.    \vspace{-0.5in}
  1257.  \begin{center}
  1258.   %\MakeUppercase{Abstract of Thesis Proposal}\\
  1259. \MakeUppercase{Abstract}\\
  1260.  \vspace{24pt}
  1261.  \@title
  1262.  \end{center}
  1263.  \vspace{24pt}
  1264.   %\vskip 0.1in
  1265.  % \begingroup
  1266. %    %\hspace*{2.5em}
  1267. %    %% Adjust the line spacing: if it was less than 1 1/2,
  1268. %    %% increase it to 1 1/2; if it was between 1 1/2 and 2,
  1269. %    %% increase it to 2; otherwise, leave it as is.
  1270. %    \ifdim \baselinestretch pt < 1.25pt \newlinestretch{1.25}\else
  1271. %    \ifdim \baselinestretch pt < 1.66pt \newlinestretch{1.66}\fi\fi
  1272. %    }{\par\endgroup
  1273.    % \vspace{20pt}
  1274. %    \vbox{
  1275. %        \begin{singlespaced}
  1276. %        \flushright{
  1277. %            \@author\\
  1278. %            \@department\\
  1279. %            Colorado State University\\
  1280. %            Fort Collins, Colorado 80523\\
  1281. %            \@submitdate
  1282. %        }
  1283. %        \end{singlespaced}
  1284. %    }
  1285. }%abstract
  1286. %
  1287.  
  1288. %
  1289. %% \begin{dedication}...\end{dedication} formats a
  1290. %% dedication section
  1291. %
  1292. \newcommand{\dedicationtop}{\vspace*{\stretch{1}}}
  1293. \newcommand{\dedicationbottom}{\bigskip\bigskip\vspace*{\stretch{1}}}
  1294. \newenvironment{dedication}{%
  1295.   \typeout{*****************    Dedication    ******************}
  1296.   \if@openright\cleardoublepage\else\clearpage\fi
  1297.   \phantomsection%
  1298.   \addcontentsline{toc}{chapter}%
  1299.     {\texorpdfstring{\Makeuppercase{Dedication}}{Dedication}}
  1300.  \ifdedicationheading
  1301.  
  1302.  \begin{center}
  1303.    \MakeUppercase{Dedication}
  1304.  \end{center}
  1305.  \else
  1306.    \chapter*{}
  1307.  \fi
  1308.  \vskip 0.5in
  1309.  \begingroup
  1310.  \begin{itshape}\dedicationtop
  1311. }{\dedicationbottom\end{itshape}\par\endgroup}%dedication
  1312. %
  1313. %% \begin{acknowledgements}...\end{acknowledgements} formats an
  1314. %% acknowledgements section
  1315. %
  1316. \newenvironment{acknowledgements}{%
  1317.   \typeout{***************** Acknowledgements ******************}
  1318.   \if@openright\cleardoublepage\else\clearpage\fi
  1319.   \phantomsection%
  1320.   \addcontentsline{toc}{chapter}%
  1321.     {\texorpdfstring{\Makeuppercase{Acknowledgements}}{Acknowledgements}}
  1322. %  \chapter*{\MakeUppercase{Acknowledgements}}
  1323.       {\ } \vspace{-0.5in}\begin{center} \MakeUppercase{Acknowledgements} \end{center}
  1324.  \vskip 0.5in
  1325.  \begingroup
  1326. }{\par\endgroup}%Acknowledgements
  1327.  
  1328. %
  1329. %% \begin{autobiography}...\end{autobiography} formats an
  1330. %% autobiography section
  1331. %
  1332. \newenvironment{autobiography}{%
  1333.   \typeout{***************** Autobiography ******************}
  1334.   \if@openright\cleardoublepage\else\clearpage\fi
  1335.   \phantomsection%
  1336.   \addcontentsline{toc}{chapter}%
  1337.     {\texorpdfstring{\Makeuppercase{Autobiography}}{Autobiography}}
  1338.  \chapter*{\MakeUppercase{Autobiography}}
  1339.  \vskip 0.5in
  1340.  \begingroup
  1341. }{\par\endgroup}%Autobiography
  1342.  
  1343. %
  1344. %% \begin{listofsymbols}...\end{listofsymbols} formats an
  1345. %% autobiography section
  1346. %
  1347. \newenvironment{listofsymbols}{%
  1348.   \typeout{***************** List of Symbols ******************}
  1349.   \if@openright\cleardoublepage\else\clearpage\fi
  1350.   \phantomsection%
  1351.   \addcontentsline{toc}{chapter}%
  1352.     {\texorpdfstring{\Makeuppercase{List of Symbols}}{List of Symbols}}
  1353.  \chapter*{\MakeUppercase{List of Symbols}}
  1354.  \vskip 0.5in
  1355.  \begingroup
  1356. }{\par\endgroup}%List of Symbols
  1357.  
  1358.  
  1359.  
  1360. %
  1361. %% \begin{preface}...\end{preface} formats an
  1362. %% preface section
  1363. %
  1364. \newenvironment{preface}{%
  1365.   \typeout{*****************      Preface     ******************}
  1366.   \if@openright\cleardoublepage\else\clearpage\fi
  1367.   \phantomsection%
  1368.   \addcontentsline{toc}{chapter}%
  1369.     {\texorpdfstring{\Makeuppercase{Preface}}{Preface}}
  1370.  \chapter*{\MakeUppercase{Preface}}
  1371.  \vskip 0.5in
  1372.  \begingroup
  1373. }{\par\endgroup}%preface
  1374.  
  1375.  
  1376. %
  1377. %% beforepreface
  1378. %
  1379. \newcommand{\beforepreface}{%
  1380.   \newlinestretch{1.0}%
  1381.   \pagenumbering{roman}%
  1382.   \pagestyle{\front@pagestyle}%
  1383.   \iftitlepage%
  1384.     \maketitle%
  1385.   \fi%
  1386.   \ifmultivolume%
  1387.     \part{}%
  1388.   \fi%
  1389.   \ifcopyrightpage%
  1390.     \makecopyrightpage%
  1391.   \fi%
  1392.   \ifsignaturepage%
  1393.     \makesignature%
  1394.   \fi%
  1395.   \newlinestretch{\@spacing}%
  1396. }
  1397. %
  1398. %% \prefacesection is here for backward compatibility with
  1399. %% the GT-thesis.sty package, and to add preface sections
  1400. %% that are not already defined.  For Abstract, Preface,
  1401. %% Dedication, and Acknowledgements sections, use the
  1402. %% appropriate environments: \begin{abstract}...\end{abstract}
  1403. %% etc.
  1404. %
  1405. \newcommand{\prefacesection}[1]{%
  1406.   \if@openright\cleardoublepage\else\clearpage\fi
  1407.   \phantomsection%
  1408.   \addcontentsline{toc}{chapter}%
  1409.     {\texorpdfstring{\Makeuppercase{#1}}{#1}}
  1410.  \newlinestretch{\@spacing}
  1411.  \chapter*{\MakeUppercase{#1}}
  1412.  \vskip 0.5in
  1413. }
  1414. \newcommand{\afterpreface}{%
  1415.   \if@draft%
  1416.   \else%
  1417.     \if@twoside%
  1418.       \if@openright%
  1419.         \cleardoublepage%
  1420.       \fi%
  1421.     \fi%
  1422.   \fi%
  1423.   \newpage%
  1424.   \pagenumbering{arabic}%
  1425.   \pagestyle{\body@pagestyle}%
  1426.   \newlinestretch{\@spacing}%
  1427. }
  1428.  
  1429. % dummy commands to prevent recursion errors...
  1430. \newcommand{\gtcontentsname}{}
  1431. \newcommand{\toccontentlinestring}{}
  1432. \newcommand{\tocpdfbookmarkstring}{}
  1433. \newcommand{\gtlistfigurename}{}
  1434. \newcommand{\lofcontentlinestring}{}
  1435. \newcommand{\lofpdfbookmarkstring}{}
  1436. \newcommand{\gtlisttablename}{}
  1437. \newcommand{\lotcontentlinestring}{}
  1438. \newcommand{\lotpdfbookmarkstring}{}
  1439.  
  1440. \newcommand{\settocstring}[1]{%
  1441.   \renewcommand{\gtcontentsname}{#1}
  1442.   %\renewcommand{\contentsname}{\Makeuppercase{#1}}  %RSS
  1443.  \renewcommand{\contentsname}{\  \vspace{-0.5in}  \\ \Makeuppercase{#1}} %RSS
  1444.   \renewcommand{\toccontentlinestring}{%
  1445.     \texorpdfstring{\Makeuppercase{#1}}{#1}
  1446.  }
  1447.  \renewcommand{\tocpdfbookmarkstring}{#1}
  1448. }
  1449. \newcommand{\setlofstring}[1]{%
  1450.   \renewcommand{\gtlistfigurename}{#1}
  1451.  \renewcommand{\listfigurename}{\Makeuppercase{#1}}
  1452.  \renewcommand{\listfigurename}{\  \vspace{-.5in}  \\ \Makeuppercase{#1}} %RSS
  1453.   \renewcommand{\lofcontentlinestring}{\texorpdfstring{\Makeuppercase{#1}}{#1}}
  1454.  \renewcommand{\lofpdfbookmarkstring}{#1}
  1455. }
  1456. \newcommand{\setlotstring}[1]{%
  1457.   \renewcommand{\gtlisttablename}{#1}
  1458. %  \renewcommand{\listtablename}{\Makeuppercase{#1}} %RSS
  1459.   \renewcommand{\listtablename}{\  \vspace{-0.5in}  \\ \Makeuppercase{#1}} %RSS
  1460.   \renewcommand{\lotcontentlinestring}{%
  1461.     \texorpdfstring{\Makeuppercase{#1}}{#1}
  1462.  }
  1463.  \renewcommand{\lotpdfbookmarkstring}{#1}
  1464. } \settocstring{Table of Contents} \setlofstring{List of Figures}
  1465. \setlotstring{List of Tables}
  1466.  
  1467. %
  1468. %% All this junk is for handling the spacing in the TOC, LOF, and LOT.
  1469. %
  1470. \newlength{\gt@tocentryskip@value}
  1471. \newlength{\gt@beforepartskip@value}
  1472. \newlength{\gt@beforechapskip@value}
  1473. \newlength{\gt@beforesecskip@value}
  1474. \newlength{\gt@beforesubsecskip@value}
  1475. \newlength{\gt@beforesubsubsecskip@value}
  1476. \newlength{\gt@beforeparaskip@value}
  1477. \newlength{\gt@beforesubparaskip@value}
  1478. \newlength{\gt@beforefigskip@value}
  1479. \newlength{\gt@beforetableskip@value}
  1480.  
  1481. \def\set@gttocskip#1{%
  1482.   \setlength{\gt@tocentryskip@value}{#1}
  1483.   % set base lengths
  1484.   \setlength{\gt@beforepartskip@value}{2\gt@tocentryskip@value}
  1485.  \setlength{\gt@beforechapskip@value}{1.5\gt@tocentryskip@value}
  1486.  \setlength{\gt@beforesecskip@value}{\gt@tocentryskip@value}
  1487.  \setlength{\gt@beforesubsecskip@value}{\gt@tocentryskip@value}
  1488.  \setlength{\gt@beforesubsubsecskip@value}{\gt@tocentryskip@value}
  1489.  \setlength{\gt@beforeparaskip@value}{\gt@tocentryskip@value}
  1490.  \setlength{\gt@beforesubparaskip@value}{\gt@tocentryskip@value}
  1491.  \setlength{\gt@beforefigskip@value}{\gt@tocentryskip@value}
  1492.  \setlength{\gt@beforetableskip@value}{\gt@tocentryskip@value}
  1493.   % add glue
  1494.   \addtolength{\gt@beforepartskip@value}{\z@ \@plus\p@}
  1495.  \addtolength{\gt@beforechapskip@value}{\z@ \@plus\p@}
  1496.  \addtolength{\gt@beforesecskip@value}{\z@ \@plus.2\p@}
  1497.  \addtolength{\gt@beforesubsecskip@value}{\z@ \@plus.2\p@}
  1498.  \addtolength{\gt@beforesubsubsecskip@value}{\z@ \@plus.2\p@}
  1499.  \addtolength{\gt@beforeparaskip@value}{\z@ \@plus.2\p@}
  1500.  \addtolength{\gt@beforesubparaskip@value}{\z@ \@plus.2\p@}
  1501.  \addtolength{\gt@beforefigskip@value}{\z@ \@plus.2\p@}
  1502.  \addtolength{\gt@beforetableskip@value}{\z@ \@plus.2\p@}
  1503. } \set@gttocskip{10pt}
  1504.  
  1505. % gobble the pagenumber
  1506. \newcommand*{\l@part@pagenumfont}[1]{}
  1507. % note: we don't do the fancy volume title centering here, because
  1508. % we use {part} for the \labelchaptersintableofcontents stuff.  And
  1509. % that is NOT centered.
  1510. \renewcommand*{\l@part}[2]{%
  1511.   \ifnum \c@tocdepth >-2\relax
  1512.     \addpenalty{-\@highpenalty}%
  1513.     \addvspace{\gt@beforepartskip@value}%
  1514.     \setlength\@tempdima{3em}%
  1515.     \begingroup
  1516.       \parindent \z@ \rightskip \@pnumwidth
  1517.       \parfillskip -\@pnumwidth
  1518.       \interlinepenalty\@M
  1519.       {\leavevmode
  1520.       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss \l@part@pagenumfont{#2}}}\par
  1521.       \nobreak
  1522.         \global\@nobreaktrue
  1523.         \everypar{\global\@nobreakfalse\everypar{}}%
  1524.     \endgroup
  1525.   \fi}
  1526. \newcommand*{\gt@dottedtocline}[5]{%
  1527.   \ifnum #1>\c@tocdepth \else
  1528.     \addvspace{\gt@@toclineskip}
  1529.    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
  1530.     \parindent #2\relax\@afterindenttrue
  1531.     \interlinepenalty\@M
  1532.     \leavevmode
  1533.     \@tempdima #3\relax
  1534.     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
  1535.     {#4}\nobreak
  1536.     \leaders\hbox{$\m@th
  1537.        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
  1538.        mu$}\hfill
  1539.     \nobreak
  1540.     \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
  1541.      \par}%
  1542.   \fi}
  1543. \renewcommand*\l@chapter[2]{%
  1544.   \ifnum \c@tocdepth >\m@ne
  1545.     \addpenalty{-\@highpenalty}%
  1546.     \addvspace{\gt@beforechapskip@value}%
  1547.     \setlength\@tempdima{2em}% was 1.5em, but that's too small.  Add 0.5em to all others
  1548.     \begingroup
  1549.       \parindent \z@ \rightskip \@pnumwidth
  1550.       \parfillskip -\@pnumwidth
  1551.       \leavevmode
  1552.       \advance\leftskip\@tempdima
  1553.       \hskip -\leftskip
  1554.       #1\nobreak\normalfont\normalcolor
  1555.       \leaders\hbox{$\m@th
  1556.        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
  1557.    mu$}\hfill
  1558.      \nobreak
  1559.      \hb@xt@\@pnumwidth{\hss #2}
  1560.      \par
  1561.      \penalty\@highpenalty
  1562.    \endgroup
  1563.  \fi}
  1564. \renewcommand*\l@section{%
  1565.   \let\gt@@toclineskip=\gt@beforesecskip@value
  1566.   \gt@dottedtocline{1}{2.0em}{2.3em}}
  1567. \renewcommand*\l@subsection{%
  1568.   \let\gt@@toclineskip=\gt@beforesubsecskip@value
  1569.   \gt@dottedtocline{2}{4.3em}{3.2em}}
  1570. \renewcommand*\l@subsubsection{%
  1571.   \let\gt@@toclineskip=\gt@beforesubsubsecskip@value
  1572.   \gt@dottedtocline{3}{7.5em}{4.1em}}
  1573. \renewcommand*\l@paragraph{%
  1574.   \let\gt@@toclineskip=\gt@beforeparaskip@value
  1575.   \gt@dottedtocline{4}{10.5em}{5em}}
  1576. \renewcommand*\l@subparagraph{%
  1577.   \let\gt@@toclineskip=\gt@beforesubparaskip@value
  1578.   \gt@dottedtocline{5}{12.5em}{6em}}
  1579. \renewcommand*\l@figure{%
  1580.   \let\gt@@toclineskip=\gt@beforefigskip@value
  1581.   \gt@dottedtocline{1}{1.5em}{2.3em}}% this is indented 1.5em so that
  1582.                                      % if you wish, you can a 'Figure' header
  1583.                                      % centered above the numbers using \addtocontents
  1584. \renewcommand*\l@table{%
  1585.   \let\gt@@toclineskip=\gt@beforetableskip@value
  1586.   \gt@dottedtocline{1}{1.5em}{2.3em}}% ditto
  1587.  
  1588. \newlength{\gt@tmpa}
  1589. \newcommand{\do@figurespage}{%
  1590.   \iffigurespage
  1591.     \if@openright\cleardoublepage\else\clearpage\fi
  1592.     % must clear page here, so that phantomsection\addcontentsline is on the correct page
  1593.     \phantomsection%
  1594.     \addcontentsline{toc}{chapter}{\lofcontentlinestring}
  1595.    \settoheight{\gt@tmpa}{A}
  1596.    \set@gttocskip{\gt@tmpa}
  1597.    {\newlinestretch{1}
  1598.     \listoffigures
  1599.    }
  1600.     \newpage
  1601.  \fi
  1602. }
  1603. \newcommand{\do@tablespage}{%
  1604.   \iftablespage
  1605.     \if@openright\cleardoublepage\else\clearpage\fi
  1606.     % must clear page here, so that phantomsection\addcontentsline is on the correct page
  1607.     \phantomsection%
  1608.     \addcontentsline{toc}{chapter}{\lotcontentlinestring}
  1609.    \settoheight{\gt@tmpa}{A}
  1610.    \set@gttocskip{\gt@tmpa}
  1611.    {\newlinestretch{1}
  1612.     \listoftables
  1613.    }
  1614.    \newpage
  1615.  \fi
  1616. }
  1617. \newcommand{\do@contentspage}{%
  1618.   \ifcontentspage
  1619.     \if@openright\cleardoublepage\else\clearpage\fi
  1620.     % must clear page here, so that phantomsection\addcontentsline is on the correct page
  1621.     \phantomsection%
  1622.     \pdfbookmark[0]{\tocpdfbookmarkstring}{toc}%
  1623.     \settoheight{\gt@tmpa}{A}
  1624.    \set@gttocskip{\gt@tmpa}
  1625.     {\newlinestretch{1}
  1626.     \tableofcontents
  1627.     }
  1628.    \newpage
  1629.  \fi
  1630. }
  1631. \newcommand{\do@losapage}{}
  1632. \newcommand{\do@glossarypage}{}
  1633. \newcommand{\do@indexpage}{}
  1634.  
  1635. \newcommand{\contents}{%
  1636.   \newpage
  1637.   \newlinestretch{\@spacing}
  1638.  \do@contentspage
  1639.  \do@tablespage
  1640.  \do@figurespage
  1641.  \do@losapage
  1642.  \do@glossarypage
  1643. }
  1644.  
  1645. %%%%%%    Main Matter Commands and Environments
  1646. %%
  1647. %% redefine chapter headings style
  1648. %% redefine appendix headings style
  1649. %% redefine section headings style
  1650. %% number figures and tables sequentially throughout, rather
  1651. %%   than restarting for each chapter.  Ditto equations.
  1652. %% redefine macro for floats (incl. figures and tables)
  1653. %%   so that single spacing is used
  1654. %% define a "gtindent" command for paragraph indents:
  1655. %%   blank line + six space first line indentation
  1656. %% settocdepth - use this to change how "deep" to number
  1657. %%   in the table of contents for different sections; e.g.
  1658. %%   subsubsections for chapters, then switch to chapter-only
  1659. %%   for appendices.
  1660.  
  1661. % This package uses David Carlisle's \@removefromreset command as
  1662. % specified in the remreset package available from CTAN as
  1663. % macros/latex/contrib/supported/carlisle/remreset.sty
  1664. % It is \provided here as a convenience to the user, and with
  1665. % David Carlisle's permission.  remreset.sty is licensed under
  1666. % the LPPL; David has explicitly given permission to include
  1667. % it here, under the GPL.
  1668. % START OF DAVID CARLISLE'S CODE
  1669. \newcommand{\@removefromreset}[2]{{%
  1670.   \expandafter\let\csname c@#1\endcsname\@removefromreset
  1671.   \def\@elt##1{%
  1672.     \expandafter\ifx\csname c@##1\endcsname\@removefromreset
  1673.     \else
  1674.       \noexpand\@elt{##1}%
  1675.     \fi}%
  1676.   \expandafter\xdef\csname cl@#2\endcsname{%
  1677.     \csname cl@#2\endcsname}}}
  1678. % END OF DAVID CARLISLE'S CODE
  1679. %%%%% See http://www.tex.ac.uk/cgi-bin/texfaq2html?label=running-nos
  1680.  
  1681. %
  1682. %% Figure`s and tables are to be numbered sequentially throughout the
  1683. %% thesis, rather than within chapters; for style consistency, do
  1684. %% equations the same.
  1685. %
  1686. %\@removefromreset{figure}{chapter}
  1687. %\@removefromreset{table}{chapter}
  1688. %\@removefromreset{equation}{chapter}
  1689. %\def\thefigure{\@arabic\c@figure}
  1690. %\def\thetable{\@arabic\c@table}
  1691. %\def\theequation{\arabic{equation}}
  1692.  
  1693. %
  1694. %% Redefine the macro used for floats (including figures and tables)
  1695. %% so that single spacing is used.
  1696. %% (Note \def\figure{\@float{figure}set single spacing} doesn't work
  1697. %%  because figure has an optional argument)
  1698. %%
  1699. %% This code was copied directly from latex.ltx, but with the
  1700. %% \newlinespacing{} macro added to it.
  1701. %
  1702. \def\@xfloat #1[#2]{%
  1703.   \@nodocument
  1704.   \def \@captype {#1}%
  1705.    \def \@fps {#2}%
  1706.    \@onelevel@sanitize \@fps
  1707.    \def \reserved@b {!}%
  1708.    \ifx \reserved@b \@fps
  1709.      \@fpsadddefault
  1710.    \else
  1711.      \ifx \@fps \@empty
  1712.        \@fpsadddefault
  1713.      \fi
  1714.    \fi
  1715.    \ifhmode
  1716.      \@bsphack
  1717.      \@floatpenalty -\@Mii
  1718.    \else
  1719.      \@floatpenalty-\@Miii
  1720.    \fi
  1721.   \ifinner
  1722.      \@parmoderr\@floatpenalty\z@
  1723.   \else
  1724.     \@next\@currbox\@freelist
  1725.       {%
  1726.        \@tempcnta \sixt@@n
  1727.        \expandafter \@tfor \expandafter \reserved@a
  1728.          \expandafter :\expandafter =\@fps
  1729.          \do
  1730.           {%
  1731.            \if \reserved@a h%
  1732.              \ifodd \@tempcnta
  1733.              \else
  1734.                \advance \@tempcnta \@ne
  1735.              \fi
  1736.            \fi
  1737.            \if \reserved@a t%
  1738.              \@setfpsbit \tw@
  1739.            \fi
  1740.            \if \reserved@a b%
  1741.              \@setfpsbit 4%
  1742.            \fi
  1743.            \if \reserved@a p%
  1744.              \@setfpsbit 8%
  1745.            \fi
  1746.            \if \reserved@a !%
  1747.              \ifnum \@tempcnta>15
  1748.                \advance\@tempcnta -\sixt@@n\relax
  1749.              \fi
  1750.            \fi
  1751.            }%
  1752.        \@tempcntb \csname ftype@\@captype \endcsname
  1753.        \multiply \@tempcntb \@xxxii
  1754.        \advance \@tempcnta \@tempcntb
  1755.        \global \count\@currbox \@tempcnta
  1756.        }%
  1757.     \@fltovf
  1758.   \fi
  1759.   \global \setbox\@currbox
  1760.     \color@vbox
  1761.       \normalcolor
  1762.       \vbox \bgroup
  1763.         \newlinestretch{1.0}
  1764.        \hsize\columnwidth
  1765.        \@parboxrestore
  1766.        \@floatboxreset
  1767. }
  1768.  
  1769. % Redefine the macro used for caption labels, for a (slightly)
  1770. % fancier format.  Feel free to use the caption2 package instead...
  1771. \long\def\@makecaption#1#2{%
  1772.   \vskip\abovecaptionskip
  1773.   \sbox\@tempboxa{\textbf{#1: }#2}%
  1774.   \ifdim \wd\@tempboxa >\hsize
  1775.     \textsf{\textbf{#1: }}#2\par
  1776.  \else
  1777.    \global \@minipagefalse
  1778.    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  1779.   \fi
  1780.   \vskip\belowcaptionskip}
  1781.  
  1782. % Redefine the macro used for footnotes to use single spacing
  1783. \long\def\@footnotetext#1{%
  1784.   \insert\footins{%
  1785.     \newlinestretch{1.0}%
  1786.     \footnotesize%
  1787.     \interlinepenalty\interfootnotelinepenalty%
  1788.     \splittopskip\footnotesep%
  1789.     \splitmaxdepth \dp\strutbox \floatingpenalty \@MM%
  1790.     \hsize\columnwidth \@parboxrestore%
  1791.     \edef\@currentlabel{%
  1792.       \csname p@footnote\endcsname\@thefnmark%
  1793.     }%
  1794.     \@makefntext%
  1795.     {\rule{\z@}{\footnotesep}\ignorespaces%
  1796.       #1\strut}%
  1797.   }%
  1798. }
  1799.  
  1800. %
  1801. %% Paragraph indents (6 spaces)
  1802. %% inserts a blank line and then indents the paragraph by 6 spaces
  1803. %
  1804. \newcommand{\gtindent}{\par \hspace{0.25in}}
  1805.  
  1806. %
  1807. %% Chapter headings - centered, all caps, chapter number - roman numeral
  1808. %
  1809. %
  1810. %% Use \labelchaptersintableofcontents to insert an entry into the toc
  1811. %% that says ``CHAPTERS'' just before Chapter 1.
  1812. %  Use \labelappendicesintableofcontents to insert an entry into the toc
  1813. %% that says ``APPENDICES'' just before Appendix A.
  1814. %
  1815. \let\orig@contentsline=\contentsline
  1816. \newcommand{\labelchaptersintableofcontents}[1][CHAPTERS]{%
  1817.   \addtocontents{toc}{\protect\orig@contentsline{part}{#1}{}}
  1818. }
  1819. \newcommand{\labelappendicesintableofcontents}[1][APPENDICES]{%
  1820.   \addtocontents{toc}{\protect\orig@contentsline{part}{#1}{}}%
  1821. }
  1822.  
  1823. \renewcommand{\chaptername}{CHAPTER}
  1824. \renewcommand{\appendixname}{APPENDIX}
  1825. \renewcommand{\thepart}{\@Roman\c@part}
  1826. \renewcommand{\partname}{Volume}
  1827.  
  1828. %
  1829. %% \thegtchapter is used so that we can have ROMAN numbers in the
  1830. %% chapter headings at the beginning of each chapter, but use
  1831. %% \thechapter for ARABIC numbers in the running heads on each
  1832. %% page within the chapter.
  1833. %%
  1834. %% You can Change this behavior by redefining \thegtchapter
  1835. %% within your document:
  1836. %% \renewcommand{\thegtchapter}{\thechapter}
  1837. %
  1838. \newcommand{\thegtchapter}{\@Roman\c@chapter}
  1839. \def\chapapp@tocdepth{\expandafter\chapter@tocdepth}
  1840. %
  1841. %% The following two def's provide the Indirection needed to work
  1842. %% with hyperref package, since hyperref redefines @chapter and
  1843. %% @schapter
  1844. %
  1845. \def\chapapp@chapter{\chap@chapter}
  1846. \def\chapapp@schapter{\chap@schapter}
  1847. %
  1848. %% Make @chapter and @schapter wrappers for (chap@chapter or app@chapter)
  1849. %% and (chap@schapter or app@schapter).  This indirection is necessary to
  1850. %% work well with the hyperref package.
  1851. %
  1852. \def\my@empty{}
  1853. \def\@chapter[#1]#2{%
  1854.   \def\my@temp{#1}%
  1855.   \ifx\my@temp\my@empty
  1856.     \chapapp@chapter{#2}
  1857.  \else
  1858.    \chapapp@chapter[#1]{#2}
  1859.  \fi
  1860. }
  1861. \def\@schapter#1{%
  1862.   \chapapp@schapter{#1}
  1863. }
  1864. %
  1865. %% The actual guts of the chapter heading routines
  1866. %
  1867. \renewcommand{\chapter}{%
  1868.   \if@openright\cleardoublepage\else\clearpage\fi
  1869.   \if@tcpage% DO NOT use the \front@pagestyle macro here.
  1870.     {\thispagestyle{tcplain}}
  1871.  \else
  1872.    {\thispagestyle{plain}}%report.cls temporarily resets pagestyle to plain. Do the same.
  1873.   \fi
  1874.   \settocdepth{\chapapp@tocdepth}
  1875.  \global\@topnum\z@
  1876.  \@afterindentfalse
  1877.  \secdef\@chapter\@schapter
  1878. }
  1879. \def\chap@chapter[#1]#2{%
  1880.   \ifnum \c@secnumdepth >\m@ne
  1881.     \refstepcounter{chapter}%
  1882.     \typeout{\@chapapp\space\thegtchapter.}%
  1883.     \addcontentsline{toc}{chapter}%
  1884.       {\texorpdfstring%
  1885.         {\protect\numberline{\thegtchapter}\Makeuppercase{#1}}%
  1886.         {Chapter \thechapter\space\textemdash\space#1}}%
  1887.   \else
  1888.     \addcontentsline{toc}{chapter}%
  1889.       {\texorpdfstring{\Makeuppercase{#1}}{#1}}%
  1890.   \fi
  1891.   \chaptermark{#1}%
  1892.   \if@twocolumn
  1893.     \@topnewpage[\@makechapterhead{#2}]%
  1894.   \else
  1895.     \@makechapterhead{#2}%
  1896.     \@afterheading
  1897.   \fi
  1898. }
  1899. \def\@makechapterhead#1{%
  1900.   \ifnum \@marginsize = 4 % oldmargins
  1901.     \vspace*{50\p@}%
  1902.   \fi
  1903.   \vspace*{-0.5in}   %RSS
  1904.   { \parindent \z@ \raggedright \normalfont
  1905.    \ifnum \c@secnumdepth >\m@ne
  1906.      \centering \Large \bfseries \@chapapp\space \thegtchapter
  1907.      \par\nobreak
  1908.      \vskip 30\p@
  1909.    \fi
  1910.    \interlinepenalty\@M
  1911.    \centering \Large \bfseries \MakeUppercase{#1}\par\nobreak
  1912.    \vskip 30\p@
  1913.  }
  1914. }
  1915. \def\chap@schapter#1{%
  1916.   \if@twocolumn
  1917.     \@topnewpage[\@makeschapterhead{#1}]%
  1918.   \else
  1919.     \@makeschapterhead{#1}%
  1920.     \@afterheading
  1921.   \fi
  1922. }
  1923. \def\@makeschapterhead#1{%
  1924.   \ifnum \@marginsize = 4 % oldmargins
  1925.     \vspace*{50\p@}%
  1926.   \fi
  1927.   { \parindent \z@ \raggedright \normalfont
  1928.    \interlinepenalty\@M
  1929.    \centering \Large \bfseries #1\par\nobreak
  1930.    \vskip 30\p@
  1931.  }
  1932. }
  1933. %
  1934. %% Support for multi-volume thesis.
  1935. %%
  1936. %% in the premable, set \multivolumetrue and then
  1937. %% use the \part{} commannd where you want volume 2
  1938. %% to begin, etc.  Do not give names to your volumes (that is,
  1939. %% use ``\part{}'' and not ``\part{Some title}''), because
  1940. %% the Graduate Office Guidelines do not allow separate
  1941. %% titles for each volume.
  1942. %
  1943. % we temporarily set the pagenumber to a big negative number, for
  1944. % two reasons: 1) so that it doesn't duplicate the other page numbers,
  1945. % because the volume title pages are unnumbered and uncounted.  We
  1946. % can't merely allow the autoincrement of pagenum and then addtocounter{page}{-1},
  1947. % because then both pages would have the same number. 2) it's a BIG negative
  1948. % number because we allow it to increment as each \part is declared, so that
  1949. % the volume title pages don't duplicate each others pagenums.
  1950. \newcounter{part@savepagenum}
  1951. \newcounter{part@pagenum}
  1952. \setcounter{part@pagenum}{-101} % can't have more than 50 parts,
  1953. % but this number must be odd, or twopage dvi's are messed up.
  1954. \renewcommand{\part}{%
  1955.   \if@openright\cleardoublepage\else\clearpage\fi
  1956.   \thispagestyle{empty}%
  1957.   \phantomsection%
  1958.   \setcounter{part@savepagenum}{\value{page}}
  1959.  \setcounter{page}{\value{part@pagenum}}
  1960.  \if@twocolumn
  1961.    \onecolumn
  1962.    \@tempswatrue
  1963.  \else
  1964.    \@tempswafalse
  1965.  \fi
  1966.  \secdef\@part\@spart}
  1967.  
  1968. \def\@part[#1]#2{%
  1969.   \ifnum \c@secnumdepth >-2\relax
  1970.     \refstepcounter{part}
  1971.    \typeout{\partname\space\thepart.}%
  1972.     \addcontentsline{toc}{part}%
  1973.       {\texorpdfstring%
  1974.         {\noindent\protect\makebox[\@tocrmarg]{}%
  1975.           {\protect\makebox[\textwidth - \@tocrmarg - \@tocrmarg]% dadgum \hfill doesn't work without mbox...
  1976.           {\hfill\Makeuppercase{\partname}\space\protect{\thepart}\hspace{1em}\Makeuppercase{#1}\hfill}}}%
  1977.         {Volume \thepart}}%
  1978.   \else
  1979.     \addcontentsline{toc}{part}%
  1980.     {\texorpdfstring%
  1981.       {\Makeuppercase{#1}}%
  1982.       {#1}}%
  1983.   \fi
  1984.   \markboth{}{}
  1985.  {\interlinepenalty \@M
  1986.     \normalfont
  1987.     \ifnum \c@secnumdepth >-2\relax
  1988.       \make@parttitle{#1}
  1989.     \else
  1990.       \make@parttitle{}
  1991.     \fi}
  1992.     \@endpart}
  1993. \def\@spart#1{%
  1994.     {\interlinepenalty \@M
  1995.     \normalfont
  1996.     \make@parttitle{}}
  1997.    \@endpart}
  1998. \def\@endpart{%
  1999.   \vfill\newpage\addtocounter{part@pagenum}{1}%don't count this page
  2000.   \if@twoside
  2001.     \if@openright
  2002.       \null
  2003.       \thispagestyle{empty}%
  2004.       \newpage\addtocounter{part@pagenum}{1}%if we need to add another page, don't count it either
  2005.     \fi
  2006.   \fi
  2007.   \if@tempswa
  2008.     \twocolumn
  2009.   \fi
  2010.   \setcounter{page}{\value{part@savepagenum}}
  2011. }
  2012. %
  2013. %% Section
  2014. %% Heading 1: Large, bold, and italic, at left margin
  2015. %% Heading 2: Bold, at left margin
  2016. %% Heading 3: Italic, indented 0.25in from left margin
  2017. %
  2018. \renewcommand{\section}{%
  2019.   \@startsection{section}{1}{\z@}%
  2020.   {-3.25ex \@plus -1ex \@minus -.2ex}%
  2021.   {1.5ex \@plus.2ex}%
  2022.   %{\newlinestretch{1}\normalfont\Large\bfseries\itshape}
  2023. {\newlinestretch{1}\normalfont\Large\bfseries} }
  2024. \renewcommand{\subsection}{%
  2025.   \@startsection{subsection}{2}{\z@}%
  2026.   {-3.25ex\@plus -1ex \@minus -.2ex}%
  2027.   {1.5ex \@plus .2ex}%
  2028.   {\newlinestretch{1}\normalfont\normalsize\bfseries}
  2029. }
  2030. \renewcommand{\subsubsection}{%
  2031.   \@startsection{subsubsection}{3}{0.25in}%
  2032.   {-3.25ex\@plus -1ex \@minus -.2ex}%
  2033.   {1.5ex \@plus .2ex}%
  2034.   {\newlinestretch{1}\normalfont\normalsize\itshape}
  2035. }
  2036.  
  2037. \renewcommand{\appendix}{%
  2038.   \if@openright
  2039.     \cleardoublepage
  2040.   \else
  2041.     \clearpage
  2042.   \fi
  2043.   \renewcommand{\@chapapp}{\appendixname}
  2044.  \thispagestyle{plain}%    Do NOT use the \back@pagestyle macro here
  2045.   \settocdepth{\appendix@tocdepth}
  2046.  \setcounter{chapter}{0}%
  2047.   \setcounter{section}{0}%
  2048.   \def\thechapter{\@Alph\c@chapter}
  2049.  \def\chapapp@tocdepth{\expandafter\appendix@tocdepth}
  2050.  \def\chapapp@chapter{\app@chapter}
  2051.  \def\chapapp@schapter{\app@schapter}
  2052.  \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
  2053. }
  2054. \def\app@chapter[#1]#2{%
  2055.   \ifnum \c@secnumdepth >\m@ne
  2056.     \refstepcounter{chapter}%
  2057.     \typeout{\@chapapp\space\thechapter.}%
  2058.     \addcontentsline{toc}{chapter}%
  2059.     {\texorpdfstring%
  2060.       {\@chapapp\space\protect\numberline{\thechapter}\space---\space\Makeuppercase{#1}}%
  2061.       {Appendix\space\thechapter\space\textemdash\space#1}}%must specify "---" explicitly here
  2062.   \else
  2063.     \addcontentsline{toc}{chapter}{\Makeuppercase{#1}}%
  2064.   \fi
  2065.   \chaptermark{#1}%
  2066.   \if@twocolumn
  2067.     \@topnewpage[\@makeapphead{#2}]%
  2068.   \else
  2069.     \@makeapphead{#2}%
  2070.     \@afterheading
  2071.   \fi
  2072. }
  2073. \def\@makeapphead#1{%
  2074.   \ifnum \@marginsize = 4 % oldmargins
  2075.     \vspace*{50\p@}%
  2076.   \fi
  2077.   { \parindent \z@ \raggedright \normalfont
  2078.    \centering \Large \bfseries \appendixname\space \thechapter
  2079.    \par\nobreak
  2080.    \vskip 30\p@
  2081.    \interlinepenalty\@M
  2082.    \centering \Large \bfseries \MakeUppercase{#1}\par\nobreak
  2083.    \vskip 35\p@
  2084.  }
  2085. }
  2086. \def\app@schapter#1{%
  2087.   \if@twocolumn
  2088.     \@topnewpage[\@makesapphead{#1}]%
  2089.   \else
  2090.     \@makesapphead{#1}%
  2091.     \@afterheading
  2092.   \fi
  2093. }
  2094. \def\@makesapphead#1{%
  2095.   \ifnum \@marginsize = 4 % oldmargins
  2096.     \vspace*{50\p@}%
  2097.   \fi
  2098.   { \parindent \z@ \raggedright \normalfont
  2099.    \interlinepenalty\@M
  2100.    \centering \Large \bfseries #1\par\nobreak
  2101.    \vskip 30\p@
  2102.  }
  2103. }
  2104. %% end of \appendix environment definitions
  2105.  
  2106. %% \settocdepth - use this to change how "deep" to number
  2107. %%   in the table of contents for different sections; e.g.
  2108. %%   subsubsections for chapters, then switch to chapter-only
  2109. %%   for appendices.
  2110. %% tocdepth is reset to the value in \setchaptertocdepth
  2111. %%   at each \chapter{}, or to the value in \setappendixtocdepth
  2112. %%   at each \chapter{} after the \appendix command.  So, if
  2113. %%   you want to change the defaults, use \setchaptertocdepth and
  2114. %%   \setappendixtocdepth.  To temporarily change depth for the
  2115. %%   current section, use a different function: \settocdepth[x].
  2116. %%   You should never need to call \setcounter{tocdepth}{..}
  2117. %%   directly.
  2118. %%
  2119. %% 0 = chapter only
  2120. %% 1 = chapter + sections
  2121. %% 2 = chapter, section, subsection
  2122. %% 3 = chapter, section, subsection, subsubsection
  2123. %
  2124. \newcommand{\settocdepth}[1]{%
  2125.   \addtocontents{toc}{\protect\setcounter{tocdepth}{#1}}
  2126. }
  2127. \newcommand{\setappendixtocdepth}[1]{%
  2128.   \def\appendix@tocdepth{#1}
  2129. }
  2130. \newcommand{\setchaptertocdepth}[1]{%
  2131.   \def\chapter@tocdepth{#1}
  2132. }
  2133.  
  2134. %%%%%%    Back Matter Commands and Environments
  2135. %%
  2136. %% \beforepostface
  2137. %%   \thebibliography redefined so it matches GT's requirements
  2138. %%   \begin{vita}...\end{vita}
  2139. %%   \postfacesection{other-title}
  2140. %%     --- followed by section text
  2141. %% \afterpostface
  2142. %% \references
  2143. %%   --- creates the bibliography
  2144. %% \begin{postliminary}...\end{postliminary}
  2145. %%   --- preferred to \beforepostface and \afterpostface
  2146.  
  2147. %
  2148. %%%%%%    New formatting environments and commands.
  2149. %
  2150. %% \begin{postliminary} sets the pagestyle for the
  2151. %% postliminary sections.
  2152. %%
  2153. %% \end{postliminary} resets the pagestyle and
  2154. %% performs any other cleanup.
  2155. %
  2156. \newenvironment{postliminary}%
  2157.   {\pagestyle{\back@pagestyle}}%
  2158.   {\settocdepth{\chapter@tocdepth}%
  2159.    \pagestyle{\body@pagestyle}}
  2160.  
  2161. %
  2162. %% \begin{vita}...\end{vita} formats a
  2163. %% vita section
  2164. %
  2165. \newenvironment{vita}{%
  2166.   \typeout{*****************        Vita       ******************}
  2167.  \newlinestretch{\@spacing}
  2168.   \if@openright\cleardoublepage\else\clearpage\fi
  2169.   \phantomsection%
  2170.   \addcontentsline{toc}{chapter}%
  2171.     {\texorpdfstring{\Makeuppercase{Vita}}{Vita}}
  2172.  \chapter*{\MakeUppercase{Vita}}
  2173.  \@mkboth{\scshape\MakeUppercase{Vita}}%
  2174.           {\scshape\MakeUppercase{Vita}}%
  2175.   \vskip 0.5in
  2176.   \begingroup
  2177. }{\par\endgroup}%Vita
  2178.  
  2179. \newcommand{\beforepostface}{%
  2180.   \pagestyle{\back@pagestyle}
  2181. }%
  2182.  
  2183. %
  2184. %% \postfacesection is here for backward compatibility with
  2185. %% the GT-thesis.sty package, and to add postface sections
  2186. %% that are not already defined.  (Appendices are not postface
  2187. %% material).  Currently, the only predefined postface section
  2188. %% is Vita.  Use \begin{vita}...\end{vita}.  (``Index'' is a
  2189. %% postface section, but: it is defined in the add-on style
  2190. %% gatech-thesis-index.sty, and it doesn't use \postfacesection.)
  2191. %
  2192. \newcommand{\postfacesection}[1]{%
  2193.   \newlinestretch{\@spacing}
  2194.   \if@openright\cleardoublepage\else\clearpage\fi
  2195.   % must clear page here, so that phantomsection\addcontentsline is on the correct page
  2196.   \phantomsection%
  2197.   \addcontentsline{toc}{chapter}%
  2198.     {\texorpdfstring{\Makeuppercase{#1}}{#1}}
  2199.  \chapter*{\MakeUppercase{#1}}
  2200.  \@mkboth{\scshape\MakeUppercase{#1}}%
  2201.           {\scshape\MakeUppercase{#1}}%
  2202.   \pagestyle{\back@pagestyle}
  2203.  \vskip 0.5in
  2204. }
  2205. \newcommand{\afterpostface}{
  2206.   \settocdepth{\chapter@tocdepth}%
  2207.    \pagestyle{\body@pagestyle}
  2208. }
  2209. \newcommand{\refname}{References}
  2210. \newcommand{\references}{%
  2211.   \ifbibpage
  2212.     \typeout{*****************     References    ******************}
  2213.    \newlinestretch{1.0}
  2214.     \if@openright\cleardoublepage\else\clearpage\fi
  2215.     % must clear page here, so that phantomsection\addcontentsline is on the correct page
  2216.     \phantomsection%
  2217.     \addcontentsline{toc}{chapter}%
  2218.       {\texorpdfstring{\Makeuppercase{\refname}}{\refname}}
  2219. %    \bibliographystyle{gatech-thesis}
  2220.     \bibliography{\@bibfiles}
  2221.  \fi
  2222. }
  2223.  
  2224. %%%%%%%%%   BIBLIOGRAPHY %%%%%%%%%%%%%%%%%
  2225. %%
  2226. %% redefine ``thebibliography'' environment so that title conforms to Georgia
  2227. %% Tech format (all caps, center of page)
  2228. %%
  2229. \renewenvironment{thebibliography}[1]{
  2230. %  { \chapter*{\MakeUppercase{\refname}} %RSS
  2231.     \vspace*{.45in}%RSS
  2232.     {\begin{center} \large{\bf{\MakeUppercase{\refname}}} \end{center}
  2233.    \@mkboth{\scshape\MakeUppercase\refname}%
  2234.             {\scshape\MakeUppercase\refname}%
  2235.     \pagestyle{\body@pagestyle}% REFERENCES uses BODY pagestyle, not endmatter.
  2236.     \vskip 0.5in
  2237.   }
  2238.   \list{\@biblabel{\@arabic\c@enumiv}}%
  2239.   { \settowidth\labelwidth{\@biblabel{#1}}%
  2240.       \leftmargin\labelwidth
  2241.       \advance\leftmargin\labelsep
  2242.       \@openbib@code
  2243.       \usecounter{enumiv}%
  2244.       \let\p@enumiv\@empty
  2245.       \renewcommand\theenumiv{\@arabic\c@enumiv}
  2246.  }%
  2247.   \sloppy
  2248.   \clubpenalty4000
  2249.   \@clubpenalty \clubpenalty
  2250.   \widowpenalty4000%
  2251.   \sfcode`\.\@m}
  2252.   {\def\@noitemerr
  2253.     {\@latex@warning{Empty ``thebibliography'' environment}
  2254.  \pagestyle{\back@pagestyle}
  2255.  }%
  2256.   \endlist
  2257. }
  2258.  
  2259. %
  2260. %% Variations of \cleardoublepage that explicitly set the pagestyle
  2261. %% of any inserted blank page.
  2262. %
  2263. \newcommand{\clearemptydoublepage}%
  2264.   {{\pagestyle{empty}\cleardoublepage}}
  2265. \newcommand{\clearplaindoublepage}%
  2266.   {{\pagestyle{plain}\cleardoublepage}}
  2267. \newcommand{\cleartcplaindoublepage}%
  2268.   {{\pagestyle{tcplain}\cleardoublepage}}
  2269. \newcommand{\cleargtthesisdoublepage}%
  2270.   {{\pagestyle{gtthesis}\cleardoublepage}}
  2271.  
  2272. \newcommand{\setfrontpagestyle}[1]{%
  2273.   \gdef\front@pagestyle{#1}
  2274. }
  2275. \newcommand{\setbodypagestyle}[1]{%
  2276.   \gdef\body@pagestyle{#1}
  2277. }
  2278. \newcommand{\setbackpagestyle}[1]{%
  2279.   \gdef\back@pagestyle{#1}
  2280. }
  2281.  
  2282. %%%%%%    Page Styles
  2283. %
  2284. %% Redefine all four standard page styles (empty, plain, headings,
  2285. %% myheadings), based on the definitions in ``report'', so that they
  2286. %% conform to the GSO guidelines (and include draft information if
  2287. %% applicable).
  2288. %%
  2289. %% Also, define a new pagestyle ``tcplain'' which is just like ``plain'',
  2290. %% but puts page numbers in header (left/right 2page, or right 1page)
  2291. %% instead of at the bottom of the page.
  2292. %%
  2293. %% Then, define a new pagestyle ``gtthesis''. I like this one better
  2294. %% but the Graduate Studies Office doesn't. :-(
  2295. %
  2296. \renewcommand{\ps@empty}{
  2297.  \@tcpagefalse
  2298.  \let\@mkboth\@gobbletwo
  2299.  \def\@oddfoot{
  2300.    \if@draft
  2301.      \blDRAFT\hfil
  2302.      {\slshape\small\today}\hfil\brDRAFT
  2303.    \fi
  2304.  }%
  2305.   \let\@evenfoot\@oddfoot
  2306.   \def\@oddhead{
  2307.    \if@draft
  2308.      \tlDRAFT\hfil
  2309.      {\slshape\small\today}\hfil\trDRAFT
  2310.    \fi
  2311.  }%
  2312.   \let\@evenhead\@oddhead
  2313. }%ps@empty
  2314.  
  2315. %
  2316. %% Pagestyle ``plain''.
  2317. %
  2318. \renewcommand{\ps@plain}{%
  2319.   \@tcpagefalse%
  2320.   \let\@mkboth\@gobbletwo%
  2321.   \def\@oddfoot{%
  2322.     \if@draft\blDRAFT\fi%
  2323.     \hfil\thepage\hfil%
  2324.     \if@draft\brDRAFT\fi%
  2325.   }%
  2326.   \let\@evenfoot\@oddfoot%
  2327.   \def\@oddhead{%
  2328.     \if@draft%
  2329.       \tlDRAFT\hfil%
  2330.       {\slshape\small\today}\hfil\trDRAFT%
  2331.     \fi%
  2332.   }%
  2333.   \let\@evenhead\@oddhead%
  2334. }%ps@plain
  2335.  
  2336. %
  2337. %% Pagestyle ``headings''.
  2338. %
  2339. \if@twoside % if two-sided printing
  2340.   \renewcommand{\ps@headings}{%
  2341.     \@tcpagefalse%
  2342.     \let\@mkboth\markboth%
  2343.     \def\@oddfoot{%
  2344.       \if@draft%
  2345.         \blDRAFT\hfil%
  2346.         {\slshape\small\today}\hfil\brDRAFT%
  2347.       \fi%
  2348.     }%
  2349.     \let\@evenfoot\@oddfoot%
  2350.     \def\@oddhead{%
  2351.       \if@draft\tlDRAFT\fi%
  2352.       {\slshape\rightmark}\hfil%
  2353.       \thepage%
  2354.       \if@draft\trDRAFT\fi%
  2355.     }%
  2356.     \def\@evenhead{%
  2357.       \if@draft\tlDRAFT\fi%
  2358.       \thepage\hfil%
  2359.       {\slshape\leftmark}%
  2360.       \if@draft\trDRAFT\fi%
  2361.     }%
  2362.     \def\chaptermark##1{%
  2363.       \markboth
  2364.       {\MakeUppercase{%
  2365.         \ifnum\c@secnumdepth >\m@ne%
  2366.           \@chapapp\ \thechapter. \ %
  2367.         \fi ##1}%
  2368.       }{}%
  2369.     }%
  2370.     \def\sectionmark##1{%
  2371.       \markright%
  2372.       {\MakeUppercase{%
  2373.         \ifnum\c@secnumdepth >\z@%
  2374.           \thesection. \ %
  2375.         \fi ##1}%
  2376.       }%
  2377.     }%
  2378.   }%ps@headings
  2379. \else % if one-sided printing
  2380.   \renewcommand{\ps@headings}{%
  2381.     \@tcpagefalse%
  2382.     \let\@mkboth\markboth%
  2383.     \def\@oddfoot{%
  2384.       \if@draft%
  2385.         \blDRAFT\hfil%
  2386.         {\slshape\small\today}\hfil\brDRAFT%
  2387.       \fi%
  2388.     }%
  2389.     \def\@oddhead{%
  2390.       \if@draft\tlDRAFT\fi%
  2391.       {\slshape\rightmark}\hfil%
  2392.       \thepage%
  2393.       \if@draft\trDRAFT\fi%
  2394.     }%
  2395.     \def\chaptermark##1{%
  2396.       \markright%
  2397.       {\MakeUppercase{%
  2398.         \ifnum\c@secnumdepth >\m@ne%
  2399.           \@chapapp\ \thechapter. \ %
  2400.         \fi ##1}%
  2401.       }%
  2402.     }%
  2403.   }%ps@headings
  2404. \fi % @twoside
  2405.  
  2406. %
  2407. %% Pagestyle ``myheadings''.
  2408. %
  2409. \renewcommand{\ps@myheadings}{%
  2410.   \@tcpagefalse%
  2411.   \let\@mkboth\@gobbletwo%
  2412.   \def\@oddfoot{%
  2413.     \if@draft%
  2414.       \blDRAFT\hfil%
  2415.       {\slshape\small\today}\hfil\brDRAFT%
  2416.     \fi%
  2417.    }%
  2418.    \let\@evenfoot\@oddfoot%
  2419.    \def\@oddhead{%
  2420.      \if@draft\tlDRAFT\fi%
  2421.      {\slshape\rightmark}\hfil%
  2422.      \thepage%
  2423.      \if@draft\trDRAFT\fi%
  2424.    }%
  2425.    \def\@evenhead{%
  2426.      \if@draft\tlDRAFT\fi%
  2427.      \thepage\hfil%
  2428.      {\slshape\leftmark}%
  2429.      \if@draft\trDRAFT\fi%
  2430.    }%
  2431.    \let\chaptermark\@gobble\let\sectionmark\@gobble%
  2432. }%ps@myheadings
  2433.  
  2434. %
  2435. %% Pagestyle ``gtthesis'' (based on ``headings'').
  2436. %
  2437. \if@twoside % if two-sided printing
  2438.   \newcommand{\ps@gtthesis}{%
  2439.     \@tcpagetrue%
  2440.     \let\@mkboth\markboth%
  2441.     \def\@oddfoot{%
  2442.       \if@draft%
  2443.         \blDRAFT\hfil%
  2444.         {\slshape\small\today}\hfil\brDRAFT%
  2445.       \fi%
  2446.     }%
  2447.     \let\@evenfoot\@oddfoot%
  2448.     \def\@oddhead{%
  2449.       \if@draft\tlDRAFT\fi%
  2450.       {\slshape\rightmark}\hfil%
  2451.       \thepage%
  2452.       \if@draft\trDRAFT\fi%
  2453.     }%
  2454.     \def\@evenhead{%
  2455.       \if@draft\tlDRAFT\fi%
  2456.       \thepage\hfil%
  2457.       {\slshape\leftmark}%
  2458.       \if@draft\trDRAFT\fi%
  2459.     }%
  2460.     \def\chaptermark##1{%
  2461.       \markboth%
  2462.       {\textsc{%
  2463.         \ifnum\c@secnumdepth >\m@ne%
  2464.           \@chapapp\ \thechapter. \ %
  2465.         \fi ##1}%
  2466.       }{}%
  2467.     }%
  2468.     \def\sectionmark##1{%
  2469.       \markright%
  2470.       {\textsc{%
  2471.         \ifnum\c@secnumdepth >\z@%
  2472.           \thesection. \ %
  2473.         \fi ##1}%
  2474.       }
  2475.     }%
  2476.   }%ps@gtthesis
  2477. \else % if one-sided printing
  2478.   \newcommand{\ps@gtthesis}{%
  2479.     \@tcpagetrue%
  2480.     \let\@mkboth\markboth%
  2481.     \def\@oddfoot{%
  2482.       \if@draft%
  2483.         \blDRAFT\hfil%
  2484.         {\slshape\small\today}\hfil\brDRAFT%
  2485.       \fi%
  2486.     }%
  2487.     \def\@oddhead{%
  2488.       \if@draft\tlDRAFT\fi%
  2489.       {\slshape\rightmark}\hfil%
  2490.       \thepage%
  2491.       \if@draft\trDRAFT\fi%
  2492.     }%
  2493.     \def\chaptermark##1{%
  2494.       \markright%
  2495.       {\textsc{%
  2496.         \ifnum\c@secnumdepth >\m@ne%
  2497.           \@chapapp\ \thechapter. \ %
  2498.         \fi ##1}%
  2499.       }
  2500.     }%
  2501.   }%ps@gtthesis
  2502. \fi % @twoside
  2503.  
  2504. %
  2505. %% Pagestyle ``tcplain'' (based on ``plain'').
  2506. %
  2507. \if@twoside % if two-sided printing
  2508.   \newcommand{\ps@tcplain}{%
  2509.     \@tcpagetrue%
  2510.     \let\@mkboth\markboth%
  2511.     \def\@oddfoot{%
  2512.       \if@draft%
  2513.         \blDRAFT\hfil%
  2514.         {\slshape\small\today}\hfil\brDRAFT%
  2515.       \fi%
  2516.     }%
  2517.     \let\@evenfoot\@oddfoot%
  2518.     \def\@oddhead{%
  2519.       \if@draft\tlDRAFT\fi%
  2520.       \hfil\thepage%
  2521.       \if@draft\trDRAFT\fi%
  2522.     }%
  2523.     \def\@evenhead{%
  2524.       \if@draft\tlDRAFT\fi%
  2525.       \thepage\hfil%
  2526.       \if@draft\trDRAFT\fi%
  2527.     }%
  2528.   }%ps@tcplain
  2529. \else % if one-sided printing
  2530.   \newcommand{\ps@tcplain}{%
  2531.     \@tcpagetrue%
  2532.     \let\@mkboth\markboth%
  2533.     \def\@oddfoot{%
  2534.       \if@draft%
  2535.         \blDRAFT\hfil%
  2536.         {\slshape\small\today}\hfil\brDRAFT%
  2537.       \fi%
  2538.     }%
  2539.     \def\@oddhead{%
  2540.       \if@draft\tlDRAFT\fi%
  2541.       \hfil\thepage%
  2542.       \if@draft\trDRAFT\fi%
  2543.     }%
  2544.   }%ps@tcplain
  2545. \fi % @twoside
  2546.  
  2547.  
  2548. %%%%%%    Document Layout
  2549. %
  2550. %% Default line spacing: use current setting from options.
  2551. %
  2552. \linespacing{\@thesislnsp}
  2553. %
  2554. %% Page layout (see The LaTeX Companion pp.84-86).
  2555. %
  2556. %% By default, TeX puts the ``reference point'' one inch down and to
  2557. %% the right of the top-left corner of the page.  This moves it back
  2558. %% to the top-left corner (making the rest of the layout easier to
  2559. %% define).
  2560. %
  2561. \setlength{\voffset}{-1in} \setlength{\hoffset}{-1in}
  2562. %
  2563. %% Instead of hard-coding the page layout for letter paper
  2564. %% (8.5" x 11"), we will base it on \paperheight and \paperwidth,
  2565. %% so that it works with options that change the paper size.
  2566. %
  2567. %\setlength{\textheight}{\paperheight}
  2568. %\setlength{\textwidth}{\paperwidth}
  2569. \setlength{\textheight}{11in} \setlength{\textwidth}{8.5in}
  2570.  
  2571.  
  2572. %
  2573. %% Now, set the margin-dependent values.
  2574. %
  2575. \ifcase\@marginsize % set narrow margins: 1 1/4" left, 3/4" others
  2576. %
  2577. \addtolength{\textheight}{-1.5in} \setlength{\topmargin}{.5in}
  2578. \setlength{\headsep}{.25in} \setlength{\footskip}{.25in}
  2579. \addtolength{\textwidth}{-2in} \setlength{\oddsidemargin}{1.25in}
  2580. \setlength{\evensidemargin}{.75in}
  2581. \setlength{\marginparwidth}{.5in}
  2582. \setlength{\marginparsep}{.125in}
  2583. %
  2584. \or % set normal margins: 1.5 " left, 1" others (modified 01/27/01)
  2585. %
  2586. \addtolength{\textheight}{-2in}
  2587. \setlength{\topmargin}{0.5in}
  2588. \setlength{\headsep}{0.5in}   % reduced by headheight, below
  2589. \setlength{\footskip}{0.5in}
  2590. \addtolength{\textwidth}{-2in}
  2591. \setlength{\oddsidemargin}{1in}
  2592. \setlength{\evensidemargin}{1in}
  2593. \setlength{\marginparwidth}{.75in}
  2594. \setlength{\marginparsep}{.125in}
  2595. %
  2596. \or % set wide margins: 1.5" left, 1" others, 2"" top (modified 01/14/00)
  2597. %
  2598. \addtolength{\textheight}{-3in} \setlength{\topmargin}{1in}
  2599. \setlength{\headsep}{.5in} % reduced by headheight, below
  2600. \setlength{\footskip}{0.5in} \addtolength{\textwidth}{-2.5in}
  2601. \setlength{\oddsidemargin}{1.5in} \setlength{\evensidemargin}{1in}
  2602. \setlength{\marginparwidth}{.75in}
  2603. \setlength{\marginparsep}{.125in}
  2604. %
  2605. \or % set extra wide margins: 1 1/2"" all around
  2606. %
  2607. \addtolength{\textheight}{-3in} \setlength{\topmargin}{1in}
  2608. \setlength{\headsep}{.5in} \setlength{\footskip}{.5in}
  2609. \addtolength{\textwidth}{-3in} \setlength{\oddsidemargin}{1.5in}
  2610. \setlength{\evensidemargin}{1.5in}
  2611. \setlength{\marginparwidth}{1in} \setlength{\marginparsep}{.25in}
  2612. %
  2613. \or % use oldmargin (OLD GT): 1.5" left and top, 1" others (modified 01/27/01)
  2614. %
  2615. \addtolength{\textheight}{-2.5in} \setlength{\topmargin}{0.75in}
  2616. \setlength{\headsep}{0.75in}   % reduced by headheight, below
  2617. \setlength{\footskip}{0.5in} \addtolength{\textwidth}{-2.5in}
  2618. \setlength{\oddsidemargin}{1.5in} \setlength{\evensidemargin}{1in}
  2619. \setlength{\marginparwidth}{.75in}
  2620. \setlength{\marginparsep}{.125in}
  2621. %
  2622. \fi%@marginsize
  2623. %
  2624. %% Adjust \headsep to include height of running head.
  2625. %
  2626. \addtolength{\headsep}{-\headheight}
  2627. %
  2628. %% Adjust the vertical spacing between the main text and the notes,
  2629. %% and between successive notes if they are not single-spaced.
  2630. %
  2631. \setlength{\skip\footins}{.75\baselineskip} \if@singlespacednotes
  2632. \else
  2633.  \let\oldtextsize=\currenttextsize
  2634.  \footnotesize
  2635.  \setlength{\marginparpush}{\baselineskip}
  2636.  \setlength{\footnotesep}{\baselineskip}
  2637.   \oldtextsize
  2638. \fi % @singlespacednotes
  2639. %
  2640.  
  2641. \let\oldtableofcontents\tableofcontents\renewcommand{\tableofcontents}{{\let\bfseries\relax\oldtableofcontents}}
  2642. \let\oldlistoffigures\listoffigures\renewcommand{\listoffigures}{{\let\bfseries\relax\oldlistoffigures}}
  2643. %\let\oldtableofcontents\tableofcontents\renewcommand{\tableofcontents}{{\let\bfseries\relax\oldtableofcontents}}
  2644. %% \flushbottom looks silly with lots of extra space between paragraphs
  2645. %% better to put the "extra" space at the bottom of the page!
  2646. %
  2647. \raggedbottom
  2648. %
  2649. %% Default page style.
  2650. %
  2651. \pagestyle{plain} \setfrontpagestyle{plain}
  2652. \setbodypagestyle{plain} \setbackpagestyle{plain}
  2653.  
  2654. %
  2655. %% Number subsubsections
  2656. %
  2657. \setcounter{secnumdepth}{3}
  2658.  
  2659. %
  2660. %% Show subsubsections in table of contents
  2661. %% tocdepth is reset to the value in \setchaptertocdepth
  2662. %%   at each \chapter{}, or to the value in \setappendixtocdepth
  2663. %%   at each \chapter{} after the \appendix command.  So, if
  2664. %%   you want to change the defaults, use \setchaptertocdepth and
  2665. %%   \setappendixtocdepth.  To temporarily change depth for the
  2666. %%   current section, use a different function: \settocdepth[x].
  2667. %%   You should never need to call \setcounter{tocdepth}{..}
  2668. %%   directly.
  2669. %%
  2670. %% 0 = chapter only
  2671. %% 1 = chapter + sections
  2672. %% 2 = chapter, section, subsection
  2673. %% 3 = chapter, section, subsection, subsubsection
  2674. %
  2675. \setcounter{tocdepth}{3} % we call setcounter{tocdepth}{} directly here
  2676.                          % but user .tex files should not do this.
  2677. % We must insure that the last \setcounter command in the .toc
  2678. % file is NON-ZERO, or the listoffigures and listoftables become
  2679. % empty.  Bad news. Unfortunately, that means we must do some
  2680. % raw TeXing here...
  2681. %   You would think the \end{postliminary} code would fix this, and it
  2682. % does -- but only if you don't \include your vita.  \input{vita}
  2683. % works great because the \end{postliminary} code causes
  2684. % \setcounter{tocdepth}{NONZERO} to be written.  But, if you
  2685. % \include{vita} (or whatever the LAST section before \end{postliminary}
  2686. % is) and the \setcounter command from \end{postliminary} does NOT get
  2687. % written to the .aux file.  Fooey.  This is our workaround.
  2688. %   BUT, do NOT remove the one from \end{postliminary}.  When
  2689. % \input{vita}, THAT one gets used, and not this one!  Clearly,
  2690. % a LaTeX bug.
  2691. \AtEndDocument{%
  2692.   \immediate\write\@auxout%
  2693.   {\string\@writefile{toc}{\string\setcounter{tocdepth}{3}}}
  2694. }
  2695.  
  2696. \setchaptertocdepth{2} \setappendixtocdepth{0}
  2697.  
  2698. %% Disallow page breaks at hyphens (this will give some underfull vbox's,
  2699. %% so an alternative is to use \brokenpenalty=100 and manually search
  2700. %% for and fix such page breaks)
  2701. %
  2702. \brokenpenalty=10000
  2703. \InputIfFileExists{gatech-thesis-patch.sty}{}{}
  2704.  
  2705. %% From here is added by Zhi Zhang, 2008.
  2706.  
  2707. %% ENVIRONMENTS
  2708. % "box" symbols at end of proofs
  2709. \def\QEDclosed{\mbox{\rule[0pt]{1.3ex}{1.3ex}}} % for a filled box
  2710. % V1.6 some journals use an open box instead that will just fit around a closed one
  2711. \def\QEDopen{{\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{0.2pt}\fbox{\rule[0pt]{0pt}{1.3ex}\rule[0pt]{1.3ex}{0pt}}}}
  2712. \def\QED{\QEDclosed} % default to closed
  2713.  
  2714. \def\proof{\noindent\hspace{2em}{\itshape Proof: }}
  2715. \def\endproof{\hspace*{\fill}~\QED\par\endtrivlist\unskip}
  2716. %\itemindent is set to \z@ by list, so define new temporary variable
  2717. \newdimen\@IEEEtmpitemindent
  2718. \def\@begintheorem#1#2{\@IEEEtmpitemindent\itemindent\topsep 0pt\rmfamily\trivlist%
  2719.     \item[\hskip \labelsep{\indent\itshape #1\ #2:}]\itemindent\@IEEEtmpitemindent}
  2720. \def\@opargbegintheorem#1#2#3{\@IEEEtmpitemindent\itemindent\topsep 0pt\rmfamily \trivlist%
  2721. % V1.6 IEEE is back to using () around theorem names which are also in italics
  2722. % Thanks to Christian Peel for reporting this.
  2723.     \item[\hskip\labelsep{\indent\itshape #1\ #2\ (#3):}]\itemindent\@IEEEtmpitemindent}
  2724. \def\@endtheorem{\endtrivlist\unskip}
  2725.  
  2726. % V1.6
  2727. % display command for the section the theorem is in - so that \thesection
  2728. % is not used as this will be in Roman numerals when we want arabic.
  2729. % LaTeX2e uses \def\@thmcounter#1{\noexpand\arabic{#1}} for the theorem number
  2730. % (second part) display and \def\@thmcountersep{.} as a separator.
  2731. \def\@IEEEthmcounterin#1{\arabic{#1}}
  2732. % redefine the #1#2[#3] form of newtheorem to use a hook to \@IEEEthmcounterin
  2733. \def\@xnthm#1#2[#3]{%
  2734.   \expandafter\@ifdefinable\csname #1\endcsname
  2735.     {\@definecounter{#1}\@newctr{#1}[#3]%
  2736.      \expandafter\xdef\csname the#1\endcsname{%
  2737.      \noexpand\@IEEEthmcounterin{#3}\@thmcountersep\@thmcounter{#1}}%
  2738.      \global\@namedef{#1}{\@thm{#1}{#2}}%
  2739.      \global\@namedef{end#1}{\@endtheorem}}}
  2740.  
  2741. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2742. %%  End of GATECH-THESIS.CLS
  2743. %%
  2744. %%  license information is in the COPYING file.  The copyright notice
  2745. %%  therein applies to the license itself, not to this file: the GNU
  2746. %%  PUBLIC LICENSE is copyrighted by the Free Software Foundation.
  2747. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement