| 1 |
\documentclass[11pt]{article} |
| 2 |
\usepackage[sf]{titlesec} |
| 3 |
\usepackage[colorlinks=true]{hyperref} |
| 4 |
\usepackage{breakurl} |
| 5 |
\usepackage{listings} |
| 6 |
\usepackage{booktabs} |
| 7 |
\usepackage{tabularx} |
| 8 |
|
| 9 |
\title{The UCB Thesis Class} |
| 10 |
\author{Paul Vojta\\Mathematics Department\\ |
| 11 |
\texttt{\href{mailto:[email protected]}{[email protected]}}} |
| 12 |
\date{Version 3.6\\July 19, 2019} |
| 13 |
|
| 14 |
\lstset{% settings taken from msu-thesis documentation |
| 15 |
basicstyle=\ttfamily\small, |
| 16 |
commentstyle=\itshape\ttfamily\small, |
| 17 |
showspaces=false, |
| 18 |
showstringspaces=false, |
| 19 |
breaklines=true, |
| 20 |
breakautoindent=true, |
| 21 |
frame=single, |
| 22 |
captionpos=t, |
| 23 |
language=TeX |
| 24 |
} |
| 25 |
|
| 26 |
\newcommand*{\pkg}[1]{\texttt{#1}} |
| 27 |
|
| 28 |
\begin{document} |
| 29 |
\maketitle |
| 30 |
\thispagestyle{empty} |
| 31 |
\renewcommand{\abstractname}{\sffamily Abstract} |
| 32 |
|
| 33 |
\abstract{\noindent\begin{quote} This is a class file for theses and |
| 34 |
dissertations at the University of California, Berkeley. It is based on |
| 35 |
the \pkg{memoir} class, and therefore supports all of the functionality |
| 36 |
of that class. It should generate a document that meets all of the basic |
| 37 |
formatting requirements given in the \emph{Dissertation Filing Guide} |
| 38 |
or the \emph{Thesis Filing Guide} (as appropriate) produced by the |
| 39 |
UC Berkeley Graduate Division and available on the web at |
| 40 |
\url{https://grad.berkeley.edu/academic-progress/}. |
| 41 |
This version of the class is based on the dissertation and thesis guides, |
| 42 |
accessed in July 2019.\end{quote}} |
| 43 |
|
| 44 |
\section{Introduction} |
| 45 |
|
| 46 |
The \pkg{ucbthesis} class is a modified |
| 47 |
version of the standard \LaTeX\ \pkg{memoir} class that is accepted for use |
| 48 |
with University of California, Berkeley, Ph.D.~dissertations and Master's |
| 49 |
theses. The available commands are almost identical to those of the |
| 50 |
\pkg{memoir} class, so the recommended starting point for documentation |
| 51 |
is general documentation for \LaTeX. |
| 52 |
|
| 53 |
This document class requires a reasonably recent version of the \pkg{memoir} |
| 54 |
class. It is known to work with \pkg{memoir} version ``2010/09/19 v3.6g,'' but |
| 55 |
not with \pkg{memoir} version ``2005/09/25 v1.618.'' |
| 56 |
% v1.618 gives \undefinedpagestyle |
| 57 |
|
| 58 |
\emph{Note:} The documentation for the \pkg{memoir} class is long (currently |
| 59 |
583 pages), and the vast majority of it is completely irrelevant to the process |
| 60 |
of writing a thesis using \pkg{ucbthesis}. \textbf{Do not print out the |
| 61 |
documentation for the \pkg{memoir} class!} Doing so would be a huge waste |
| 62 |
of paper and money. Look to general \LaTeX\ documentation instead. |
| 63 |
|
| 64 |
\smallbreak |
| 65 |
The key features of the class are: |
| 66 |
\begin{enumerate} |
| 67 |
\item The primary modification to the \pkg{memoir} class is the setting of the |
| 68 |
margins and (for Master's theses prior to 2011) use of pseudo-double-spacing, |
| 69 |
since Berkeley's rules for Master's theses were still designed |
| 70 |
for typewriters. The latter is achieved by increasing the |
| 71 |
\verb|\baselinestretch| parameter to 1.37. The \verb|\baselinestretch| |
| 72 |
is returned to a single-spaced value of 1.00 for elements like tables, |
| 73 |
captions, and footnotes and for all displayed text (quote, quotation, |
| 74 |
and verse environments). |
| 75 |
\item Margins are 1 inch on all sides. |
| 76 |
\item Uses 12 point by default; you can use the 10pt or 11pt options for |
| 77 |
those sizes (but note that only 12pt should be used for the final |
| 78 |
submitted copy). |
| 79 |
\item Page numbers are in the top right corner for all pages. |
| 80 |
\item Complete, correct front matter for Berkeley dissertations can be |
| 81 |
generated. If you are not a Berkeley student, you should make sure |
| 82 |
that the front matter is OK with your school. |
| 83 |
\end{enumerate} |
| 84 |
|
| 85 |
The \pkg{ucbthesis} class is derived from the \pkg{ucthesis} class---the |
| 86 |
name has been changed to reflect the fact that it is (probably) only |
| 87 |
valid for Berkeley theses. |
| 88 |
The \pkg{ucbthesis} class should be used for new theses (at Berkeley); |
| 89 |
\pkg{ucthesis} may still be used for older theses submitted prior to the |
| 90 |
change to electronic submission in Fall 2009, and will still be maintained |
| 91 |
for this purpose. |
| 92 |
|
| 93 |
A (partial) list of thesis classes at other University of California |
| 94 |
campuses is available on the web at |
| 95 |
\url{https://math.berkeley.edu/~vojta/ucthesis.html}. |
| 96 |
|
| 97 |
\section{Using the \pkg{ucbthesis} Class} |
| 98 |
|
| 99 |
\subsection{Sample Dissertation} |
| 100 |
|
| 101 |
There is a sample dissertation in the \texttt{example} subdirectory |
| 102 |
of the documentation directory. All of the files in that subdirectory |
| 103 |
form part of the sample dissertation. To produce a \texttt{pdf} or |
| 104 |
\texttt{dvi} file of the thesis, copy the files to some other directory |
| 105 |
and type the commands |
| 106 |
\begin{lstlisting} |
| 107 |
pdflatex thesis |
| 108 |
biber thesis |
| 109 |
pdflatex thesis |
| 110 |
\end{lstlisting} |
| 111 |
(Use \texttt{latex} instead of \texttt{pdflatex} if you want a \texttt{dvi} |
| 112 |
file instead of a \texttt{pdf} file as output. You may need to replace |
| 113 |
\texttt{biber} with \texttt{bibtex}, depending on your \TeX\ setup---look |
| 114 |
at the output from the first run of \pkg{pdflatex} or \pkg{latex}.) |
| 115 |
|
| 116 |
The file \texttt{references.bib} is its bibliography database (though |
| 117 |
the contents of the database are not important). Mostly this example |
| 118 |
document is useful as an example of how to produce the front matter. |
| 119 |
|
| 120 |
If you don't understand \LaTeX\ at all, this file might help you get |
| 121 |
started, but, since you're going to be writing a quite lengthy document, |
| 122 |
you should look into more comprehensive information on \LaTeX. |
| 123 |
A list of \TeX\ and \LaTeX\ documentation is maintained at the web page |
| 124 |
\url{http://www.tug.org/interest.html#doc}. |
| 125 |
|
| 126 |
\subsection{Selecting the \pkg{ucbthesis} Class} |
| 127 |
|
| 128 |
To use the \pkg{ucbthesis} class, make sure that the \texttt{ucbthesis.cls} |
| 129 |
file is on your TEXINPUTS search path and use the following command at |
| 130 |
the start of your input file: |
| 131 |
|
| 132 |
\begin{lstlisting} |
| 133 |
\documentclass{ucbthesis} |
| 134 |
\end{lstlisting} |
| 135 |
|
| 136 |
\subsection{Class Options} |
| 137 |
|
| 138 |
The options for the \pkg{ucbthesis} class are given in Table~\ref{opts}. |
| 139 |
They should be selected on the \verb|\documentclass| line, e.g.: |
| 140 |
\begin{lstlisting} |
| 141 |
\documentclass[10pt,draft]{ucbthesis} |
| 142 |
\end{lstlisting} |
| 143 |
|
| 144 |
\begin{table}[htbp] |
| 145 |
\centering |
| 146 |
\begin{tabularx}{.8\textwidth}{>{\ttfamily}lX} |
| 147 |
\toprule |
| 148 |
\multicolumn{1}{c}{Option} & \multicolumn{1}{l}{Description}\\ |
| 149 |
\midrule |
| 150 |
{phd} & Selects formatting for doctoral dissertation (default) \\ |
| 151 |
{masters} & Selects formatting for Master's thesis submitted in 2012 or later: |
| 152 |
changes the word ``dissertation'' on the title page to ``thesis.'' \\ |
| 153 |
{oldmasters} & Selects formatting for Master's thesis submitted in 2011 or |
| 154 |
earlier: selects double spacing and changes the word ``dissertation'' |
| 155 |
on the title page to ``thesis.'' \\ |
| 156 |
{final} & Uses pseudo-double-spacing for Master's theses submitted in 2011 or |
| 157 |
earlier (default) \\ |
| 158 |
{draft} & Uses single-spacing throughout the document \\ |
| 159 |
{12pt} & Sets the default font size to 12 points (default) \\ |
| 160 |
{11pt} & Sets the default font size to 11 points. \emph{Note:} This option |
| 161 |
should be used only for draft copies (e.g., to save paper). The final |
| 162 |
submitted copy must use 12-point fonts or larger \\ |
| 163 |
{10pt} & Sets the default font size to 10 points. \emph{Note:} This option |
| 164 |
should be used only for draft copies (e.g., to save paper). The final |
| 165 |
submitted copy must use 12-point fonts or larger \\ |
| 166 |
\bottomrule |
| 167 |
\end{tabularx} |
| 168 |
\caption{Document class options}\label{opts} |
| 169 |
\end{table} |
| 170 |
|
| 171 |
All options supported by the \pkg{memoir} class are also supported |
| 172 |
(although some of them would not be very useful for a thesis). |
| 173 |
|
| 174 |
\subsection{Page Headers} |
| 175 |
|
| 176 |
If you want to use page headers or footers other than the default ones, |
| 177 |
you should try using \texttt{headerfooter.sty} or \texttt{fancyheadings.sty}. |
| 178 |
The \texttt{myheadings} pagestyle doesn't work well and there is no workaround. |
| 179 |
The \pkg{headerfooter} and \pkg{fancyheadings} styles are widely distributed, |
| 180 |
well documented, and easy to use. |
| 181 |
|
| 182 |
\subsection{Overall Document Structure} |
| 183 |
|
| 184 |
The overall structure of a \verb|.tex| file for a thesis is the same as |
| 185 |
most other \LaTeX\ files: a \verb|\documentclass| line, followed by |
| 186 |
declarations (e.g., \verb|\usepackage| lines and macro definitions), |
| 187 |
and then one (or, rarely, more) instances of a \verb|document| environment. |
| 188 |
|
| 189 |
Your best guide for what goes inside the \verb|document| environment is |
| 190 |
to follow the practice in the sample file \verb|thesis.tex|. In a nutshell, |
| 191 |
though, this consists of declarations and environments for the front matter, |
| 192 |
followed by the main content of the thesis, and then the bibliography |
| 193 |
and any appendices. The structure of the part of the file |
| 194 |
corresponding to the front matter is described in the next section. |
| 195 |
|
| 196 |
\section{Front Matter} |
| 197 |
|
| 198 |
In addition to setting the page layout and line spacing, the other key |
| 199 |
service provided by the \pkg{ucbthesis} class is that it generates |
| 200 |
correct front matter (title page, approval page, abstract, etc.)\ with |
| 201 |
a fairly simple set of commands. This facility could be a little |
| 202 |
easier, but compared to an earlier state of affairs, it's pretty |
| 203 |
slick. The format of the front matter is specified quite explicitly |
| 204 |
in the documents ``Dissertation Filing Guide'' and ``Thesis Filing Guide'' |
| 205 |
produced by the UC Berkeley Graduate Division and available on the web at |
| 206 |
\url{https://grad.berkeley.edu/academic-progress/}. |
| 207 |
The current version of the class is based on the dissertation and thesis |
| 208 |
guides, accessed in July 2019. |
| 209 |
|
| 210 |
A complete example of the use of the front matter commands can be |
| 211 |
found in the sample dissertation distributed with the class. |
| 212 |
Generally, the part of the \LaTeX\ file that generates the front matter |
| 213 |
consists of the following portions: |
| 214 |
\begin{itemize} |
| 215 |
\item Declarations of text strings |
| 216 |
\item Macros to generate the title, approval, and copyright pages |
| 217 |
\item \verb|abstract| environment |
| 218 |
\item \verb|frontmatter| environment |
| 219 |
\end{itemize} |
| 220 |
These portions are described in the following subsections. |
| 221 |
|
| 222 |
\subsection{Declarations of Text Strings} |
| 223 |
|
| 224 |
To use the front matter macros and environments, you must first |
| 225 |
declare the text strings listed in Table~\ref{decls}. This is done |
| 226 |
by invoking the relevant macro with the string as its argument; |
| 227 |
for example, \lstinline|\title{Snakes in Ireland}|. |
| 228 |
|
| 229 |
\begin{table} |
| 230 |
\centering |
| 231 |
\lstset{basicstyle=\ttfamily} |
| 232 |
\begin{tabularx}{.9\textwidth}{lX} |
| 233 |
\toprule |
| 234 |
\multicolumn{1}{c}{Macro} & \multicolumn{1}{l}{Description} \\ |
| 235 |
\midrule |
| 236 |
\lstinline|\\title| & Dissertation title \\ |
| 237 |
\lstinline|\\author| & Your name as registered with UC (usually with full |
| 238 |
middle name) \\ |
| 239 |
\lstinline|\\degreeyear| & Year your dissertation will be granted \\ |
| 240 |
\lstinline|\\degreesemester| & Semester (or term) your degree will be granted \\ |
| 241 |
\lstinline|\\degree| & The title of your degree (e.g.~Doctor of Philosophy) \\ |
| 242 |
\lstinline|\\jointinstitution| & For joint degrees, the other institution \\ |
| 243 |
\lstinline|\\chair| & Title and name of your committee chair |
| 244 |
(e.g.~``Professor Michael A. Harrison'') \\ |
| 245 |
\lstinline|\\cochair| & Title and name of your committee co-chair |
| 246 |
(use with \lstinline|\\chair|, if you have a co-chair). \\ |
| 247 |
\lstinline|\\cochairs| & Titles and names of your (co-equal) committee |
| 248 |
co-chairs (replaces \lstinline|\\chair| and \lstinline|\\cochair|). \\ |
| 249 |
\lstinline|\\othermembers| & The names of the other members of your committee |
| 250 |
separated by linebreaks |
| 251 |
(e.g.~\lstinline!Professor Susan L. Graham\\\\Professor Jim Pitman!) \\ |
| 252 |
\lstinline|\\numberofmembers| & The number of members on your committee. |
| 253 |
This defaults to 3 (and thus is optional) and can be any value from |
| 254 |
3 to 6. It affects the number of lines on the approval |
| 255 |
page and the space between them. \\ |
| 256 |
\lstinline|\\field| & The official title of your field. This is usually |
| 257 |
your department's name, but at Berkeley, most |
| 258 |
Engineering degrees have a more complex name. |
| 259 |
Be sure to check the guidelines for any special |
| 260 |
twists on the name of your field. \\ |
| 261 |
\lstinline|\\emphasis| & The ``designated emphasis'' of your degree (if any) \\ |
| 262 |
\lstinline|\\campus| & The name of your UC campus. This should be capitalized |
| 263 |
(e.g.~Berkeley). This is optional, and defaults to Berkeley. \\ |
| 264 |
\bottomrule |
| 265 |
\end{tabularx} |
| 266 |
\caption{Declarations for Front Matter}\label{decls} |
| 267 |
\end{table} |
| 268 |
|
| 269 |
\subsection{Title, Approval, and Copyright Pages} |
| 270 |
|
| 271 |
The title, approval, and copyright pages have extremely rigid formats |
| 272 |
that allow them to be generated automatically once the above |
| 273 |
declarations have been made. To generate them, invoke the macros |
| 274 |
\begin{lstlisting} |
| 275 |
\maketitle |
| 276 |
\approvalpage |
| 277 |
\copyrightpage |
| 278 |
\end{lstlisting} |
| 279 |
|
| 280 |
You should probably invoke them in that order, because that's the |
| 281 |
order required by the guidelines. The approval page should not be part |
| 282 |
of the submitted thesis, but the \verb|\approvalpage| macro may be used to |
| 283 |
generate the required approval page to be printed and submitted with the |
| 284 |
thesis. |
| 285 |
|
| 286 |
\subsection{Abstract Environment} |
| 287 |
|
| 288 |
Because you have to provide the text of the abstract, only the title |
| 289 |
can be generated automatically. So, there is an abstract environment. |
| 290 |
It generates the title and numbers the abstract in arabic numerals and |
| 291 |
makes sure that it starts on new page. |
| 292 |
|
| 293 |
The advisor's signature no longer is required (or allowed) for the |
| 294 |
abstract. |
| 295 |
|
| 296 |
\subsection{Other Front Matter} |
| 297 |
|
| 298 |
The remaining front matter (dedication, table of contents, lists of |
| 299 |
figures and tables, acknowledgements) \emph{must} be put inside the |
| 300 |
\verb|frontmatter| environment, which ensures that page numbering is |
| 301 |
handled properly. Within this \verb|frontmatter| environment, you put the |
| 302 |
environments and commands for the rest of the front matter. There are |
| 303 |
environments for \texttt{dedication} and \texttt{acknowledgements}, |
| 304 |
and the standard \LaTeX\ commands for producing \verb|\tableofcontents|, |
| 305 |
\verb|\listoffigures|, and \verb|\listoftables| should also go inside |
| 306 |
the \verb|frontmatter| environment. |
| 307 |
|
| 308 |
The standard \LaTeX\ commands are well documented in the \LaTeX\ manual. |
| 309 |
You may have to hand edit the \texttt{.lof} (list of figures) and |
| 310 |
\texttt{.lot} (list of tables) files to make verbose captions more suitable for |
| 311 |
this front matter. Once you do this, remember to use the \verb|\nofiles| |
| 312 |
macro to keep them from getting overwritten. |
| 313 |
|
| 314 |
The \pkg{ucbthesis} class provides \texttt{acknowledgements} and |
| 315 |
\texttt{dedication} environments, which produce corresponding sections in |
| 316 |
the front matter and make them start on a new page. The |
| 317 |
\texttt{acknowledgements} |
| 318 |
environment also puts the word ``Acknowledgements'' in large, bold, |
| 319 |
centered text at the top of the page. For formatting the dedication page, |
| 320 |
you're on your own. After all, the dedication is a kind of poetry and |
| 321 |
there's no predicting the right way to format poetry. |
| 322 |
|
| 323 |
\section{Obsolete Environments and Commands} |
| 324 |
|
| 325 |
Previous (unreleased) versions of the \pkg{ucbthesis} (and \pkg{ucthesis}) |
| 326 |
classes defined environments for producing small tables with single spacing. |
| 327 |
These environments are no longer necessary, since standard \LaTeX\ now |
| 328 |
handles the situation properly. Replace the \verb!\begin{...}! |
| 329 |
commands as indicated in Table \ref{obsolenv}, and change the |
| 330 |
corresponding \verb!\end! commands accordingly. |
| 331 |
|
| 332 |
\begin{table}[htbp] |
| 333 |
\centering |
| 334 |
\begin{tabular}{l l} |
| 335 |
\toprule |
| 336 |
\multicolumn{1}{c}{Environment} & \multicolumn{1}{c}{Use Instead}\\ |
| 337 |
\midrule |
| 338 |
\lstinline!smalltabular! & \lstinline!\small\begin{tabular}! \\ |
| 339 |
\lstinline!smalltabular*! & \lstinline!\small\begin{tabular*}! \\ |
| 340 |
\lstinline!scriptsizetabular! & \lstinline!\scriptsize\begin{tabular}! \\ |
| 341 |
\lstinline!scriptsizetabular*! & \lstinline!\scriptsize\begin{tabular*}! \\ |
| 342 |
\bottomrule |
| 343 |
\end{tabular} |
| 344 |
\caption{Obsolete environments}\label{obsolenv} |
| 345 |
\end{table} |
| 346 |
|
| 347 |
The \pkg{ucthesis} class also provided commands \verb!\smallssp! and\break |
| 348 |
\verb!\scriptsizessp!; these should now be changed to |
| 349 |
\verb!\small\SingleSpacing! and \verb!\scriptsize\SingleSpacing!, |
| 350 |
respectively. |
| 351 |
|
| 352 |
\section{Installing the \pkg{ucbthesis} Class} |
| 353 |
|
| 354 |
To install the \pkg{ucbthesis} class, you need to install the file |
| 355 |
\texttt{ucbthesis.cls} in your \LaTeX\ class file repository. This |
| 356 |
generally should go in a directory \lstinline!TEXMF/tex/latex/ucbthesis! |
| 357 |
(where \lstinline!TEXMF! is the base of the \texttt{texmf} tree). |
| 358 |
Or, it can also be placed in the directory that you use when running |
| 359 |
\LaTeX\ on your thesis. |
| 360 |
|
| 361 |
You should also install the documentation files |
| 362 |
\begin{verbatim} |
| 363 |
README |
| 364 |
ucbthesis.tex |
| 365 |
ucbthesis.pdf |
| 366 |
thesis.tex |
| 367 |
abstract.tex |
| 368 |
chap1.tex |
| 369 |
chap2.tex |
| 370 |
references.bib |
| 371 |
\end{verbatim} |
| 372 |
in a similar directory under the documentation directory, generally |
| 373 |
\lstinline!TEXMF/doc/latex/ucbthesis! for the first three files, and |
| 374 |
\lstinline!TEXMF/doc/latex/ucbthesis/example! for the last five. |
| 375 |
|
| 376 |
These files should already be placed in subdirectories reflecting the above |
| 377 |
guidelines, so that one might extract the \texttt{tar} file in the main |
| 378 |
\lstinline!TEXMF! directory to get the right results. |
| 379 |
|
| 380 |
\section{Modification History} |
| 381 |
|
| 382 |
Version 3.3 was the initial release of \pkg{ucbthesis} (it was forked from |
| 383 |
\pkg{ucthesis}, hence the unusual version number). The package \pkg{ucthesis} |
| 384 |
was created for non-electronic submissions, and should no longer be used, |
| 385 |
except for printing out older theses. Version 3.3 was distributed only within |
| 386 |
Berkeley. |
| 387 |
|
| 388 |
Version 3.4 switched to using the \pkg{memoir} class, eliminated the |
| 389 |
\texttt{smalltabular}, \texttt{smalltabular*}, \texttt{scriptsizetabular}, |
| 390 |
and\break |
| 391 |
\texttt{scriptsizetabular*} environments, and the \lstinline!\smallssp! |
| 392 |
and\break |
| 393 |
\lstinline!\scriptsizessp! commands. It also added support for co-chairs |
| 394 |
on the dissertation/thesis committee, joint degrees, and degrees with a |
| 395 |
Designated Emphasis. In addition, it was modified for release on \textsc{ctan}. |
| 396 |
|
| 397 |
Version 3.5 added support for printing the Designated Emphasis on the abstract |
| 398 |
page (a Graduate Division requirement). |
| 399 |
|
| 400 |
Version 3.6 changed the font in the title from bold to regular and adjusted the |
| 401 |
spacing in the abstract page. It added \lstinline!\cochairs! to the |
| 402 |
documentation. In the example, it added a sideways table, added sample uses |
| 403 |
of \lstinline!\cochair! and \lstinline!\cochairs!, and moved the (commented-out) |
| 404 |
appendix to after the bibliography (as per requirements). |
| 405 |
|
| 406 |
\end{document} |