nuthesis.cls 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. %%
  2. %% This is file `nuthesis.cls',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% nuthesis.dtx (with options: `class')
  8. %% This is a generated file.
  9. %%
  10. %% Copyright (C) 2008 by Ned W. Hummel nhummel@gmail.com
  11. %%
  12. %% This file may be distributed and/or modified under the conditions of
  13. %% the LaTeX Project Public License, either version 1.3c of this license
  14. %% or (at your option) any later version. The latest version of this
  15. %% license is in:
  16. %%
  17. %% http://www.latex-project.org/lppl.txt
  18. %%
  19. %% and version 1.3c or later is part of all distributions of LaTeX version
  20. %% 2006/05/20 or later.
  21. \NeedsTeXFormat{LaTeX2e}
  22. \ProvidesClass{nuthesis}
  23. [2017/10/12 v0.7.2 University of Nebraska Thesis class]
  24. %% \CharacterTable
  25. %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  26. %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  27. %% Digits \0\1\2\3\4\5\6\7\8\9
  28. %% Exclamation \! Double quote \" Hash (number) \#
  29. %% Dollar \$ Percent \% Ampersand \&
  30. %% Acute accent \' Left paren \( Right paren \)
  31. %% Asterisk \* Plus \+ Comma \,
  32. %% Minus \- Point \. Solidus \/
  33. %% Colon \: Semicolon \; Less than \<
  34. %% Equals \= Greater than \> Question mark \?
  35. %% Commercial at \@ Left bracket \[ Backslash \\
  36. %% Right bracket \] Circumflex \^ Underscore \_
  37. %% Grave accent \` Left brace \{ Vertical bar \|
  38. %% Right brace \} Tilde \~}
  39. %% The ToC is required
  40. %% Uncomment these if need be
  41. \RequirePackage{ifthen}
  42. \RequirePackage{keyval}
  43. \RequirePackage{setspace}
  44. \RequirePackage{scrtime}
  45. \newboolean{nu@print}
  46. \newboolean{nu@single}
  47. \newcommand{\doctype}[1]{%
  48. \gdef\nu@doctype{#1}}
  49. \newcommand{\nu@doctype}{}
  50. \newcommand{\degree}[1]{%
  51. \gdef\nu@degree{#1}}
  52. \newcommand{\nu@degree}{}
  53. \newcommand{\degreeabbreviation}[1]{%
  54. \gdef\nu@degreeabbreviation{#1}}
  55. \newcommand{\nu@degreeabbreviation}{}
  56. \newcommand{\major}[1]{%
  57. \gdef\nu@major{#1}}
  58. \newcommand{\nu@major}{}
  59. \newcommand{\college}[1]{%
  60. \gdef\nu@college{#1}}
  61. \newcommand{\nu@college}{Graduate College}
  62. \newcommand{\university}[1]{%
  63. \gdef\nu@university{#1}}
  64. \newcommand{\nu@university}{University of Nebraska}
  65. \newcommand{\city}[1]{%
  66. \gdef\nu@city{#1}}
  67. \newcommand{\nu@city}{Lincoln}
  68. \newcommand{\state}[1]{%
  69. \gdef\nu@state{#1}}
  70. \newcommand{\nu@state}{Nebraska}
  71. \newcommand{\adviser}[1]{%
  72. \gdef\nu@adviser{#1}}
  73. \newcommand{\adviserAbstract}[1]{%
  74. \gdef\nu@adviserAbstract{#1}}
  75. \newcommand{\nu@adviser}{}
  76. \newcommand{\nu@adviserAbstract}{}
  77. \newcommand{\degreemonth}[1]{%
  78. \gdef\nu@month{#1}}
  79. \newcommand{\nu@month}{}
  80. \newcommand{\degreeyear}[1]{%
  81. \gdef\nu@year{#1}}
  82. \newcommand{\nu@year}{}
  83. \DeclareOption{testing}{%
  84. \PassOptionsToPackage{showframe}{geometry}
  85. }
  86. \DeclareOption{single}{%
  87. \setboolean{nu@single}{true}
  88. }
  89. \DeclareOption{double}{%
  90. \setboolean{nu@single}{false}
  91. }
  92. \DeclareOption{print}{%
  93. \setboolean{nu@print}{true}
  94. \PassOptionsToPackage{bindingoffset=0.5in}{geometry}
  95. }
  96. \DeclareOption{electronic}{%
  97. \relax
  98. }
  99. \DeclareOption{phd}{%
  100. \doctype{Dissertation}
  101. \degree{Doctor of Philosophy}
  102. \degreeabbreviation{Ph.D.}
  103. }
  104. \DeclareOption{edd}{%
  105. \doctype{Dissertation}
  106. \degree{Doctor of Education}
  107. \degreeabbreviation{Ed.D.}
  108. }
  109. \DeclareOption{ms}{%
  110. \doctype{Thesis}
  111. \degree{Master of Science}
  112. \degreeabbreviation{M.S.}
  113. }
  114. \DeclareOption{ma}{%
  115. \doctype{Thesis}
  116. \degree{Master of Art}
  117. \degreeabbreviation{M.A.}
  118. }
  119. \DeclareOption*{%
  120. \PassOptionsToClass{\CurrentOption}{memoir}
  121. }
  122. \ExecuteOptions{double,electronic,phd}
  123. \ProcessOptions
  124. \LoadClass[12pt,oneside]{memoir}
  125. \renewcommand{\chapnamefont}{\normalfont\large\bfseries}
  126. \renewcommand{\chapnumfont}{\normalfont\large\bfseries}
  127. \renewcommand{\chaptitlefont}{\large\bfseries}
  128. \renewcommand{\partnamefont}{\normalfont\large\bfseries}
  129. \renewcommand{\partnumfont}{\normalfont\large\bfseries}
  130. \renewcommand{\parttitlefont}{\normalfont\large\bfseries}
  131. \renewcommand{\secheadstyle}{\large\bfseries}
  132. \renewcommand{\subsecheadstyle}{\normalsize\bfseries}
  133. \renewcommand{\paraheadstyle}{\normalsize\bfseries}
  134. \renewcommand{\subparaheadstyle}{\normalsize\bfseries}
  135. \RequirePackage[letterpaper,margin=1in,includehead,nofoot]{geometry}
  136. \makepagestyle{nu@pagestyle}
  137. \makeoddhead{nu@pagestyle}%
  138. {}{}{\normalfont\thepage}
  139. \makeevenhead{nu@pagestyle}%
  140. {\normalfont\thepage}{}{}
  141. \makepagestyle{nu@pagestyleDraft}
  142. \makeoddhead{nu@pagestyleDraft}%
  143. {\itshape\LaTeX{}ed at \thistime{} on \today}{}{\normalfont\thepage}
  144. \makeevenhead{nu@pagestyleDraft}%
  145. {\normalfont\thepage}{}{\itshape\LaTeX{}ed at \thistime{} on \today}
  146. \ifdraftdoc
  147. \aliaspagestyle{plain}{nu@pagestyleDraft}
  148. \aliaspagestyle{empty}{nu@pagestyleDraft}
  149. %% \aliaspagestyle{cleared}{nu@pagestyleDraft}
  150. \pagestyle{nu@pagestyleDraft}
  151. \else
  152. \aliaspagestyle{plain}{nu@pagestyle}
  153. %% \aliaspagestyle{cleared}{nu@pagestyle}
  154. \pagestyle{nu@pagestyle}
  155. \fi
  156. \renewcommand{\maketitle}{%
  157. \begin{center}%
  158. \MakeUppercase{\thetitle}\\[1\baselineskip]
  159. \singlespacing
  160. by\\[2\baselineskip]
  161. \theauthor\\[4\baselineskip]
  162. \MakeUppercase{A \nu@doctype}\\[4\baselineskip]
  163. Presented to the Faculty of\\[\baselineskip]
  164. The \nu@college{} at the \nu@university\\[\baselineskip]
  165. In Partial Fulfilment of Requirements\\[\baselineskip]
  166. For the Degree of \nu@degree\\[3\baselineskip]
  167. Major: \nu@major\\[3\baselineskip]
  168. Under the Supervision of \nu@adviser\\[3\baselineskip]
  169. \nu@city, \nu@state\\[1\baselineskip]
  170. \nu@month, \nu@year
  171. \end{center}
  172. \thispagestyle{empty}
  173. \cleardoublepage
  174. }
  175. \renewenvironment{abstract}{%
  176. \pagestyle{empty}%
  177. \begin{doublespacing}%
  178. \begin{center}%
  179. \MakeUppercase{\thetitle}\\[.5\baselineskip]
  180. \theauthor, \nu@degreeabbreviation\\
  181. \nu@university, \nu@year%
  182. \end{center}%
  183. \begin{flushleft}%
  184. Adviser: \nu@adviserAbstract%
  185. \end{flushleft}%
  186. }{\par\end{doublespacing}\cleardoublepage}
  187. \newenvironment{copyrightpage}[1][Copyright]{%
  188. \begin{center}%
  189. \MakeUppercase{#1}\\
  190. \copyright{} \nu@year, \theauthor%
  191. \end{center}%
  192. \ifthenelse{\boolean{nu@single}}{\begin{singlespacing}}{\begin{doublespacing}}%
  193. }{\par%
  194. \ifthenelse{\boolean{nu@single}}{\end{singlespacing}}{\end{doublespacing}}%
  195. \cleardoublepage}
  196. \newenvironment{dedication}[1][Dedication]{%
  197. \begin{center}%
  198. \MakeUppercase{#1}%
  199. \end{center}%
  200. \ifthenelse{\boolean{nu@single}}{\begin{singlespacing}}{\begin{doublespacing}}%
  201. }{\par%
  202. \ifthenelse{\boolean{nu@single}}{\end{singlespacing}}{\end{doublespacing}}%
  203. \cleardoublepage}
  204. \newenvironment{acknowledgments}[1][Acknowledgments]{%
  205. \begin{center}
  206. \MakeUppercase{#1}
  207. \end{center}
  208. \ifthenelse{\boolean{nu@single}}{\begin{singlespacing}}{\begin{doublespacing}}%
  209. }{\par%
  210. \ifthenelse{\boolean{nu@single}}{\end{singlespacing}}{\end{doublespacing}}%
  211. \cleardoublepage}
  212. \newenvironment{grantinfo}[1][Grant Information]{%
  213. \begin{center}
  214. \MakeUppercase{#1}
  215. \end{center}
  216. \ifthenelse{\boolean{nu@single}}{\begin{singlespacing}}{\begin{doublespacing}}%
  217. }{\par%
  218. \ifthenelse{\boolean{nu@single}}{\end{singlespacing}}{\end{doublespacing}}%
  219. \cleardoublepage}
  220. \let\nu@ToC\tableofcontents
  221. \renewcommand{\contentsname}{Table of Contents}
  222. \renewcommand{\tableofcontents}{\cleardoublepage\nu@ToC*}
  223. \let\nu@LoF\listoffigures
  224. \renewcommand{\listoffigures}{\cleardoublepage\nu@LoF}
  225. \let\nu@LoT\listoftables
  226. \renewcommand{\listoftables}{\cleardoublepage\nu@LoT}
  227. \maxsecnumdepth{subsubsection}
  228. \setsecnumdepth{subsubsection}
  229. \maxtocdepth{subsubsection}
  230. \let\backmatter\relax
  231. \AtBeginDocument{%
  232. \ifthenelse{\boolean{nu@single}}{\singlespacing}{\doublespacing}%
  233. }
  234. \endinput
  235. %%
  236. %% End of file `nuthesis.cls'.