% \iffalse meta-comment % % ubcthesis.dtx source for ubcthesis LaTeX2e class. % Copyright (C) 2001 % Michael McNeil Forbes % mforbes@alum.mit.edu % % Please notify the author above of any bugs, enhancements or desired % features. % % VERSION: % % The following revision stamps refer to the SVN versions of this file. % % $Revision: 2464 $ % $Date: 2009-11-19 11:28:47 -0800 (Thu, 19 Nov 2009) $ % % The following refers to the docstrip version of the file and must be % set manually (see MODIFICATIONS below) % \fi % % \ProvidesFile{ubcthesis.dtx} % [2009/11/19 v1.61 ^^J % University of British Columbia Thesis Package] % % \iffalse meta-comment % LICENCING: % % This file was derived from classes.dtx Version 2001/04/21 v1.4e % which is part of the LaTeX base system. The original file is % available from % http://www.ctan.org % For information on the LaTeX project, see % http://www.latex-project.org/ % % Additional modifications we incorporated from the thesis.cls file by % Wenzel Matiaske The incorporations were % made from Version 1996/25/01 1.0g. The thesis.cls and thesis.dtx % distribution is available from. % http://www.ctan.org % % This file may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.2 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.2 or later is part of all distributions of LaTeX % version 1999/12/01 or later. % % This program consists of the files ubcthesis.dtx, ubcthesis.ins and % the sample figures fig.eps and fig.fig. % % USAGE: % % To produce the documentation for this class, pass this file through % LaTeX as follows: % % latex ubcthesis.dtx % makeindex -s gglo.ist -o ubcthesis.gls ubcthesis.glo % makeindex -s gind.ist ubcthesis.idx % latex ubcthesis.dtx % latex ubcthesis.dtx % % % You need to run latex three times in order to produce the correct % cross references and makeindex to sort the index etc. It is not % necessary to run makeindex if you don't care about the rather long % index and change logs. After the documentation is generated, you can use % xdvi to view the documentation: % % xdvi ubcthesis.dvi % % MODIFICATIONS: % % If you wish to modify this document, please consider the following. % It is maintained in a SVN archive which sets revision numbers % automatically when revisions are submitted. The change log is % also maintained at the end of the file. Please DO NOT edit the % change log at the end of the file as it should be kept in sync with % the SVN change log (i.e. do not fix spelling mistakes etc. there). % % In addition, the doc and docstrip system maintains a list of changes % using the changes macro. These can be indexed at the end of the % file and thus are useful for indicating new developments. % Currently, I have kept most of the change macros from the original % classes (classes.dtx and Matiaske's thesis.dtx). These are all for % version 1.x or lower. The first "complete" version of this file % is version 2.0 both in SVN and in the doc system. Changes made % after this should be included in both the SVN log and specified by % addition changes macros. % % IMPORTANT: When you commit a new SVN version, please be sure to % modify the file versions manually to correspond with the SVN % version. To do this, search for VERSION above. Then do a search % and replace to change the date and version number throughout the % document Each version number that should be changes is proceeded by % a meta-comment with the text VERSION. % % ERROR CORRECTION: % The CheckSum and CharacterTable allow LaTeX to determine if the % entire file has been transmitted correctly and if any characters % were not transmitted correctly. When you modify the file, be sure % to update the CheckSum. (Process the file with LaTeX to find if the % CheckSum has changed and to find the new CheckSum. This must agree % with the results produced by the call to \cs{finale}) % % \fi % % \CheckSum{5290} % \CharacterTable % {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 % 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 % Digits \0\1\2\3\4\5\6\7\8\9 % Exclamation \! Double quote \" Hash (number) \# % Dollar \$ Percent \% Ampersand \& % Acute accent \' Left paren \( Right paren \) % Asterisk \* Plus \+ Comma \, % Minus \- Point \. Solidus \/ % Colon \: Semicolon \; Less than \< % Equals \= Greater than \> Question mark \? % Commercial at \@ Left bracket \[ Backslash \\ % Right bracket \] Circumflex \^ Underscore \_ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % % \iffalse meta-comment % % INDEXING: % We do not want to index every word, so we exclude words here: % % \fi % % \DoNotIndex{\',\.,\@M,\@@input,\@Alph,\@alph,\@addtoreset,\@arabic} % \DoNotIndex{\@badmath,\@centercr,\@cite} % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue} % \DoNotIndex{\@input,\@ixpt,\@m,\@minus,\@mkboth} % \DoNotIndex{\@ne,\@nil,\@nomath,\@plus,\roman,\@set@topoint} % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb,\@tempdimc} % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt} % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt} % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace} % \DoNotIndex{\advance,\ast,\begin,\begingroup,\bfseries,\bgroup,\box} % \DoNotIndex{\bullet} % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption} % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass} % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist} % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter} % \DoNotIndex{\fbox} % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef} % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi} % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi} % \DoNotIndex{\input} % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark} % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright} % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} % \DoNotIndex{\NeedsTeXFormat,\newdimen} % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number} % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@} % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip} % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} % \DoNotIndex{\refstepcounter,\relax,\renewcommand} % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily} % \DoNotIndex{\secdef,\selectfont,\setbox,\setcounter,\setlength} % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space} % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase} % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt} % \DoNotIndex{\viipt,\vipt,\vskip,\vspace} % \DoNotIndex{\wd,\xiipt,\year,\z@} % % \iffalse meta-comment % % Here we start the actual documentation of the class. From here on % this file should be self documenting. % % I use parts for organization, not "files", so I redefine the \partname. % % \fi % % \def\partname{Part} % % \GetFileInfo{ubcthesis.dtx} % \title{The \file{ubcthesis} Package\thanks % {This is \filename\ version \fileversion\ dated \filedate. % SVN $Revision: 2464 $}} % % \author{% % Copyright (C) 2001 by Michael M$^{\rm c}$Neil Forbes} % \date{\filedate} % \maketitle % \tableofcontents % \newpage % % \part[User Guide: For those writing theses]{User Guide} % \section{Introduction} % \label{sec:Introduction} % The \file{ubcthesis} class is a package designed for \LaTeX2e\ to % aid students in writing theses. This package originated at The % University of British Columbia (UBC) in Vancouver, British % Columbia, Canada in writing theses that conform the the format % requirements of the Faculty of Graduate Studies. It has been % redesigned to support thesis formats at various universities. % % Support for various universities is provided by additional packages % which redefine title pages etc. These hook into the general thesis % class and provide university specific formatting. Packages exist % for the following institutions: % \begin{description} % \item[UBC:] The University of British Columbia, Vancouver, B.C., Canada. % \item[MIT:] Massachusetts Institute of Technology, Cambridge, % Massachusetts, USA. % \end{description} % The output of the sample UBC thesis has been approved by the UBC % FoGS and this class is presently sanctioned (see section % \ref{sec:disclaimer}). % % This class is quite general and contains many options. Hopefully, % there are enough options so that you will be able to use it to % format a thesis at another institution. If not, please let me know % so that I may modify it (I will send you an updated version as soon % as possible). See also Section \ref{sec:Contributions}. % % \subsection{Disclaimer} % \label{sec:disclaimer} % The \file{ubcthesis} \LaTeX{} class and the accompanying sample files % are \emph{unofficial} and are not officially supported by any % universities. While I have attempted to make the style file and % sample files conform to all of the requirements set forth by the % respective institutions, you should always consult someone for % assistance with problems \emph{before} starting final draft. % Information about the requirements may be gleaned from the following % sources: % \paragraph{UBC:} % \begin{itemize} % \item \href{http://www.grad.ubc.ca/} % {\texttt{http://www.grad.ubc.ca/}} % \item \href{http://www.grad.ubc.ca/students/thesis/index.asp?menu=000,000,000,000} % {\texttt{http://www.grad.ubc.ca/students/thesis/index.asp?menu=000,000,000,000}} % \end{itemize} % \paragraph{MIT:} % \begin{itemize} % \item \href{http://libraries.mit.edu/archives/thesis-specs/} % {\texttt{http://libraries.mit.edu/archives/thesis-specs/}} % \item \href{http://libraries.mit.edu/archives/index.html} % {\texttt{http://libraries.mit.edu/archives/index.html}} % \end{itemize} % \subsection{Version} % Below is the version information for this file. It is maintained % through a SVN repository and by manual version numbers. These % should be kept in sync, however, if this file is modified outside of % the SVN archive, the versions might differ. % % \paragraph{SVN Version:} % \verb$Id: ubcthesis.dtx 2464 2009-11-19 19:28:47Z mforbes $ % % \paragraph{Manual Version:} \filename\ \fileversion\ \filedate. % % \section{Getting Started} % This section describes how to get up and running with the % \file{ubcthesis} class. You should make sure you have all the % files, then unpack them and use the sample thesis as a guide to % formatting your own thesis. % % \subsection{Obtaining the \file{ubcthesis} package} % The \file{ubcthesis} package is presently being maintained by % Michael M$^{\rm c}$Neil Forbes and you can obtain the latest version from his % website: % % \begin{itemize} % \item \href{http://alum.mit.edu/www/mforbes/projects/ubcthesis/} % {\texttt{http://alum.mit.edu/www/mforbes/projects/ubcthesis/}} % \end{itemize} % % All the files should be packaged together with this document, % however, the only required files are \file{ubcthesis.dtx} and % \file{ubcthesis.ins}. From these, all other files (with the % exception of \file{Makefile}, \file{README}, \file{TODO} and the % sample figures) can be generated using the \LaTeX{} program. This is % described in Section~\ref{sec:Install}. At the end of the day, the % only files you actually need are the generic thesis class % \file{genthesis.cls} and the appropriate flavour class % (\file{ubcthesis.cls}, \file{mitthesis.cls} etc.) but these should % not be distributed on their own as they contain no documentation. % % If you cannot find the files at the aforementioned site, please try % searching at one of the following places: % \begin{itemize} % \item \href{http://www.physics.ubc.ca/} % {\texttt{http://www.physics.ubc.ca/}} % \item \href{http://www.physics.ubc.ca/computer/} % {\texttt{http://www.physics.ubc.ca/computer/}} % \item \href{http://www.physics.ubc.ca/computer/ubcthesis.phtml} % {\texttt{http://www.physics.ubc.ca/computer/ubcthesis.phtml}} % \end{itemize} % There may also be a reference to the package through the % universities listed in Section~\ref{sec:disclaimer}. % % \subsubsection{Files} % The complete package should be called \file{ubcthesis.tgz} or % \file{ubcthesis.tar.gz} or \file{ubcthesis.zip} or similarly % depending on how it is packaged and includes the files: % \begin{description} % \item[\file{ubcthesis.dtx}] This file contains the % \file{genthesis.cls} class as well as the flavours % (\file{ubcthesis.cls}, \file{mitthesis.cls} etc.) as well as a sample % thesis and all of the documentation. It can be processed with % \LaTeX{} to generate the documentation (see % Section~\ref{sec:Documentation}). % \item[\file{ubcthesis.ins}] This file is a script that unpacks the % \file{ubcthesis.dtx} file. It should be processed with \LaTeX. % \item[\file{fig.eps}] This file is a sample figure for inclusion with % the sample theses. % \item[\file{fig.fig}] % This file is the |xfig| source for the \file{fig.eps} file. % \end{description} % % \subsection{Installing the \file{ubcthesis} package}\label{sec:Install} % To install the |ubcthesis| package you must have a working version of % \LaTeX{} installed on your system. The \LaTeX{} program can them be % used to generate the appropriate files and documentation. It is % recommended that you copy all the files \file{ubcthesis.dtx}, % \file{ubcthesis.ins}, \file{fig.eps} and \file{fig.fig} to a % temporary directory first. The rest of the installation instructions % will assume that you have done this. % % Alternatively, if you have a version of \file{make} on your system, % you might be able to use the accompanying \file{Makefile} by running % \begin{verbatim} % make all % \end{verbatim} % % \subsubsection{Documentation} % \label{sec:Documentation} % To generate the documentation, run the following commands: % \begin{verbatim} % latex ubcthesis.dtx % makeindex -s gglo.ist -o ubcthesis.gls ubcthesis.glo % makeindex -s gind.ist ubcthesis.idx % latex ubcthesis.dtx % latex ubcthesis.dtx % \end{verbatim} % Running \LaTeX{} three times is required to properly generate the % cross-references. The makeindex program generates the index and % change logs. This will produce the file \file{ubcthesis.dvi} % which can then be viewed with the |xdvi| program: % \begin{verbatim} % xdvi ubcthesis.dvi % \end{verbatim} % In addition, the usual auxiliary \LaTeX{} files will be produced. % These may be discarded. % Copy the documentation file \file{ubcthesis.dvi} to an appropriate % location for future references. % % \subsubsection{Generating the \file{.cls} class files} % To generate the generic class file \file{genthesis.cls}; flavours % (\file{ubcthesis.cls}, \file{mitthesis.cls} etc); as well as the sample % theses, run \LaTeX once on the \file{ubcthesis.ins} file: % \begin{verbatim} % latex ubcthesis.ins % \end{verbatim} % This will generate the following files: % \begin{description} % \item[\file{genthesis.cls}] This is the generic thesis class which % is the basis for all flavours. % \item[\file{ubcthesis.cls}] This is the |ubcthesis| class file with % a decidedly west-coast flavour. % \item[\file{mitthesis.cls}] This is the |mitthesis| class file with % a decidedly east-coast flavour. % \item[\file{ubcthesis.drv}] This is a driver file used to unpack the % other files. It may be safely removed. % \item[\file{ubcthesis.log}] This is a log of what happened during the % unpacking. If you have problems, you might check this, but it may % not be easy to read. It may be safely removed. % \item[\file{ubcsample.tex}] This is the sample thesis file for % producing UBC theses. % \item[\file{mitsample.tex}] This is the sample thesis file for % producing MIT theses. % \item[\file{sample.bib}] This is a sample BIBTeX bibliography % database for the sample thesis. % \end{description} % The sample thesis files should be moved to the same directory as the % documentation files as they are very useful for someone writing a % thesis. \emph{These should be used as a template because they conform to % the UBC thesis requirements.} % \subsubsection{Sample Thesis} % \label{sec:GettingStartedSampleThesis} % The sample UBC thesis consists of the files \file{ubcsample.tex} and % \file{sample.bib}. It is setup to conform with the UBC standard and % \emph{should be used as a template} because it specifies the correct % order of elements such as the abstract, table of contents etc. It % also contains many examples of \LaTeX{} features. To compile it, use % the following commands: % \begin{verbatim} % latex ubcsample % bibtex ubcsample % latex ubcsample % latex ubcsample % \end{verbatim} % The first time, a list of references will be produced in the file % \file{ubcsample.aux}. Also, the list of tables \file{ubcsample.lot} and % list of figures \file{ubcsample.lof} will be produced. The BIBTeX % program will then use this and the list of bibliographic information % in \file{sample.bib} to produce a properly formatted bibliography in % \file{sample.bib}. The final calls to \LaTeX{} will arrange all the % cross-references correctly. % % View the sample thesis using |xdvi|: % \begin{verbatim} % xdvi ubcsample.dvi % \end{verbatim} % % There are additional flavours of thesis conforming to different % standards. The \file{mitsample.tex} produces a thesis acceptable % for use at the Massachusetts Institute of Technology for example. % % The actual class file \file{genthesis.cls} as well as the desired % flavour (\file{ubcthesis.cls}, \file{mitthesis.cls} etc.) must be % installed somewhere that \LaTeX{} can find. This should be on the % TEXINPUTS path. Check with your system administrator for the % correct location. It is likely somewhere like: % \begin{verbatim} % /usr/local/texmf/ % /opt/local/teTeX/share/ % \end{verbatim} % Optionally, you can simply put a copy in the same directory as your % thesis. % % Be sure that when you distribute your thesis, you also % include the \file{genthesis.cls} and the appropriate flavour file % \file{ubcthesis.cls}, \file{mitthesis.cls} etc. (please consider % including the entire |ubcthesis| distribution!) since it is not yet % a standard \LaTeX{} package. % % \section{Writing a Thesis} % To begin writing a thesis using the \texttt{ubcthesis} class, you % should start with the sample thesis as a template. In particular, % the sample thesis shows you how order various sections and to ensure % that pages are numbered appropriately. In addition, many useful % options are demonstrated here. This sections describes how you can % use the \texttt{ubcthesis} class to accomplish various tasks. % % \subsection{University Flavour} % The first and major option is to select a university flavour to % use. This is done by choosing the appropriate class. The following % document classes are provided by this package: % \begin{description} % \item[\file{ubcthesis}:] Theses for the University of British % Columbia in Vancouver, B.C., Canada. % \item[\file{mitthesis}:] Theses for the Massachusetts Institute of % Technology in Cambridge, Massachusetts, USA. % \end{description} % % These select which flavour of university the thesis will be % formatted for. These options trigger the generation of specific % title pages, etc. required by each university, as well as % % \subsection{Page Style} % You may wish to change the way that you pages look in your thesis. % This section describes how to do this. % % \subsubsection{Headers and Footers} % The terms ``headers'' and ``footers'' refer to text that appears at % the top and bottom of the page. The \texttt{norunningheaders} option % can be used to suppress the display of a header, and the % \texttt{noheadline} option can be used to suppress the line drawn % under the header. % % To further customize the appearance of the headers and footers, use % the \texttt{fancyhdr} package. This gives you much more control % over the headers. See the documentation supplied with the % \texttt{fancyhdr} package for more details. % % If you do decide to define your own headers, be careful about page % numbering: you may need to explicitly include a page number in your % header to ensure that each page is numbered. % % \subsection{Class Options} % \label{sec:genthesis:Options} % Most of the behaviours of the \Lclass{genthesis} class are % controlled through flags that are set in the % \verb|\documentclass[]{ubcthesis}| or % \verb|\documentclass[]{mitthesis}| statement that occurs at the % start of your document. Options are specified in the square % brackets, for example the \file{ubcsample.tex} sample file uses the % options \Lopt{msc} and \Lopt{oneside}. % % Options usually appear in pairs that enable or disable a feature. % As the \Lclass{genthesis} class was derived from the standard book % class, many of the options are still supported. In this section we % describe all options that are different from the standard \LaTeX\ % \file{book} class and a few of the relevant options that have been % maintained. The default option values for the \Lclass{genthesis} % class are underlined. Note: the default options vary depending on % the flavour of the class. See the corresponding sections in % Part~\ref{sec:Flavours} % % \changes{v1.34}{2006/02/20}{Added pagenum... and (no)bibnum options % (MMF)} % \changes{v1.32}{2006/02/15}{Added tocitalic option (CD)} % \changes{v1.11}{2002/02/12}{Added tocupper option} % \begin{description} % \item[draft/\underline{final}] % \DescribeMacro{draft} % \DescribeMacro{final} % These toggle between draft and final modes. Use the final mode for % submission. Note: in the draft version, graphics are not % necessarily displayed depending on the graphics package you use. % \item[\underline{10pt}/11pt/12pt] % \DescribeMacro{10pt} % \DescribeMacro{11pt} % \DescribeMacro{12pt} % Sets the font size. % \item[\underline{oneside}/twoside] % \DescribeMacro{oneside} % \DescribeMacro{twoside} % Single verses double sided. This just offsets the pages: you must % specify to print (for example, use the command % \texttt{lpr -Zsimplex \dots} for one side or \texttt{lpr % -Zduplex \dots} for two). If you are handing in your thesis % single sided (the current requirement) then be sure to use the % oneside option. % \item[\underline{pagenumTR}/pagenumBC/pagenumBR] % \DescribeMacro{pagenumTR} % \DescribeMacro{pagenumBC} % \DescribeMacro{pagenumBR} % Sets the location of the page number: Top Right, Bottom Center, % and Bottom Right respectively (Right means outside edge for % twoside format). % \item[upper/\underline{noupper}] % \DescribeMacro{upper} % \DescribeMacro{noupper} % Upper case chapters and part headings. % \item[tocupper/\underline{notocupper}] % \DescribeMacro{tocupper} % \DescribeMacro{notocupper} % Upper case in the table of contents. % \item[tocitalic/\underline{notocitalic}] % \DescribeMacro{tocitalic} % \DescribeMacro{notocitalic} % Italicize chapter titles (for non-main matter) in table of contents. % \item[\underline{chapterheads}/nochapterheads] % \DescribeMacro{chapterheads} % \DescribeMacro{nochapterheads} % Display ``Chapter \#'' before chapter titles in the main matter % of the thesis. % \item[\underline{headcount}/noheadcount] % \DescribeMacro{headcount} % \DescribeMacro{noheadcount} % Toggles the display of the numbers in chapter headings. % \item[msc/ma/masc/meng/\underline{phd}] % \DescribeMacro{msc} % \DescribeMacro{ma} % \DescribeMacro{masc} % \DescribeMacro{meng} % \DescribeMacro{phd} % Sets the style. Sets degreetitle to "DOCTOR OF PHILOSOPHY", % "MASTER OF SCIENCE" etc. in the title page. The number of signature % lines is also changed. % \item[appendixpart/\underline{noappendixpart}] % \DescribeMacro{appendixpart} % \DescribeMacro{noappendixpart} % Specifies that the appendices should be treated as a numbered % part of the document. Otherwise, the appendices are simply % announced in the table of contents and the chapter numbering is % changed to lettering. % \item[appendixpage/\underline{noappendixpage}] % \DescribeMacro{appendixpage} % \DescribeMacro{noappendixpage} % Puts a page separator between the main body and the start of the % appendices. Has no effect if the option "appendixpart" is % specified since parts are already separated by a separate page. % \item[\underline{appendicestoc}/noappendicestoc] % \DescribeMacro{appendicestoc} % \DescribeMacro{noappendicestoc} % Puts a dividing line with |\appendicesname| in the table of % contents before the appendices. % \item[hangingcaptions/\underline{nohangingcaptions}] % \DescribeMacro{hangingcaptions} % \DescribeMacro{nohangingcaptions} % These options determine whether or not figure and table captions % should ``hang''. Hanging captions are justified so that all the % caption text comes after the caption label. % \item[\underline{runningheaders}/norunningheaders] % \DescribeMacro{runningheaders} % \DescribeMacro{norunningheaders} % These display or suppress running headers that contain the % current chapter name and number. If they are suppressed, only % the page number will be displayed. % \item[\underline{headline}/noheadline] % \DescribeMacro{headline} % \DescribeMacro{noheadline} % These display or suppress a horizontal line running under the % headers at the top of the page. % \item[crosshair/\underline{nocrosshair}] % \DescribeMacro{crosshair} % \DescribeMacro{nocrosshair} % These toggle between crosshair and nocrosshair modes. The % crosshair mode puts a large X on empty pages. (Pages with % pagestyle \pstyle{empty}). % \item[committee] % \DescribeMacro{committee} % Use this option when producing the version to send to your thesis % committee if they want the document with $1.5$ spacing so there is % some room for comments between the lines. You may change the % spacing by redefining the |\committeespacing| command in the % preamble (before the |\begin{document}| command). The % following command would give double spacing for example. % \begin{verbatim} % \renewcommand{\committeespacing}{2} % \end{verbatim} % \item[\underline{chapternotereset}/nochapternotereset] % These options specify whether or not the footnote counter should be % reset each chapter or not. % \item[\underline{bibnum}/nobibnum] % Number the bibliography chapter or not if it is in the mainmatter. % \item[sectionbib] % Treat the bibliography as a section rather than a chapter. % \end{description} % % \section{Interface Guidelines} % This section lists all of the commands supported by the general % thesis class. These commands and options should be supported by all % flavours, but additional commands may be defined for specific % flavours. In a sense, this defines the interface to the thesis % class. If you use only these commands or options, then you should % be able to choose any flavour without modifying your thesis. % % \subsection{Options} % \begin{multicols}{2} % \begin{tabbing} % 10pt\\ % 11pt\\ % 12pt\\ % a4paper\\ % a5paper\\ % appendixpage\\ % appendixpart\\ % appendicestoc\\ % bibnum\\ % b5paper\\ % bold\\ % centerheadline\\ % centerheads\\ % chapterheads\\ % chapternotereset\\ % committee\\ % crosshair\\ % defaultfonts\\ % draft\\ % executivepaper\\ % final\\ % fleqn\\ % hangingcaptions\\ % headcount\\ % headline\\ % landscape\\ % leftheads\\ % legalpaper\\ % leqno\\ % letterpaper\\ % logo\\ % ma\\ % masc\\ % meng\\ % msc\\ % noappendixpage\\ % noappendixpart\\ % noappendicestoc\\ % nobibnum\\ % nocenterheadline\\ % nochapterheads\\ % nochapternotereset\\ % nohangingcaptions\\ % noheadcount\\ % noheadline\\ % nologo\\ % nopartheads\\ % norunningheaders\\ % notocupper\\ % notocitalic\\ % noupper\\ % noupperauthor\\ % noupperdegreetitle\\ % noupperdepartment\\ % noupperfaculty\\ % noupperinstitution\\ % nouppersubtitle\\ % nouppertitle\\ % onecolumn\\ % oneside\\ % openany\\ % openbib\\ % openright\\ % openrightblank\\ % pagenumBC\\ % pagenumBR\\ % pagenumTR\\ % partheads\\ % phd\\ % rightheads\\ % runningheaders\\ % sectionbib\\ % sfbold\\ % slanted\\ % tocitalic\\ % tocupper\\ % twocolumn\\ % twoside\\ % upper\\ % upperauthor\\ % upperdegreetitle\\ % upperdepartment\\ % upperfaculty\\ % upperinstitution\\ % uppersubtitle\\ % uppertitle\\ % \end{tabbing} % \end{multicols} % % \subsection{Counters} % \begin{multicols}{2} % \begin{tabbing} % chapter\\ % figure\\ % paragraph\\ % part\\ % section\\ % subparagraph\\ % subsection\\ % subsubsection\\ % table % \end{tabbing} % \end{multicols} % % \subsection{Lengths} % \begin{multicols}{2} % \begin{tabbing} % \verb|\abovecaptionskip|\\ % \verb|\belowcaptionskip|\\ % \verb|\chapterafterskip|\\ % \verb|\chapterbeforeskip|\\ % \verb|\chapterbetweenskip|\\ % \verb|\headlinespace|\\ % \verb|\paragraphafterskip|\\ % \verb|\paragraphbeforeskip|\\ % \verb|\paragraphindent|\\ % \verb|\partbetweenskip|\\ % \verb|\sectionafterskip|\\ % \verb|\sectionbeforeskip|\\ % \verb|\sectionindent|\\ % \verb|\subparagraphafterskip|\\ % \verb|\subparagraphbeforeskip|\\ % \verb|\subparagraphindent|\\ % \verb|\subsectionafterskip|\\ % \verb|\subsectionbeforeskip|\\ % \verb|\subsectionindent|\\ % \verb|\subsubsectionafterskip|\\ % \verb|\subsubsectionbeforeskip|\\ % \verb|\subsubsectionindent|\\ % \verb|\titlemarginbottom|\\ % \verb|\titlemarginleft|\\ % \verb|\titlemarginright|\\ % \verb|\titlemargintop|\\ % \end{tabbing} % \end{multicols} % % \changes{v1.28}{2005/11/15}{Removed \cs{chaptertoc} etc. |_toc| % commands as these are redundant with the optional argument syntax % for \cs{chapter[]{}}} % \changes{v1.28}{2005/11/15}{Removed \cs{preface}, % \cs{acknowledgements} and related commands.} % \changes{v1.32}{2006/02/15}{\cs{chapterfont} should be % \cs{chapterheadfont} (CD)} % \subsection{Commands} % \begin{multicols}{2} % \begin{tabbing} % \verb|\Lcount|\\ % \verb|\Lopt|\\ % \verb|\abstractfont|\\ % \verb|\abstractname|\\ % \verb|\appendix|\\ % \verb|\appendixname|\\ % \verb|\appendicesname|\\ % \verb|\authorfont|\\ % \verb|\authorizationform|\\ % \verb|\backmatter|\\ % \verb|\bibname|\\ % \verb|\bibsize|\\ % \verb|\captionbodyfont|\\ % \verb|\captionheaderfont|\\ % \verb|\chapter|\\ % \verb|\chapterauthorfont|\\ % \verb|\chapterfont|\\ % \verb|\chaptermark|\\ % \verb|\chaptername|\\ % \verb|\chaptertitlefont|\\ % \verb|\committeespacing|\\ % \verb|\contentsname|\\ % \verb|\copyrightyear|\\ % \verb|\copyrightnotice|\\ % \verb|\degreeword|\\ % \verb|\degreetitle|\\ % \verb|\degreetitlefont|\\ % \verb|\department|\\ % \verb|\descriptionlabel|\\ % \verb|\draftname|\\ % \verb|\examplefont|\\ % \verb|\faculty|\\ % \verb|\facultyfont|\\ % \verb|\figurefont|\\ % \verb|\figurename|\\ % \verb|\file|\\ % \verb|\frontmatter|\\ % \verb|\headingstextfont|\\ % \verb|\indexname|\\ % \verb|\indexsize|\\ % \verb|\indexspace|\\ % \verb|\institution|\\ % \verb|\institutionaddress|\\ % \verb|\institutionfont|\\ % \verb|\itemfont|\\ % \verb|\labelenumi|\\ % \verb|\labelenumii|\\ % \verb|\labelenumiii|\\ % \verb|\labelenumiv|\\ % \verb|\labelitemi|\\ % \verb|\labelitemii|\\ % \verb|\labelitemiii|\\ % \verb|\labelitemiv|\\ % \verb|\listfigurename|\\ % \verb|\listoffigures|\\ % \verb|\listoftables|\\ % \verb|\listtablename|\\ % \verb|\lofindent|\\ % \verb|\loflabelwidth|\\ % \verb|\logofile|\\ % \verb|\lotindent|\\ % \verb|\lotlabelwidth|\\ % \verb|\mainmatter|\\ % \verb|\maketitle|\\ % \verb|\newblock|\\ % \verb|\numberofsignatures|\\ % \verb|\pagenumberfont|\\ % \verb|\paragraph|\\ % \verb|\paragraphfont|\\ % \verb|\part|\\ % \verb|\partfont|\\ % \verb|\partname|\\ % \verb|\partnamefont|\\ % \verb|\previousdegree|\\ % \verb|\prog|\\ % \verb|\pstyle|\\ % \verb|\section|\\ % \verb|\sectionfont|\\ % \verb|\signatures|\\ % \verb|\subitem|\\ % \verb|\submitdate|\\ % \verb|\subparagraph|\\ % \verb|\subparagraphfont|\\ % \verb|\subsection|\\ % \verb|\subsectionfont|\\ % \verb|\subsubitem|\\ % \verb|\subsubsection|\\ % \verb|\subsubsectionfont|\\ % \verb|\subtitle|\\ % \verb|\subtitlefont|\\ % \verb|\tablefont|\\ % \verb|\tablename|\\ % \verb|\tableofcontents|\\ % \verb|\theorembodyfont|\\ % \verb|\theoremheaderfont|\\ % \verb|\titlefont|\\ % \verb|\titlepage|\\ % \verb|\titlepagefont|\\ % \verb|\translatorfont|\\ % \verb|\ubcauthorizationform|\\ % \end{tabbing} % \end{multicols} % \section{Contributions} % \label{sec:Contributions} % While this class attempts to conform to the requirements of UBC, I % have attempted to make it very general so that it will be of use for % anyone writing a thesis. In particular, I have included many % options that can be changed to meet the specific requirements of a % given university. Ultimately, I would like to include several % ``global options'' that would change the format to conform with % various universities. These would work in much the same way that % the various Font Options (see Section~\ref{sec:FontOptions}): each % global option would set a bunch of options and variables to make the % style conform to the universities requirements. % % An additional type of modification would be to add a variety of % title page formats (see Section~\ref{sec:TitlePage}). There are also % many features that could be added which I have not had the time to % research and implement. One would be an easy method for including % custom counters (such as provided by figures and equations). One % specific request is for a ``Scheme'' counter which would count % chemical schemes or formula. This would allow users to produce a % ``List of Schemes'' much as a list of tables and list of figures is % currently produced. See Section~\ref{sec:ToDo} for a list of tasks. % % I would appreciate any feedback, including comments, suggestions, % modifications etc. In particular, I would like to know of any % features that you require that are not available with the current % set of options. Also, if you have a font scheme that looks good, % please let me know so that I can include it (I have not spent a % whole lot of time thinking about the beast choice of layout as I % have had a thesis to write too!) % % Michael M$^{\rm c}$Neil Forbes % mforbes@physics.ubc.ca % % \section{To Do (including bugs)} % \label{sec:ToDo} % \begin{description} % \item[Layout and Design] Consider using the \file{memoir} class % which provides many different styling options. % \item[Spacing Options] Options should be provided, at least for the % UBC sample to make the document 1.5 spaced as this may now % required by the FoGS. % \item[Update Font Options] The default font options look okay, but % the others (slanted for example) look pretty bad. These should be % updated. % \item[Figure Fonts] Add a command to allow for different fonts in % figure environments. This would allow for different fonts to be % selected for psfrag for example. % \item[Custom Lists] Currently, counters are provided for Figures and % for Tables that are recorded in \file{.lof} and \file{.lot} files % respectively for later inclusion in a List of Figures via the % |\listoffigures| command and |\listoftables| commands respectively. % I would like to provide a way for the user to define custom counters % and similar tables for various other types of lists. In particular, % a request has been made for a ``List of Schemes'' allowing chemists % to list chemical formulae. % % One easy way of doing this would be to provide a set of a fixed % number of lists (perhaps with associated files \file{.lo1}, % \file{.lo2}, \dots, \file{.lo9}) that the user can use and provide % customized titles. A better way would probably allow the number to % be flexible. % \item[Wide Text] A small environment should be made which allows % equations or other elements to be inserted which extend beyond the % width of the text for occasional equations etc. that are long. This % should justify the wide text properly and center it on the page % (possibly including an option for the width of the box and options % for flush left, right etc. with the box centered on the page). % \item[Indices] I have never worked with indices, so I have no comments % on how to do this (nor have I designed the package with this in % mind). Many people would probably like to include an index, and so % I should include instructions on how to. I will when I figure it % out\dots % \item[Proper Placement of Commands] In order to ensure that the % |ubcthesis| class works well with other packages, it should be % more careful about where various code elements are placed. % % \item[\file{hyperref} Package] There are problems with the % \file{hyperref} package and index entries when producing the % documentation. There was also a problem with \file{hyperref} in % the actual class with the table of contents, but this has been % resolved. In the future note that one must be careful where one % converts things to upper case: doing so where the toc was written % created problems with the hyper-link information. Now the % conversion happens before the hyper-links are added. % % When this is fixed, include the index and instructions on how to % make the index. % \item[Section Numbering] The |\@headingalignment| command affects % something adversely, but I cannot remember what. This should be % tested and the bug fixed. % \item[Draft Headers] The Headers in draft mode should still have % the page numbers on the right hand side. There is a discrepancy % between the abstract page etc. and the rest of the document. % \item[Magic Numbers] Many of these have been replaced, but there are % still many magic numbers that should be replaced by modifiable % constants. % \item[Title Pages] Fix titlepage error messages to be a bit nicer. % \item[Logo Copy] Remove redundancy in the |\@logocopy| text. The % present code is a bit of a hack and duplicates data. % \item[Page Numbering] Make the page numbering scheme more flexible. % In particular, consider suppressing the counting of certain pages % (such as the authorization form) rather than hard setting the % numbers. % \item[Lettered Figures] Add options for lettered figures. % \item[Table Of Contents] If there are a very large number of % sections, then the numbers in the toc become large than the space % allocated for them. (For an example of this, see the % table of contents for this file!) Ideally, when running, the size % of the maximum label should be calculated and this used to set the % spacing. This could be sent to the .aux file or possibly computed % ahead of time. % \item[Page Breaks] Add ability to break pages in weird locations. % (See Darren Peets class). % \item[Chapter Headlines] The first page of a chapter now returns to % the pagestyle |plain| which is the default behaviour for the % \LaTeX{} classes. An option should be added which allows one to % customize the chapter page style to give the option of running % headers as before. % \item[Running Header ``Section'' Marks] Right now the running % headers show only the current chapter. The code is in place to % changed the marks so that they show the current section as well, % but this should be made as an optional change, not the default. % Proper options should be provided (in the form of a counter like % tocdepth and secnumdepth) which allow the user or flavour to % customize this. % \item[Draft Mode] It might be useful to have a draft mode which % includes graphics (because this also includes the current date). % Also, if it does not break anything, a SVN revision number should % be included in the draft header as well. Draft mode might also % force a header onto every page. % \item[Change Log Ordering/Index] Presently the change log is not sorted % very well in that version 1.2 is really below 1.12. The former % should probably be changed to 1.02 etc. Also, the styles % etc. should be updated, and the calls to \Lclass{makeindex} should % somehow be automated if possible. Finally, the index should % actually link to the pages if possible (with hyperref?) so that % modern version of xdvi etc. will allow you to click and go to the % relevant pages. % % \end{description} % If there are any other features or bugs you would like to see, % please let me know (see Section~\ref{sec:Contributions}). % % \section{Acknowledgements} % This class was derived from \file{classes.dtx} Version 2001/04/21 % v1.4e which is part of the LaTeX base system. The original file % is available from % % \begin{itemize} % \item \href{http://www.ctan.org} % {\texttt{http://www.ctan.org}} % \end{itemize} % % For information on the LaTeX project, see % % \begin{itemize} % \item \href{http://www.latex-project.org/} % {\texttt{http://www.latex-project.org}} % \end{itemize} % % Additional modifications we incorporated from the thesis.cls file by % Wenzel Matiaske The incorporations were % made from Version 1996/25/01 1.0g. The \file{thesis.cls} and % \file{thesis.dtx} distribution is available from. % % \begin{itemize} % \item \href{http://www.ctan.org} % {\texttt{http://www.ctan.org}} % \end{itemize} % % I would like to especially thank the following people for % contributions: % \begin{itemize} % \item Darren Peets for helping debug the class and offering many % useful suggestions. % \item James P. Zibin for suggesting the fix for the header % overflow bug. % \item Christopher Dutchyn for pointing out that the |\chaptertoc| % and related commands were redundant, that the |\preface| and % |\acknowledgements| commands were ugly, for suggesting various % useful packages to include in the sample theses for typesetting % program code, and for supplying various corrections (denoted % throughout by (CD)). % \item Max Read for making suggestion to bring the UBS portion into % alignment with the current FoGS requirements. % \item Joseph Tam for implementing most of Max Reads requests. % \item Abhishek Gupta for pointing out the bibliography running % header bug. % \item Murray McCutcheon for pointing out the spacing bug, the % topmargin bug and the pagenumTR header bug. % \item Chris Michalak for suggesting the |openrightblank| option. % \item Valentin Koch for pointing out the first blank page bug. % \end{itemize} % % \iffalse meta-comment % This halts execution of the program if \OnlyDescription is used. % The index and changes are printed at the end of the document. % \fi % \StopEventually{% % \PrintIndex % \PrintChanges % } % % \section{Description of the files} % From here on, this document describes the actual source files % produced line by line. The following files are described: % \begin{description} % \item[\file{ubcthesis.drv}] This is the documentation driver file that % produces the documentation (which you are probably reading). This % must come first because it includes the |\documentclass| statement % for this file. % \item[\file{ubcsample.tex}] This is the sample UBC thesis. Use this % file as a template for your UBC thesis. % \item[\file{mitsample.tex}] This is the sample MIT thesis. Use this % file as a template for your MIT thesis. % \item[\file{sample.bib}] This is a sample bibliography database (in % BIBTeX format) to show you how to use one. % \item[\file{genthesis.cls}] This is the generic thesis \file{genthesis} % \LaTeX2e\ class file. Look here for specific details about the % class, especially if you want to modify or contribute to it. % \item[\file{ubcthesis.cls}] This is the UBC flavour of thesis. It % requires \file{genthesis.cls}. Look here for specific details % about UBC formatting options. If you need to make specific UBC % customizations, they should be done in this file if possible. % \item[\file{mitthesis.cls}] This is the MIT flavour of thesis. It % requires \file{genthesis.cls}. Look here for specific details % about MIT formatting options. If you need to make specific MIT % customizations, they should be done in this file if possible. % \end{description} % % \subsection{The \prog{docstrip} modules} % % The following modules are used in the implementation to direct % \prog{docstrip} in generating the external files: % \begin{center} % \begin{tabular}{ll} % genthesis & produce the documentclass genthesis\\ % ubcthesis & produce the documentclass ubcthesis\\ % mitthesis & produce the documentclass mitthesis\\ % ubcsampletex & produce the sample UBC \LaTeX{} file\\ % mitsampletex & produce the sample UBC \LaTeX{} file\\ % samplebib & produce the sample BIBTeX file\\ % driver & produce a documentation driver file \\ % \end{tabular} % \end{center} % % \cleardoublepage % % \part[Documentation Driver: For thesis class maintainers]% % {Documentation Driver} % % \changes{v1.0f}{1993/12/07}{Use class ltxdoc document class} % \changes{v1.0r}{1994/02/28}{Moved driver code in order not to need a % separate driver} % % This bit of code contains the documentation driver file for % \TeX{}, i.e., the file that will produce the documentation you % are currently reading. Note that the file \file{ubcthesis.drv} % need not actually be generated: \prog{docstrip} will process this % directly and typeset this documentation. % % We also define here the document class and formatting information % for typesetting the documentation. This is not essential for using or % modifying the thesis classes, but must appear here because it % defines the formatting required to format this document. The % first uncommented |\documentclass| command is interpreted as the % one that specifies how to typeset the documentation. % % Here is the comment that tells \prog{docstrip} to put the rest of % the code into \file{ubcthesis.drv}. Again, this need not % actually be generated and is not generated as part of the % standard distribution. % \begin{macrocode} %<*driver> % \end{macrocode} % % \section{Identification} % This section identifies the version of the file. It % also indicates which version of \LaTeX{} (\LaTeX2e) is required and % makes sure that an appropriate message is displayed when another \TeX{} % format is used. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1995/12/01] % \end{macrocode} % % Now we announce the file or class name and its version: % % \iffalse VERSION \fi % \begin{macrocode} \ProvidesFile{ubcthesis.drv}[2009/11/19 v1.61 ^^J University of British Columbia Thesis Class Documentation Driver] % \end{macrocode} % % \section{Document Class} % Now we specify the documentclass to use the \file{ltxdoc.cls} % file. This will format the documentation appropriately. This % must be the first uncommented |\documentclass| command in the % file which is why the driver must come first. % % \begin{macrocode} \documentclass{ltxdoc} % \end{macrocode} % % We also use the hyperref package to allow point and click linking % within the document. There are some problems with the index % however. % \begin{macrocode} \IfFileExists{hyperref.sty}{\usepackage[hypertex]{hyperref}}{} % \end{macrocode} % % We do want an index, using line numbers % \begin{macrocode} % Uncomment these lines to make an index and a change log in the % documentation. \AtBeginDocument{\CodelineIndex\EnableCrossrefs} \AtBeginDocument{\RecordChanges} %\OnlyDescription % Uncomment this to suppress description of files. % \end{macrocode} % The following command retrieves the date and version information % from the file. % \begin{macrocode} \GetFileInfo{ubcthesis.drv} % \end{macrocode} % Some commonly used abbreviations % \changes{v1.2w}{1994/12/01}{Use \cs{newcommand*}} % \begin{macrocode} \newcommand*{\Lopt}[1]{\textsf {#1}} \newcommand*{\file}[1]{\texttt {#1}} \newcommand*{\Lclass}[1]{\texttt {#1}} \newcommand*{\Lcount}[1]{\textsl {\small#1}} \newcommand*{\pstyle}[1]{\textsl {#1}} \newcommand*{\prog}[1]{\textsc {#1}} % \end{macrocode} % We also want the full details. % \begin{macrocode} \begin{document} \DocInput{ubcthesis.dtx} % \end{macrocode} % \section{End of Document} % \begin{macrocode} \end{document} % \end{macrocode} % Finally, we close off the driver file so that nothing else is put % into the documentation driver. % \begin{macrocode} % % \end{macrocode} % % \changes{v1.56}{2009/01/14}{Use \cs{monthname} for \cs{submitdate} % as required by the FoGS.} % \changes{v1.51}{2008/02/21}{Added instructions for Okanagan campus.} % \changes{v1.33}{2006/02/16}{Implemented several requests made by Max % Read of the UBC FoGS. Many of these were actually implemented by % Joseph Tam} % \part[Sample Theses: For thesis class maintainers]{Sample Theses} % \label{sec:Sample} % % This section presents the code for the sample thesis with comments. % If you add a new flavour, please include a sample thesis here to % show users how to use your flavour. % % In the spirit of \LaTeX, we try not to impose restrictions on the % layout in the actual thesis class. Instead, restrictions posed by % the university should be clearly spelled out in the sample files. % Thus, these templates are an important part of a complete % distribution. % % \section{Sample UBC Thesis} % This is a thesis conforming to the University of British Columbia % guidelines. % % Here is the comment that tells \prog{docstrip} to put the % following code into \file{ubcsample.tex}. % % \begin{macrocode} %<*ubcsampletex> % \end{macrocode} % % \subsection{Identification} % This section identifies the version of the file. It % also indicates which version of \LaTeX{} (\LaTeXe) is required and % makes sure that an appropriate message is displayed when another \TeX{} % format is used. % \begin{macrocode} %% This Sample thesis requires \LaTeX2e \NeedsTeXFormat{LaTeX2e}[1995/12/01] % \end{macrocode} % % Now we announce the file or class name and its version: % % \iffalse VERSION \fi % \begin{macrocode} \ProvidesFile{ubcsample.tex}[2009/11/19 v1.61 ^^J University of British Columbia Sample Thesis] % \end{macrocode} % % \subsection{Document Structure} % This section describes the structure that your \LaTeX{} document must % have. Various sections of the sample code will be presented to % illustrate this structure though the sample file \file{ubcsample.tex} % does not contain all of the options and features. % % The first section of a \LaTeX{} document contains information % about the structure of the document. This is called the document % preamble. % % Usually the first command is the |\documentclass| command which % specifies the class to use and the options to the class % % \begin{macrocode} %% This is the \documentclass[]{} command. The manditory argument %% specifies the "flavour" of thesis (ubcthesis for UBC). The %% optional arguments (in []) specify options that affect how the %% thesis is displayed. Please see the ubcthesis documentation for %% details about the options. \documentclass[msc,oneside]{ubcthesis} % \end{macrocode} % % \begin{macrocode} %% %% To compile this sample thesis, issue the following commands: %% latex ubcsample %% bibtex ubcsample %% latex ubcsample %% latex ubcsample %% latex ubcsample %% %% To view use xdvi (on unix systems): %% xdvi ubcsample.dvi %% %% To make a postscript file, use dvips: %% dvips -o ubcsample.ps ubcsample.dvi %% %% To view the postscript file, use ghostview or gv (on unix systems): %% gv ubcsample.ps %% %%************************************************ %% Optional packages. %% %% The use of these packages is optional, but they provide various %% tools for more flexible formating. The sample thesis uses these, %% but if you remove the example code, you should be able to exclude %% these packages. Only standard packages have been described here; %% they should be installed with any complete LaTeX instalation, but %% if not, you can find them at the Comprehensive TeX Archive Network %% (CTAN): http://www.ctan.org/ %% %%******** afterpage *************************** %% This package allows you to issue commands at the end of the current %% page. A good use for this is to use the command %% \afterpage{\clearpage} right after a figure. This will cause the %% figure to be inserted on the page following the current one (or on %% the current page if it will fit) but will not break the page in the %% middle. \usepackage{afterpage} %%******** float ********************************* %% This package allows you to customize the style of %% "floats"---floating objects such as figures and tables. In %% addition, it allows you to define additional floating objects which %% may be included in a list similar to that produces by \listoftables %% and \listoffigures. Common uses include introducing floats for %% programs and other code bits in Compute Science and Chemical Schema. \usepackage{float} %%******** alltt ********************************* %% The alltt package allows you to include files and have them %% formatted in a verbatim fashion. This is useful for including %% source code from an additional file. %%\usepackage{alltt} %%******** listings ****************************** %% The listings package may be used to include chunks of source code %% and has facilities for pretty-printing many languages. %%\usepackage{listings} %%******** longtable ***************************** %% The longtable package allows you to define tables that span %% multiple pages. \usepackage{longtable} %%******** graphics and graphicx ***************** %% This allows you to include encapsulated postscript files. If you %% don't have this, comment the \includegraphics{} line following the %% comment "%includegraphics" later in this file. \usepackage{graphicx} %%******** subfigure ***************************** %% The subfigure package allows you to include multiple figures and %% captions within a single figure environment. %%\usepackage{subfigure} %%******** here ********************************** %% The here package gives you more control over the placement of %% figures and tables. In particular, you can specify the placement %% "H" which means "Put the figure here" rather than [h] which means %% "I would suggest that you put the figure here if you think it looks %% good." %%\usepackage{here} %%******** lscape ******************************** %% This allows you to include landscape layout pages by using the %% |landscape| environment. Note that this output might only be valid %% after converting to a postscript or pdf file. \usepackage{lscape} %%******** natbib ******************************** %% This is a very nice package for bibliographies. It includes options %% for sorting and compressing bibliographic entries. \usepackage[numbers,sort&compress]{natbib} %%******** psfrag ****************************** %% This allows you to replace text in postscript pictures with formated %% latex text. This allows you to use math in graph labels %% etc. Uncomment the psfrag lines following the "%psfrag" comment %% later in this file if you don't have this package. The replacements %% will only be visible in the final postscript file: they will be %% listed in the .dvi file but not performed. \usepackage{psfrag} %%******** hyperref ***************************** %% This adds hyperlinks to your document: with the right viewers (later %% versions of xdvi, acrobat with pdftex, latex2html etc.) this will %% make your equation, figure, citation references etc. hyperlinks so %% that you can click on them. Also, your table of contents will be %% able to take you to the appropriate sections. In the viewers that %% support this, the links often appear with an underscore. This %% underscore will not appear in printed versions. %% %% Note: if you do not use the hypertex option, then the dvips driver %% may be loaded by default. This will cause the entries in the list %% of figures and list of tables to be on a single line because dvips %% does not deal with hyperlinks on broken lines properly. %% %% NOTE: HYPERREF is sensitive to the ORDER in which it is LOADED. %% For example, it must be loaded AFTER natbib but BEFORE newly %% defined float environments. See the README file with the hyperref %% for some help with this. If you have some very obscure errors, try %% first disabling hyperref. If that fixes the problem, try various %% orderings. %% %% Note also that there is a bug with versions before 2003/11/30 %% v6.74m that cause the float package to not function correctly. %% Please ensure you have a current version of this package. A %% warning will be issued if you leave the date below but do not have %% a current version installed. \usepackage[hypertex]{hyperref}[2003/11/30] %% If you would like to compile this sample thesis without the %% hyperref package, then you will need to comment out the previous %% \usepackage command and uncomment the following command which will %% put the URL's in a typewriter font but not link them. %%\newcommand\href[2]{\texttt{#2}} %%******** setspace ******************************* %% The setspace package allows you to manually set the spacing of the %% file. UBC may require 1.5 spacing for microfilming of theses. In %% this case you may obtain this by including this package and issuing %% one of the following commands: %%\usepackage{setspace} %%\singlespacing %%\onehalfspacing %%\doublespacing %% These commands are optional. The defaults are shown. You only %% need to include them if you need a different value \institution{The University Of British Columbia} %% If you are at the Okanagan campus, then you should specify these %% instead. %%\faculty{The College of Graduate Studies} %%\institutionaddress{Okanagan} \faculty{The Faculty of Graduate Studies} \institutionaddress{Vancouver} %% You can issue as many of these as you have... \previousdegree{B.Sc., The University of British Columbia, 1999} \previousdegree{M.Sc., The University of British Columbia, 2001} \previousdegree{Ph.D., Massachusetts Institute of Technology, 2005} %% You can override the option setting here. %% \degreetitle{Jack of All Trades} %% These commands are required. \title{A Sample UBC Thesis} \subtitle{With a Subtitle} \author{Michael M$^{\rm c}$Neil Forbes} \copyrightyear{2000} \submitdate{\monthname\ \number\year} % The "\ " is required after % \monthname to prevent the % command from eating the space. \program{Physics} %% These commands are presently not required for UBC theses as the %% advisor's name and title are not presently required anywhere. %%\advisor{Ariel R.~Zhitnitsky} %%\advisortitle{Professor of Physics} % \end{macrocode} % % \subsubsection{Chapter and section counter formats} % For any counter \Lcount{CTR}, |\theCTR| is a macro that defines the % printed version of counter \Lcount{CTR}. It is defined in terms of % the following macros: % % |\arabic{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} % as an Arabic numeral. % % |\roman{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} as % a lowercase Roman numeral. % % |\Roman{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} as % an uppercase Roman numeral. % % |\alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} as % a lowercase letter: $1 =$~a, $2 =$~ b, etc. % % |\Alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} as % an uppercase letter: $1 =$~A, $2 =$~B, etc. % % This section of the sample class redefines these (actually, the % redefinitions match the defaults so this would be pointless in the % actual thesis, but is here for demonstration purposes.) % \begin{macrocode} % %% One might want to override the format of the section and chapter %% numbers. This shows you how to do it. Note that the current %% format is acceptable for submission to the FoGS: If you wish to modify %% these, you should check with the FoGS explicity. prior to making %% the modifications. \renewcommand\thepart {\Roman{part}} \renewcommand\thechapter {\arabic{chapter}} % \end{macrocode} % The section and lower commands also display the numbers of higher % sections too and a punctuation mark. These show you how to change % these. (Again, the formats actually given here are the defaults.) % \begin{macrocode} \renewcommand\thesection {\thechapter.\arabic{section}} \renewcommand\thesubsection {\thesection.\arabic{subsection}} \renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}} \renewcommand\theparagraph {\thesubsubsection.\arabic{paragraph}} \renewcommand\thesubparagraph {\theparagraph.\arabic{subparagraph}} % Two related counters control the level of sections that are numbered % and the level of sections included in the table of contents: \setcounter{tocdepth}{2} \setcounter{secnumdepth}{2} %% Here is an example of a "Program" environment defined with the %% "float" package. The list of programs will be stored in the file %% ubcsample.lop and the numbering will start with the chapter %% number. The style will be "ruled". \floatstyle{ruled} \newfloat{Program}{htbp}{lop}[chapter] %% Here is the start of the document. \begin{document} %% This starts numbering in Roman numerals as required for the thesis %% style. \frontmatter % Mandatory %% The order of the following components should be preserved. The order %% listed here is the order currently required by FoGS. \maketitle % Mandatory \begin{abstract} % Mandatory - maximum 350 words The \texttt{genthesis.cls} \LaTeX{} class file and accompanying documents, such as this sample thesis, are distributed in the hope that it will be useful but without any warranty (without even the implied warranty of fitness for a particular purpose). For a description of this file's purpose, and instructions on its use, see below. These files are distributed under the GPL which should be included here in the future. Please let the author know of any changes or improvements that should be made. Michael Forbes. mforbes@physics.ubc.ca \end{abstract} \tableofcontents % Mandatory \listoftables % Mandatory if thesis has tables \listoffigures % Mandatory if thesis has figures \listof{Program}{List of Programs} % Optional %% Any other lists should come here, i.e. %% Abbreviation schemes, definitions, lists of formulae, list of %% schemes, glossary, list of symbols etc. %\chapter{Preface} % Optional \chapter{Acknowledgements} % Optional This is the place to thank professional colleagues and people who have given you the most help during the course of your graduate work. \chapter{Dedication} % Optional The dedication is usually quite short, and is a personal rather than an academic recognition. The \emph{Dedication} does not have to be titled, but it must appear in the table of contents. If you want to skip the chapter title but still enter it into the Table of Contents, use this command \verb|\chapter[Dedication]{}|. \chapter{Statement of Co-Authorship} % Manditory if thesis co-written If any part of your thesis was co-written, you must include a Co-Authorship statement which gives details of your contribution to the following areas: \begin{itemize} \item identification and design of research program \item performing the research \item data analyses \item manuscript preparation \end{itemize} Note that this section is the last of the preliminary pages (with lowercase Roman numeral page numbers). It must be placed \emph{before} the \verb|\mainmatter| command. After that, Arabic numbered pages will begin. %% Any other unusual prefactory material should come here before the %% main body. %% Now regular page numbering begins. \mainmatter %% Parts are the largest structural units, but are optional. %%\part{Thesis} %% Chapters are the next main unit. \chapter{This is a Chapter} %% Sections are a sub-unit \section{A Section} Here is a section with some text. Equations look like this $y=x$.\footnote{Here is a footnote.} This is an example of a second paragraph in a section so you can see how much it is indented by. %% Subsections follow \subsection{This is a Subsection} Here is an example of a citation: \cite{Forbes:2006ba}. The actual form of the citation is governed by the bibliographystyle. These citations are maintained in a BIBTeX file \texttt{sample.bib}. You could type these directly into the file. For an example of the format to use look at the file \texttt{ubcsample.bbl} after you compile this file.\footnote{Here is another footnote.} This is an example of a second paragraph in a subsection so you can see how much it is indented by. \subsubsection{This is a Subsubsection} Here are some more citations \cite{LL3:1977,Peccei:1989,Turner:1999}. If you use the \texttt{natbib} package with the \verb+sort&compress+ option, then the following citation will look the same as the first citation in this section: \cite{Turner:1999,Peccei:1989,LL3:1977}. This is an example of a second paragraph in a subsubsection so you can see how much it is indented by. \paragraph{This is a Paragraph} Paragraphs and subparagraphs are the smallest units of text. There is no subsubsubsection etc. \subparagraph{This is a Subparagraph} This is the last level of organisation. If you need more than this, you should consider reorganizing your work\dots \begin{equation} \mathrm{f}(x)=\int_{-\infty}^{\int_{-\infty}^x e^{-\frac{y^2}{2}}\mathrm{d}{y}}e^{-z^2}\mathrm{d}z \end{equation} In order to show you what a separate page would look like (i.e. without a chapter heading) I must type some more text. Thus I will babble a bit and keep babbling for at least one more page\ldots What you should notice is that the chapter titles appear substantially lower than the continuing text. Babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble. Babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble. \begin{table}[t] %optional [t, b or h]; \begin{tabular}{|r||r@{.}l|} \hline Phoenix & \$960&35\\ \hline Calgary & \$250&00\\ \hline \end{tabular} \caption[Here is the caption for this wonderful table\ldots]{ \label{tab:Table1} Here is the caption for this wonderful table. It has not been centered and the positioning has been specified to be at the top of the page. Thus it appears above the babble rather than below where it is defined in the source file.} \end{table} %% Force a new page: without this, the quote would appear on the %% previous page. \newpage \section{Quote} % Here is a quote: \begin{quote} % It is centered \begin{center} This is a small poem,\\ a little poem, a Haiku,\\ to show you how to.\\ ---Michael M$^{\rm c}$Neil Forbes. \end{center} \end{quote} This small poem shows several features: \begin{itemize} \item The use of the \verb|quote| and \verb|center| environments. \item The \verb|\newpage| command has been used to force a page break. (Sections do not usually start on a new page.) \item The pagestyle has been set to suppress the headers using the command \verb|\thispagestyle{plain}|. Note that using \verb|\pagestyle{plain}| would have affected all of the subsequent pages. \end{itemize} \section{Programs} Here we give an example of a new float as defined using the \texttt{float} package. In the preamble we have use the commands \begin{verbatim} \floatstyle{ruled} \newfloat{Program}{htbp}{lop}[chapter] \end{verbatim} This creates a ``Program'' environment that may be use for program fragments. A sample \texttt{python} program is show as Program~\ref{prog:fib}. (Note that Python places a fairly restrictive limit on recursion so trying to call this with a large $n$ before building up the cache is likely to fail unless you increase the recursion depth.) \begin{Program} \caption{\label{prog:fib} Python program that computes the $n^{\rm th}$ Fibonacci number using memoization.} \begin{verbatim} def fib(n,_cache={}): if n < 2: return 1 if n in _cache: return _cache[n] else: result = fib(n-1)+fib(n-2) _cache[n] = result return result \end{verbatim} \end{Program} Instead of using a \texttt{verbatim} environment for your program chunks, you might like to \texttt{include} them within an \texttt{alltt} envrironment by including the \verb|\usepackage{alltt}| package (see page 187 of the \LaTeX{} book). Another useful package is the \verb|\usepackage{listings}| which can pretty-print many different types of source code. %% Force a new page \newpage %% Here we provide a short optional argument to \chapter[]{}. This %% optional argument will appear in the table of contents. For long %% titles, one should use this to give a single-line entry to the %% table of contents. \chapter[Another Chapter\ldots]{Another Chapter with a Very Long Chapter-name that will Probably Cause Problems} This chapter name is very long and does not display properly in the running headers or in the table of contents. To deal with this, we provide a shorter version of the title as the optional argument to the \verb|\chapter[]{}| command. For example, this chapter's title and associated table of contents heading and running header was created with\\ \verb|\chapter[Another Chapter\ldots]{Another Chapter with a Very Long|\\ \verb|Chapter-name that will Probably Cause Problems}|. Note that, according to the thesis regulations, the heading included in the table of contents must be a truncation of the actual heading. \section{Another Section} Another bunch of text to demonstrate what this file does. You might want a list for example:\footnote{Here is a footnote in a different chapter. Footnotes should come after punctuation.} \begin{itemize} \item An item in a list. \item Another item in a list. \end{itemize} \section*{An Unnumbered Section That is Not Included in the Table of Contents} Here is an example of a figure environment. \begin{figure}[ht] \begin{center} %%psfrag: comment the following line if not using the psfrag package \psfrag{pie makes me happy!}{$\pi$ makes me happy!} %%includegraphics: comment the following if not using the graphicx package \includegraphics[width=0.4\textwidth]{fig.eps} \caption[Happy Face: figure example.]{\label{fig:happy} This is a figure of a happy face with a \texttt{psfrag} replacement. The original figure (drawn in xfig and exported to a .eps file) has the text ``pie makes me happy!''. The \texttt{psfrag} package replaces this with ``$\pi$ makes me happy!''. Note that we have used the optional argument for the caption command so that only a short version of this caption occurs in the list of figures.} \end{center} \end{figure} \afterpage{\clearpage} Perhaps I should say that the example of a figure can be seen in Figure~\ref{fig:happy}. Figure placement can be tricky with \LaTeX\ because figures and tables are treated as ``floats'': text can flow around them, but if there is not enough space, they will appear later. To prevent figures from going too far, the \verb|\afterpage{\clearpage}| command can be used. This makes sure that the figure appears on the following page. The \verb|\clearpage| forces a page break so that the figure can be placed, but without the the \verb|\afterpage{}| command, the page would be broken too early (at the \verb|\clearpage| statement). The \verb|\afterpage{}| command tells \LaTeX{} to issue the command after the present page has been rendered. Figures can make a document more enjoyable as demonstrated by Figure~\ref{fig:happy}. \section{Tables} We have already included one table:~\ref{tab:Table1}. Another table is plopped right here. \begin{table}[ht] \begin{center} \begin{tabular}{|l||l|l||l|l|} \hline &\multicolumn{2}{l|}{Singular}&\multicolumn{2}{l|}{Plural}\\ \cline{2-5} &English&\textbf{Gaeilge}&English&\textbf{Gaeilge}\\ \hline\hline 1st Person&at me&\textbf{agam}&at us&\textbf{againn}\\ 2nd Person&at you&\textbf{agat}&at you&\textbf{agaibh}\\ 3rd Person&at him&\textbf{aige}&at them&\textbf{acu}\\ &at her&\textbf{aici}& & \\ \hline \end{tabular} \caption{ \label{tab:Table2} Another table.} \end{center} \end{table} Well, actually, as with Figure~\ref{fig:happy}, the table does not necessarily appear right ``here'' because tables are also ``floats''. \LaTeX{} puts them where it can. Becuase of this, one should refer to floats by their labels rather than by their location. This example is demonstrated by Table~\ref{tab:Table2}. This one is pretty close, however. Another useful package is \verb|\usepackage{longtable}| which provides the \texttt{longtable} environment. This is nice because it allows tables to span multiple pages. Table~\ref{tab:longtable} has been formatted this way. \begin{center} \begin{longtable}{|l|l|l|} \caption{\label{tab:longtable}Feasible triples for highly variable Grid}\\ \hline \multicolumn{1}{|c|}{\textbf{Time (s)}} & \multicolumn{1}{c|}{\textbf{Triple chosen}} & \multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline \endfirsthead \multicolumn{3}{c}% {{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\ \hline \multicolumn{1}{|c|}{\textbf{Time (s)}} & \multicolumn{1}{c|}{\textbf{Triple chosen}} & \multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline \endhead \hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline \endfoot \hline \hline \endlastfoot 0 & (1, 11, 13725) & (1, 12, 10980), (1, 13, 8235), (2, 2, 0), (3, 1, 0) \\ 274 & (1, 12, 10980) & (1, 13, 8235), (2, 2, 0), (2, 3, 0), (3, 1, 0) \\ 5490 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 8235 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 10980 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 13725 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 16470 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 19215 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 21960 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 24705 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 27450 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 30195 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 32940 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 35685 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 38430 & (1, 13, 10980) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 41175 & (1, 12, 13725) & (1, 13, 10980), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 43920 & (1, 13, 10980) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 46665 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 49410 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 52155 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 54900 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 57645 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 60390 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 63135 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 65880 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 68625 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 71370 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 74115 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 76860 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 79605 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 82350 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 85095 & (1, 12, 13725) & (1, 13, 10980), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 87840 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 90585 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 93330 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 96075 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 98820 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 101565 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 104310 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 107055 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 109800 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 112545 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 115290 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 118035 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 120780 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 123525 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 126270 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 129015 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 131760 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 134505 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 137250 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 139995 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 142740 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 145485 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 148230 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\ 150975 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 153720 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 156465 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 159210 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 161955 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ 164700 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\ \end{longtable} \end{center} \subsection*{An Unnumbered Subsection} Note that if you use subsections or further divisions under an unnumbered section, then you should make them unnumbered as well otherwise you will end up with zeros in the section numbering. \chapter{Landscape Mode} The landscape mode allows you to rotate a page through 90 degrees. It is generally not a good idea to make the chapter heading landscape, but it can be useful for long tables etc. \begin{landscape} This text should appear rotated, allowing for formatting of very wide tables etc. Note that this might only work after you convert the \texttt{dvi} file to a postscript (\texttt{ps}) or \texttt{pdf} file using \texttt{dvips} or \texttt{dvipdf} etc. \end{landscape} %% This file is setup to use a bibtex file sample.bib and uses the %% plain style. Other styles may be used depending on the conventions %% of your field of study. %% %% Note: the bibliography must come before the appendices. \bibliographystyle{plain} \bibliography{sample} %% Use this to reset the appendix counter. Note that the FoGS %% requires that the word ``Appendices'' appear in the table of %% contents either before each appendix lable or as a division %% denoting the start of the appendices. We take the latter option %% here. This is ensured by making the \texttt{appendicestoc} option %% a default option to the UBC thesis class. \appendix \chapter{First Appendix} Here you can have your appendices. %% Indices come here. \chapter*{Additional Information} This chapter shows you how to include additional information in your thesis, the removal of which will not affect the submission. Such material should be removed before the thesis is actually submitted. First, the chapter is unnumbered and not included in the Table of Contents. Second, it is the last section of the thesis, so its removal will not alter any of the page numbering etc. for the previous sections. Do not include any floats, however, as these will appear in the initial lists. The \texttt{ubcthesis} \LaTeX{} class has been designed to aid you in producing a thesis that conforms to the requirements of The University of British Columbia Faculty of Graduate Studies (FoGS). Proper use of this class and sample is highly recommended---and should produce a well formatted document that meets the FoGS requirement. Notwithstanding, complex theses may require additional formatting that may conflict with some of the requirements. We therefore \emph{highly recommend} that you consult one of the FoGS staff for assistance and an assessment of potential problems \emph{before} starting final draft. While we have attemped to address most of the thesis formatting requirements in these files, they do not constitute an official set of thesis requirements. The official requirements are available at the following section of the FoGS web site: \begin{center} \begin{tabular}{|l|} \hline \href{http://www.grad.ubc.ca/students/thesis/} {\texttt{http://www.grad.ubc.ca/students/thesis/}}\\ \hline \end{tabular} \end{center} We recommend that you review these instructions carefully. % \end{macrocode} % \subsection{End of Document} % \begin{macrocode} \end{document} % \end{macrocode} % Finally, we close off the file so that nothing else is put % into the sample thesis. % \begin{macrocode} % % \end{macrocode} % % \section{Sample MIT Thesis} % % This is a thesis conforming to the Massachusetts Institute of % Technology guidelines. % % Here is the comment that tells \prog{docstrip} to put the % following code into \file{mitsample.tex}. % % \begin{macrocode} %<*mitsampletex> % \end{macrocode} % % \subsection{Identification} % This section identifies the version of the file. It % also indicates which version of \LaTeX{} (\LaTeXe) is required and % makes sure that an appropriate message is displayed when another \TeX{} % format is used. % \begin{macrocode} %% This Sample thesis requires \LaTeX2e \NeedsTeXFormat{LaTeX2e}[1995/12/01] % \end{macrocode} % % Now we announce the file or class name and its version: % % \iffalse VERSION \fi % \begin{macrocode} \ProvidesFile{mitsample.tex}[2009/11/19 v1.61 ^^J Massachusetts Institute of Technology Sample Thesis] % \end{macrocode} % % \subsection{Document Structure} % This section describes the structure that your \LaTeX{} document must % have. Various sections of the sample code will be presented to % illustrate this structure though the sample file \file{mitsample.tex} % does not contain all of the options and features. % % The first section of a \LaTeX{} document contains information % about the structure of the document. This is called the document % preamble. % % Usually the first command is the |\documentclass| command which % specifies the class to use and the options to the class % % \begin{macrocode} \documentclass[msc,10pt,oneside]{mitthesis} % \end{macrocode} % % \begin{macrocode} %% %% To compile issue the following commands: %% latex mitsample %% bibtex mitsample %% latex mitsample %% latex mitsample %% latex mitsample %% %% To view use xdvi (on unix systems): %% xdvi mitsample.dvi %% %% To make a postscript file, use dvips: %% dvips -o mitsample.ps mitsample.dvi %% %% To view the postscript file, use ghostview or gv (on unix systems): %% gv mitsample.ps %% %%************************************************ %% Optional packages. %% %% The use of these packages is optional: they are standard now and %% should be installed on your system, but if they are not, you might %% have to comment out the appropriate lines to get this file to %% compile. %% %%******** natbib ******************************** %% This is a very nice package for bibliographies. It includes options %% for sorting and compressing bibliographic entries. \usepackage[numbers,sort&compress]{natbib} %%******** graphics and graphicx ****************************** %% This allows you to include encapsulated postscript files. If you %% don't have this, comment the \includegraphics{} line following the %% comment "%includegraphics" later in this file. \usepackage{graphicx} %%******** lscape ****************************** %% This allows you to include landscape layout pages by using the %% |landscape| environment. Note that this output might only be valid %% after converting to a postscript or pdf file. \usepackage{lscape} %%******** psfrag ****************************** %% This allows you to replace text in postscript pictures with formated %% latex text. This allows you to use math in graph labels %% etc. Uncomment the psfrag lines following the "%psfrag" comment %% later in this file if you don't have this package. The replacements %% will only be visible in the final postscript file: they will be %% listed in the .dvi file but not performed. \usepackage{psfrag} %%******** afterpage *************************** %% This package allows you to issue commands at the end of the current %% page. A good use for this is to use the command %% \afterpage{\clearpage} right after a figure. This will cause the %% figure to be inserted on the page following the current one (or on %% the current page if it will fit) but will not break the page in the %% middle. \usepackage{afterpage} %%******** hyperref ***************************** %% This adds hyperlinks to your document: with the right viewers (later %% versions of xdvi, acrobat with pdftex, latex2html etc.) this will %% make your equation, figure, citation references etc. hyperlinks so %% that you can click on them. Also, your table of contents will be %% able to take you to the appropriate sections. In the viewers that %% support this, the links often appear with an underscore. This %% underscore will not appear in printed versions. %% %% Note: if you do not use the hypertex option, then the dvips driver %% may be loaded by default. This will cause the entries in the list %% of figures and list of tables to be on a single line because dvips %% does not deal with hyperlinks on broken lines properly. %% %% Also, the hyperref package should be loaded last as it modified the %% commands in many other pagckages. \usepackage[hypertex]{hyperref} %% If you would like to compile this sample thesis without the %% hyperref package, then you will need to comment out the previous %% \usepackage command and uncomment the following command which will %% put the URL's in a typewriter font but not link them. %%\newcommand\href[2]{\texttt{#2}} %% These commands are optional. The defaults are shown. \institution{The University Of British Columbia} \institutionaddress{Vancouver} \program{Physics} %% You can issue as many of these as you have... \previousdegree{B.Sc., The University of British Columbia, 1999} \previousdegree{M.Sc., The University of British Columbia, 2001} %% You can override the option setting here. %% \degreetitle{Jack of All Trades} %% These commands are required. \title{A Sample Thesis} \subtitle{With a Subtitle} \author{Michael M$^{\rm c}$Neil Forbes} \copyrightyear{2000} \submitdate{June 2004} %% These commands are required by MIT. \advisor{Frank Wilczek} \advisortitle{Herman Feshbach Professor of Physics} \chairman{Thomas Greytak}{Professor and Associate Department Head for Education} % \end{macrocode} % % \subsubsection{Chapter and section counter formats} % For any counter \Lcount{CTR}, |\theCTR| is a macro that defines % the printed version of counter \Lcount{CTR}. It is defined in % terms of the following macros: % % |\arabic{|\Lcount{COUNTER}|}| prints the value of % \Lcount{COUNTER} as an Arabic numeral. % % |\roman{|\Lcount{COUNTER}|}| prints the value of % \Lcount{COUNTER} as a lowercase Roman numeral. % % |\Roman{|\Lcount{COUNTER}|}| prints the value of % \Lcount{COUNTER} as an uppercase Roman numeral. % % |\alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} % as a lowercase letter: $1 =$~a, $2 =$~ b, etc. % % |\Alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} % as an uppercase letter: $1 =$~A, $2 =$~B, etc. % % This section of the sample class redefines these (actually, the % redefinitions match the defaults so this would be pointless in % the actual thesis, but is here for demonstration purposes.) % \begin{macrocode} %% One might want to override the format of the section and chapter %% numbers. This shows you how to do it. Note that \renewcommand\thepart {\Roman{part}} \renewcommand\thechapter {\arabic{chapter}} % \end{macrocode} % The section and lower commands also display the numbers of % higher sections too and a punctuation mark. These show you how % to change these. (Again, the formats actually given here are the % defaults.) % \begin{macrocode} \renewcommand\thesection {\thechapter.\arabic{section}} \renewcommand\thesubsection {\thesection.\arabic{subsection}} \renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}} \renewcommand\theparagraph {\thesubsubsection.\arabic{paragraph}} \renewcommand\thesubparagraph {\theparagraph.\arabic{subparagraph}} % Two related counters control the level of sections that are numbered % and the level of sections included in the table of contents: \setcounter{tocdepth}{2} \setcounter{secnumdepth}{2} %% Here is the start of the document. \begin{document} %% Unlike the UBC thesis, page numbering for MIT theses should start %% at 1 and continue. Thus, there is no \frontmatter command issued %% here as there was for the UBC thesis. \maketitle \authorizationform \begin{abstract} The \texttt{genthesis.cls} \LaTeX{} class file and accompanying documents, such as this sample thesis, are distributed in the hope that it will be useful but without any warranty (without even the implied warranty of fitness for a particular purpose). For a description of this file's purpose, and instructions on its use, see below. These files are distributed under the GPL which should be included here in the future. Please let the author know of any changes or improvements that should be made. Michael Forbes. mforbes@alum.mit.edu \end{abstract} \tableofcontents \listoftables \listoffigures %% Any other lists should come here, i.e. %% Abbreviation schemes, definitions, lists of formulae, list of %% schemes, etc. \chapter{Preface} These papers have been published earlier\ldots. \chapter{Acknowledgements} Thank you mother here. %% Force a new page. \newpage %% Any other unusual sections should come here between the %% acknowledgements and the main body. %% Suppress the running headers for this page only. \thispagestyle{plain} \chapter*{Disclaimer} % Unnumbered The \texttt{mitthesis} \LaTeX{} class and the accompanying sample files are \emph{unofficial} and are not supported by the Massachusetts Institute of Technology. While I have attempted to make the style file and sample files conform to all of the requirements set forth by the library, you should always consult one of the library staff members for assistance with problems \emph{before} starting final draft. You should be able to find the thesis requirements at one of the following sites: \begin{table}[h] \begin{center} \begin{tabular}{|l|} \hline \href{http://libraries.mit.edu/archives/thesis-specs/} {\texttt{http://libraries.mit.edu/archives/thesis-specs/}}\\ \href{http://libraries.mit.edu/archives/index.html} {\texttt{http://libraries.mit.edu/archives/index.html}}\\ \hline \end{tabular} \end{center} \caption{\label{tab:ubcurls} Potential sources of information regarding thesis preparation at \protect\href{http://www.mit.edu/}{MIT}.} \end{table} %% Force a new page. \newpage %% Suppress the running headers for this page only. \thispagestyle{plain} %% Here we provide a short optional argument to \chapter[]{}. This %% optional argument will appear in the table of contents. For long %% titles, one should use this to give a single-line entry to the %% table of contents. \chapter[Poem]{A Japanese Introduction} %% Here is a quote: \begin{quote} % It is centered \begin{center} This is a small poem,\\ a little poem, a Haiku,\\ to show you how to.\\ ---Michael Forbes. \end{center} \end{quote} This small poem shows several features: \begin{itemize} \item The \verb|\newpage| command has been used to force a page break. \item The pagestyle has been set to suppress the headers using the command \verb|\thispagestyle{plain}|. Note that using \verb|\pagestyle{plain}| would have affected all of the subsequent pages. \item The \verb|\chapter[Poem]{A Japanese Introduction}| command has been used with an optional argument to generate a title and to list this ``chapter'' in the table of contents as ``Poem''. If one did not desire to have an entry in the table of contents, then one would just use the starred command \verb|\chapter*{}|. The use of an optional argument is useful for long chapter and section titles that take up too much space in the table of contents. \item All of this has been done \emph{before} the \verb|\mainmatter| command has been issued to delay normal Arabic numbering. Thus, this poem will be numbered with lowercase Roman numerals as part of the front matter. \end{itemize} %% Parts are the largest units \part{Thesis} %% Chapters are the next main unit. \chapter{This is a Chapter} %% Sections are a sub-unit \section{A Section} Here is a section with some text. Equations look like this $y=x$. This is an example of a second paragraph in a section so you can see how much it is indented by. %% Subsections follow \subsection{This is a Subsection} Here is an example of a citation: \cite{Forbes:2006ba}. The actual form of the citation is governed by the bibliographystyle. These citations are maintained in a BIBTeX file \texttt{sample.bib}. You could type these directly into the file. For an example of the format to use look at the file \texttt{mitsample.bbl} after you compile this file. This is an example of a second paragraph in a subsection so you can see how much it is indented by. \subsubsection{This is a Subsubsection} Here are some more citations \cite{LL3:1977,Peccei:1989,Turner:1999}. If you use the \texttt{natbib} package with the \verb+sort&compress+ option, then the following citation will look the same as the first citation in this section: \cite{Turner:1999,Peccei:1989,LL3:1977}. This is an example of a second paragraph in a subsubsection so you can see how much it is indented by. \paragraph{This is a Paragraph} Paragraphs and subparagraphs are the smallest units of text. There is no subsubsubsection etc. \subparagraph{This is a Subparagraph} This is the last level of organisation. If you need more than this, you should consider reorganizing your work\dots \begin{equation} \mathrm{f}(x)=\int_{-\infty}^{\int_{-\infty}^x e^{-\frac{y^2}{2}}\mathrm{d}{y}}e^{-z^2}\mathrm{d}z \end{equation} In order to show you what a separate page would look like (i.e. without a chapter heading) I must type some more text. Thus I will babble a bit and keep babbling for at least one more page\ldots What you should notice is that the chapter titles appear substantially lower than the continuing text. Babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble. Babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble babble. \begin{table}[t] %optional [t, b or h]; \begin{tabular}{|r||r@{.}l|} \hline Phoenix & \$960&35\\ \hline Calgary & \$250&00\\ \hline \end{tabular} \caption{ \label{tab:Table1} Here is the caption for this wonderful table.Text of Caption} \end{table} \chapter[Another Chapter\ldots]{Another Chapter with a Very Long Chapter-name that will Probably Cause Problems} This chapter name is very long and does not display properly in the running headers or in the table of contents. To deal with this, we provide a shorter version of the title as the optional argument to the \verb|\chapter[]{}| command. \section{Another Section} Another bunch of text to demonstrate what this file does. You might want a list for example: \begin{itemize} \item An item in a list. \item Another item in a list. \end{itemize} \section*{An Unnumbered Section That is Not Included in the Table of Contents} Here is an example of a figure environment. \begin{figure}[ht] \begin{center} %%psfrag: comment the following line if not using the psfrag package \psfrag{pie makes me happy!}{$\pi$ makes me happy!} %%includegraphics: comment the following if not using the graphicx package \includegraphics[width=0.4\textwidth]{fig.eps} \caption[Happy Face: figure example.]{\label{fig:happy} This is a figure of a happy face with a \texttt{psfrag} replacement. The original figure (drawn in xfig and exported to a .eps file) has the text ``pie makes me happy!''. The \texttt{psfrag} package replaces this with ``$\pi$ makes me happy!''. Note that we have used the optional argument for the caption command so that only a short version of this caption occurs in the list of figures.} \end{center} \end{figure} \afterpage{\clearpage} Perhaps I should say that the example of a figure can be seen in Figure~\ref{fig:happy}. Figure placement can be tricky with \LaTeX\ because figures and tables are treated as ``floats'': text can flow around them, but if there is not enough space, they will appear later. To prevent figures from going too far, the \verb|\afterpage{\clearpage}| command can be used. This makes sure that the figure appears on the following page. (Without the \verb|\afterpage{}| command, the page would be broken too early. For more detailed control, consider using the \texttt{here} package. Figures can make a document more enjoyable as demonstrated by Figure~\ref{fig:happy}. \subsection*{An Unnumbered Subsection} Note that if you use subsections or further divisions under an unnumbered section, then you should make them unnumbered as well otherwise you will end up with zeros in the section numbering. \chapter{Landscape Mode} The landscape mode allows you to rotate a page through 90 degrees. It is generally not a good idea to make the chapter heading landscape, but it can be useful for long tables etc. \begin{landscape} This text should appear rotated, allowing for formatting of very wide tables etc. Note that this might only work after you convert the \texttt{dvi} file to a postscript (\texttt{ps}) or \texttt{pdf} file using \texttt{dvips} or \texttt{dvipdf} etc. \end{landscape} %% This file is setup to use a bibtex file sample.bib and uses the %% plain style. Note, the bibliography could come after the appendices. \bibliographystyle{plain} \bibliography{sample} %% Use this to reset the appendix counter. \appendix \chapter{First Appendix} Here you can have your appendices. %% Indices come here. % \end{macrocode} % \subsection{End of Document} % \begin{macrocode} \end{document} % \end{macrocode} % Finally, we close off the file so that nothing else is put % into the sample thesis. % \begin{macrocode} % % \end{macrocode} % % \section{Sample Bibliographic Database (BIBTeX)} % % This section presents the code for the bibliographic database for % the sample thesis with comments. It is recommended that you first % obtain the sample thesis files and compile them as described in % Section~\ref{sec:GettingStartedSampleThesis}. This way you can try % the various options to see how they work. % % Here is the comment that tells \prog{docstrip} to put the % following code into \file{sample.bib}. % % \begin{macrocode} %<*samplebib> % \end{macrocode} % % \subsection{Identification} % This section identifies the version of the file. Formally this % should be a comment, but as it appears prior to any entry, bibtex % will treat it as a comment (beware though, the character \@ may % not appear outside of an entry.) % % \iffalse VERSION \fi % \begin{macrocode} \ProvidesFile{sample.bib}[2009/11/19 v1.61 ^^J University of British Columbia Sample Thesis] % \end{macrocode} % % \subsection{Document Structure} % \begin{macrocode} %% These are just some examples of articles and books. Some of the fields %% are not needed, for example the abstract and SLACcitation fields. There %% are many other types of documents. The entry CL:2000 poses a problem %% in the URL field. I am not sure how to get around this right now. @Article{Forbes:2006ba, author = "Forbes, Michael McNeil and Zhitnitsky, Ariel R.", title = "{Dark antimatter as a galactic heater: X-rays from the core of our galaxy}", journal = "JCAP", volume = "0801", year = "2008", pages = "023", eprint = "astro-ph/0611506", SLACcitation = "%%CITATION = ASTRO-PH/0611506;%%", abstract = {Several independent observations of the Galactic core suggest hitherto unexplained sources of energy. We suggest that dark matter in the form of dense antimatter nuggets could provide a natural site for electron and proton annihilation, providing 511 {keV} photons, gamma-rays, and diffuse {keV} X-ray radiation. We show that identifying dark matter as antimatter nuggets is consistent with the observed emissions, and we make definite predictions about their spectrum and morphology. If correct, our proposal not only identifies dark matter and explains baryogenesis, but allows X-ray observations to directly probe the matter distribution in our Galaxy.} } @Book{LL3:1977, author = "L. D. Landau and E. M. Lifshitz", title = "Quantum Mechanics: Non-relativistic theory", publisher = "Pergamon Press", year = "1989, c1977", volume = "3", series = "Course of Theoretical Physics", address = "Oxford; New York", edition = "Third", } @InCollection{Peccei:1989, author = "R. D. Peccei", title = "Special Topics: The Strong {CP} Problem", booktitle = "CP violation", publisher = "World Scientific", year = "1989", editor = "C. Jarlskog", address = "Singapore", month = jan, } @Article{Bulgac:2006gh, author = {Aurel Bulgac and Michael McNeil Forbes and Achim Schwenk}, title = {Induced {P-wave} Superfluidity in Asymmetric Fermi Gases}, journal = "Phys. Rev. Lett.", volume = 97, year = 2006, pages = 020402, eprint = {arXiv:cond-mat/0602274}, SLACcitation = "%%CITATION = COND-MAT 0602274;%%", abstract = {We show that two new intra-species P-wave superfluid phases appear in two-component asymmetric Fermi systems with short-range {S-wave} interactions. In the {BEC} limit, phonons of the molecular {BEC} induce {P-wave} superfluidity in the excess fermions. In the {BCS} limit, density fluctuations induce {P-wave} superfluidity in both the majority and the minority species. These phases may be realized in experiments with spin-polarized Fermi gases.} } @InProceedings{CL:2000, author = "S. A. {Colgate} and H. {Li}", title = "The Magnetic Fields of the Universe and Their Origin", booktitle = "10 pages, 1 figure (figures.png), invited talk at IAU 195 Preprint no. LAUR 00-180.", year = "2000", month = jan, pages = "1418", URL = "{http://adsabs.harvard.edu/cgi-bin/nph-bib_query?bibcode=\ 2000astro.ph..1418C&db_key=PRE}", adsnote = "Provided by the NASA Astrophysics Data System", eprint = "astro-ph/0001418", abstract = "Recent rotation measure observations of a dozen or so galaxy clusters have revealed a surprisingly large amount of magnetic fields, whose estimated energy and flux are, on average, {$\sim 10^{58}$} ergs and {$\sim 10^{41}$ G cm$^2$}, respectively. These quantities are so much larger than any coherent sums of individual galaxies within the cluster that an efficient galactic dynamo is required. We associate these fields with single AGNs within the cluster and therefore with all galaxies during their AGN phase. Only the central, massive black hole (BH) has the necessary binding energy, {$\sim 10^{61}$} ergs. Only the accretion disk during the {BH} formation has the winding number, {$\sim 10^{11}$} turns, necessary to make the gain and magnetic flux. We present a model of the BH accretion disk dynamo that might create these magnetic fields, where the helicity of the {$\alpha - \Omega$} dynamo is driven by star-disk collisions. The back reaction of the saturated dynamo forms a force-free field helix that carries the energy and flux of the dynamo and redistributes them within the clusters.", } @Misc{Turner:1999, author = "M. S. Turner", title = "Dark Matter, Dark Energy and Fundamental Physics", howpublished = "astro-ph/9912211", year = "1999", month = dec, abstract = "More than sixty years ago Zwicky made the case that the great clusters of galaxies are held together by the gravitational force of unseen (dark) matter. Today, the case is stronger and more precise: Dark, nonbaryonic matter accounts for {$30\% \pm 7\%$} of the critical mass density, with baryons (most of which are dark) contributing only {$4.5\% \pm 0.5\%$} of the critical density. The large-scale structure that exists in the Universe indicates that the bulk of the nonbaryonic dark matter must be cold (slowly moving particles). The SuperKamiokande detection of neutrino oscillations shows that particle dark matter exists, crossing an important threshold. Over the past few years a case has developed for a dark-energy problem. This dark component contributes about {$80\% \pm 20\%$} of the critical density and is characterized by very negative pressure {$(p_X < -0.6 \rho_X)$}. Consistent with this picture of dark energy and dark matter are measurements of {CMB} anisotropy that indicate that total contribution of matter and energy is within {$10\%$} of the critical density. Fundamental physics beyond the standard model is implicated in both the dark matter and dark energy puzzles: new fundamental particles (e.g., axion or neutralino) and new forms of relativistic energy (e.g., vacuum energy or a light scalar field). A flood of observations will shed light on the dark side of the Universe over the next two decades; as it does it will advance our understanding of the Universe and the laws of physics that govern it.", } @Book{Vilenkin:1994, author = {Alexander Vilenkin and E. P. S. Shellard}, title = {Cosmic Stringas and Other Topological Defects}, publisher = {Cambridge University Press}, year = 1994, address = {Cambridge} } % % \end{macrocode} % % \part[The \file{genthesis} Document Class: For thesis class maintainers]% % {The \file{genthesis} Document Class} % % Here starts the description of the actual thesis class % definitions. All of the source code is documented here. This is % generally not intended to be of use to people writing theses % unless they need to know the internals of how the thesis class % works. It may be of use to people writing other classes as I % have included many comments about things I learned while writing % the class. We start with some notes about this. % % \section{Notes about Writing Classes} % % My philosophy in writing the thesis classes is described below: % \begin{enumerate} % \item The thesis class should behave as close to the standard % classes as possible so that it is compatible with as many other % packages as possible. To this end, the thesis class has been % crafted directly from the standard \LaTeX\ \file{book} class. % \item If there is a standard way to accomplish a certain task, % then support that rather than reimplementing the method in a % non-standard way. For example, encourage the use packages like % \file{fancyhdr} or \file{geometry} rather than providing a % bunch of thesis specific commands for specifying fancy headers % and for changing the margins. % \item Formatting options should be easily specified in both the % thesis flavours and actual theses. This goal is only partly % realized, but many of the magic numbers that control formatting % in the original book class have been replaced with variables % that can be controlled by various options. % \end{enumerate} % % I based this code on the file \file{ltclass.dtx} and have kept % most of the change notes and comments so that one has a hope of % identifying potential incompatibilities and does not have to % reinvent the wheel. % % It is important to make sure that the interface to standard % \LaTeX\ commands does not change. For example, I wanted to % provide a customized version of |\part|, |\chapter| etc.\ such % that the starred form accepted an optional argument, adding a % line to the table of contents. This turned out to break the % \file{hyperref} package because it redefines |\@chapter| and % assumes that this behaves the same way as in the standard \LaTeX\ % distribution. % % A similar problem with \file{hyperref} compatibility was % encountered when trying to add formatting options for the table % of contents. I thought that it would be easiest to simply modify % the |\contentsline| command to include the formatting, but the % \file{hyperref} package relies on modifying this command to work, % so this type of change was incompatible. Hopefully future % versions of \LaTeX\ will have much less hard-coded so these types % of changes are easier to make. Now, onto the code! % % \changes{v1.0d}{1993/11/30}{remove \cs{@in}, made option makeindex % a synonym for option makeidx} % \changes{v1.0d}{1993/11/30}{removed \cs{@minus}, \cs{@plus}, % \cs{@settopoint}, \cs{@setfontsize}; they are now in the % kernel} % \changes{v1.0d}{1993/11/30}{Added use of \cs{NeedsTeXFormat}} % \changes{v1.0d}{1993/11/30}{Replaced \cs{bf} with \cs{bfseries}; % \cs{rm} with \cs{rmfamily}} % \changes{v1.0d}{1993/11/30}{Made eqaution and eqnarray environments % in the fleqn option up to date with latex.dtx} % \changes{v1.0f}{1993/12/08}{Made all lines shorter than 72 characters} % \changes{v1.0g}{1993/12/08}{Made change in eqnarray for the fleqn % option, as suggested by Rainer.} % \changes{v1.0h}{1993/12/18}{Made the definitions of the font- and % size-changing commands use \cs{renew} rather than \cs{new}. % Defined the float parameters with \cs{renewcommand} rather than % \cs{newcommand}. Corrected some typos in the fleqn option. % Replaced two occurrences of -\cs{@secpenalty} by % \cs{@secpenalty}. ASAJ.} % \changes{v1.0j}{1993/12/20}{Added \cs{ProvidesFile} to size files} % \changes{v1.0j}{1993/12/10}{Use \cs{cmd} in change entries} % \changes{v1.0k}{1994/01/09}{Removed some typos/bugs} % \changes{v1.0l}{1994/01/11}{add the extension to the names of the % files} % \changes{v1.0l}{1994/01/10}{Changed version numbering; moved leqno % and fleqn options to an external file.} % \changes{v1.0n}{1994/01/19}{Removed code for makeidx option and made % it a separate package; removed use of \cs{setlength} from list % parameters.} % \changes{v1.0o}{1994/01/31}{Small documentation changes} % \changes{v1.0q}{1994/02/16}{Small documentation changes} % \changes{v1.1a}{1994/03/12}{Removed \cs{typeout} messages} % \changes{v1.1f}{1994/04/15}{Inserted forgotten line break} % \changes{v1.2a}{1994/03/17}{Added openright option. (LL)} % \changes{v1.2b}{1994/03/17}{Added the \ldots{}matter commands. (LL)} % \changes{v1.2d}{1994/04/11}{Checked the file for long lines and % wrapped them when necessary; made a slight implementation % modification to the openright and openany options.} % \changes{v1.2i}{1994/04/28}{Use LaTeX instead of LaTeX2e in messages} % \changes{v1.2j}{1994/05/01}{Removed the use of \cs{fileversion} % c.s.} % \changes{v1.2l}{1994/05/11}{changed some \cs{changes} entries} % \changes{v1.2m}{1994/05/12}{Forgot a few entries} % \changes{v1.2o}{1994/05/24}{Changed file information} % \changes{v1.2p}{1994/05/27}{Moved identification and driver to the % front of the file} % \changes{v1.2t}{1994/06/22}{Refrased a few sentences to prevent % overfull hboxes} % \changes{v1.2v}{1994/12/01}{Made the oneside option work for the % book class} % \changes{v1.2w}{1994/12/01}{Use \cs{newcommand*} for commands with % arguments} % \changes{v1.2z}{1995/05/16}{Always use \cs{cs} in \cs{changes} % entries} % \changes{v1.3a}{1995/05/17}{Replaced all \cs{hbox to} by \cs{hb@xt@}} % \changes{v1.3d}{1995/06/05}{Replaced all \cs{uppercase} by % \cs{MakeUppercase}} % \changes{v1.3l}{1995/10/20}{Disabled in compatibility mode all % options that are new in \LaTeXe.} % \changes{v1.3v}{1997/06/16}{Documentation fixes.} % \section{Identification} % This section identifies the version of the file. It % also indicates which version of \LaTeX{} (\LaTeXe) is required and % makes sure that an appropriate message is displayed when another \TeX{} % format is used. % % Here is the comment that tells \prog{docstrip} to put the % following code into \file{ubcsample.tex}. % % \begin{macrocode} %<*genthesis> % \end{macrocode} % % And the required version. Note this has not been thoroughly % tested yet. % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1995/12/01] % \end{macrocode} % % Now we announce the file or class name and its version: % % \iffalse VERSION \fi % \begin{macrocode} \ProvidesClass{genthesis}[2009/11/19 v1.61 ^^J University of British Columbia Thesis Class] % \end{macrocode} % % \section{Initial Code} % % In this part we define a few commands that are used later on. We % start by undefining a few that don't make sense: % \begin{macrocode} \global\let\and\@undefined % \end{macrocode} % % % \begin{macro}{\@ptsize} % This control sequence is used to store the second digit of the % pointsize we are typesetting in. So, normally, it's value is one % of 0, 1 or 2. % \begin{macrocode} \newcommand\@ptsize{} % \end{macrocode} % \end{macro} % % \begin{macro}{\if@restonecol} % When the document has to printed in two columns, we sometimes % have to temporarily switch to one column. This switch is used to % remember to switch back. % \begin{macrocode} \newif\if@restonecol % \end{macrocode} % \end{macro} % % \begin{macro}{\@chaptertocdots} % This turns on chapter leaders in the table of contents. % \begin{macrocode} \newif\if@chaptertocdots \@chaptertocdotstrue % \end{macrocode} % \end{macro} % % \subsection{Tools} % Here we define some macros that are useful when writing classes. % % \begin{macro}{\@addto} % This macro allows you to build up a collection of commands to be % inserted at a later point in the document. For example, after % \begin{verbatim} % \newcommand{\@names}{} % \@addto{@names}{John, } % \@addto{@names}{Paul, } % \@addto{@names}{Tom.} % \end{verbatim} % the macro |\@names| would expand to |John, Paul, Tom.| This % functionality could be obtained with a savebox, but there is an % important difference: |\@addto| does not expand the text in the % current environment. Thus, if you were to include code such as % |\textwidth|, then this would ultimately expand to the width of % the text where the |\@names| command was issued rather than the % value where the |\@addto| was issued. This is accomplished by % using the fact that the token registers only expand once. See % Excercise 20.15 in the \TeX book. % % \begin{macrocode} \newcommand{\@addto}[2]{ \expandafter\let\expandafter\old\csname#1\endcsname \toks1=\expandafter{\old} \toks2=\expandafter{#2} \expandafter\xdef\csname#1\endcsname{\the\toks1 \the\toks2 } } % \end{macrocode} % \end{macro} % % \begin{macro}{\SetTime} % \begin{macro}{\hours} % \begin{macro}{\minutes} % \begin{macro}{\now} % These are some macros that set the time for use in the headers in % draft mode. % \begin{macrocode} \newcount\hours \newcount\minutes \def\SetTime{\hours=\time \global\divide\hours by 60 \minutes=\hours \multiply\minutes by 60 \advance\minutes by-\time \global\multiply\minutes by-1 } \def\now{\number\hours:\ifnum\minutes<10 0\fi\number\minutes} % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % % \changes{v1.11}{2002/02/12}{Added \cs{@toctoupper}} % \changes{v1.54}{2008/07/25}{Added \cs{csname} to splice the if and % the argument to \cs{condupper}. Just trying to form a simple % splice fails because a space gets inserted.} % \begin{macro}{\@toupper} % \begin{macro}{\@toctoupper} % \begin{macro}{\@condupper} % Converts the argument to uppercase if the \Lopt{upper} or % \Lopt{tocupper} options are specified. |\@condupper| takes as a % first argument a conditional and based on that conditional, makes % the text uppercase. Note that we have put the |\if| portion of % the conditional inside the macro. This hides it and permits % nesting conditionals. % \begin{macrocode} \newcommand\@toupper[1]{\if@upper\MakeUppercase{#1}\else{#1}\fi} \newcommand\@toctoupper[1]{\if@tocupper\MakeUppercase{#1}\else{#1}\fi} \newcommand{\@condupper}[2]{% \csname if#1\endcsname{\MakeUppercase{#2}}\else{{#2}}\fi} \newcommand{\tst}[1]{\if#1{True}\else{False}\fi} % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % % \changes{v1.32}{2006/02/15}{Added toctoitalic (CD)} % \changes{v1.43}{2006/10/21}{Added paranthesis for \cs{textit} % argument (MMF)} % \begin{macro}{\@toctoitalic} % Converts the argument to italic if the \Lopt{tocitalic} option is specified. % \begin{macrocode} \newcommand\@toctoitalic[1]{\if@tocitalic {\textit{#1}} \else {#1} \fi} % \end{macrocode} % \end{macro} % % \begin{macro}{\@startonecolumn} % \begin{macro}{\@endonecolumn} % \changes{v1.24}{2005/02/10}{This generically stores page parameters % now so that one can redefine textwidths etc. by starting a single % column and then restore the settings at the end.} % These ensure one-column mode and restore for things like the toc, % authorization form, titlepage etc. First we must define some % temporary lengths to save the old lengths. % \begin{macrocode} \newlength{\UBCT@oldtextwidth} \newlength{\UBCT@oldtextheight} \newlength{\UBCT@oldoddsidemargin} \newlength{\UBCT@oldevensidemargin} \newlength{\UBCT@oldtopmargin} \newlength{\UBCT@oldtopskip} \newlength{\UBCT@old@colht} \newlength{\UBCT@old@colroom} \newlength{\UBCT@oldvsize} \newlength{\UBCT@oldcolumnwidth} \newlength{\UBCT@oldhsize} \newlength{\UBCT@oldlinewidth} \newlength{\UBCT@oldparindent} \newlength{\UBCT@oldmarginparsep} \newlength{\UBCT@oldmarginparwidth} % \end{macrocode} % % Now we define the macro body. First we backup the current % parameters. % \begin{macrocode} \providecommand*{\@startonecolumn}{ \global\setlength{\UBCT@oldtextwidth}{\textwidth} \global\setlength{\UBCT@oldtextheight}{\textheight} \global\setlength{\UBCT@oldoddsidemargin}{\oddsidemargin} \global\setlength{\UBCT@oldevensidemargin}{\evensidemargin} \global\setlength{\UBCT@oldtopmargin}{\topmargin} \global\setlength{\UBCT@oldtopskip}{\topskip} \global\setlength{\UBCT@old@colht}{\@colht} \global\setlength{\UBCT@old@colroom}{\@colroom} \global\setlength{\UBCT@oldvsize}{\vsize} \global\setlength{\UBCT@oldcolumnwidth}{\columnwidth} \global\setlength{\UBCT@oldhsize}{\hsize} \global\setlength{\UBCT@oldlinewidth}{\linewidth} \global\setlength{\UBCT@oldparindent}{\parindent} \global\setlength{\UBCT@oldmarginparsep}{\marginparsep} \global\setlength{\UBCT@oldmarginparwidth}{\marginparwidth} \global\let\UBCT@oldbaselinestretch=\baselinestretch \if@twocolumn \@restonecoltrue % \end{macrocode} % First, we calculate the maximum |\textwidth|, which we will allow % on the selected paper and store it in |\@tempdima|. Then we store % the length of a line with approximately 60--70 characters in % |\@tempdimb|. The values given are more or less suitable when % Computer Modern fonts are used. % \begin{macrocode} \setlength\@tempdima{\paperwidth} \addtolength\@tempdima{-2in} \ifcase\@ptsize\relax \setlength\@tempdimb{345\p@} \or \setlength\@tempdimb{360\p@} \or \setlength\@tempdimb{390\p@} \fi % \end{macrocode} % % In one column mode the text should not be wider than the minimum % of the paperwidth (minus 2 inches for the margins) and the % maximum length of a line as defined by the number of characters. % \begin{macrocode} \ifdim\@tempdima>\@tempdimb\relax \global\setlength\textwidth{\@tempdimb} \else \global\setlength\textwidth{\@tempdima} \fi % \end{macrocode} % % Here we modify the width of the text a little to be a whole % number of points. % \begin{macrocode} \global\@settopoint\textwidth \global\setlength\linewidth{\textwidth} % \end{macrocode} % % The horizontal space between the main text and marginal notes is % determined by |\marginparsep|, the minimum vertical separation % between two marginal notes is controlled by |\marginparpush|. % \begin{macrocode} \global\setlength\marginparsep{7\p@} \ifcase\@ptsize\relax \global\setlength\parindent{15\p@} \or \global\setlength\parindent{17\p@} \or \global\setlength\parindent{1.5em} \fi % \end{macrocode} % % For one-sided printing we centre the text on the page, by % calculating the difference between |\textwidth| and % |\paperwidth|. Half of that difference is than used for % the margin (thus |\oddsidemargin| is |1in| less). % \begin{macrocode} \if@twoside \setlength\@tempdima {\paperwidth} \addtolength\@tempdima {-\textwidth} \global\setlength\oddsidemargin {.4\@tempdima} \addtolength\oddsidemargin {-1in} % \end{macrocode} % The width of the margin for text is set to the remainder of the % width except for a `real margin' of white space of width 0.4in. % A check should perhaps be built in to ensure that the (text) % margin width does not get too small! % % \changes{v1.1a}{1994/03/12}{New algorithm for \cs{oddsidemargin}} % \changes{v1.1a}{1994/03/12}{New algorithm for \cs{marginparwidth}} % \changes{v1.2z}{1995/04/14}{Also take \cs{marginparsep} into account % here} % \begin{macrocode} \global\setlength\marginparwidth {.6\@tempdima} \global\addtolength\marginparwidth {-\marginparsep} \global\addtolength\marginparwidth {-0.4in} % \end{macrocode} % For one-sided printing we centre the text on the page, by % calculating the difference between |\textwidth| and % |\paperwidth|. Half of that difference is than used for % the margin (thus |\oddsidemargin| is |1in| less). % \begin{macrocode} \else \setlength\@tempdima {\paperwidth} \addtolength\@tempdima {-\textwidth} \global\setlength\oddsidemargin {.5\@tempdima} \global\addtolength\oddsidemargin {-1in} \global\setlength\marginparwidth {.5\@tempdima} \global\addtolength\marginparwidth {-\marginparsep} \global\addtolength\marginparwidth {-0.4in} \global\addtolength\marginparwidth {-.4in} \fi % \end{macrocode} % With the above algorithm the |\marginparwidth| can come out quite % large which we may not want. % \begin{macrocode} \ifdim \marginparwidth >2in \global\setlength\marginparwidth{2in} \fi % \end{macrocode} % Having done these calculations we make them pt values. % \begin{macrocode} \global\@settopoint\oddsidemargin \global\@settopoint\marginparwidth % \end{macrocode} % % The |\evensidemargin| can now be computed from the values set % above. % \begin{macrocode} \global\setlength\evensidemargin {\paperwidth} \global\addtolength\evensidemargin{-2in} \global\addtolength\evensidemargin{-\textwidth} \global\addtolength\evensidemargin{-\oddsidemargin} % \end{macrocode} % Setting |\evensidemargin| to a full point value may produce a % small error. However it will lie within the error range a % doublesided printer of today's technology can accurately print. % \begin{macrocode} \global\@settopoint\evensidemargin % \end{macrocode} % Now we change the number of columns because this command uses the % lengths to format stuff. % \changes{v1.48}{2007/02/26}{Fixed typo with topmargin.} % \begin{macrocode} \onecolumn \else \@restonecolfalse \fi } \providecommand*{\@endonecolumn}{ \global\setlength{\textwidth}{\UBCT@oldtextwidth} \global\setlength{\textheight}{\UBCT@oldtextheight} \global\setlength{\oddsidemargin}{\UBCT@oldoddsidemargin} \global\setlength{\evensidemargin}{\UBCT@oldevensidemargin} \global\setlength{\topmargin}{\UBCT@oldtopmargin} \global\setlength{\topskip}{\UBCT@oldtopskip} \global\setlength{\@colht}{\UBCT@old@colht} \global\setlength{\@colroom}{\UBCT@old@colroom} \global\setlength{\vsize}{\UBCT@oldvsize} \global\setlength{\columnwidth}{\UBCT@oldcolumnwidth} \global\setlength{\hsize}{\UBCT@oldhsize} \global\setlength{\linewidth}{\UBCT@oldlinewidth} \global\setlength{\parindent}{\UBCT@oldparindent} \global\setlength{\marginparsep}{\UBCT@oldmarginparsep} \global\setlength{\marginparwidth}{\UBCT@oldmarginparwidth} \global\let\baselinestretch=\UBCT@oldbaselinestretch \if@restonecol \twocolumn \fi} % \end{macrocode} % \end{macro} % % \begin{macro}{\if@openright} % A switch to indicate if chapters must start on a right-hand page. % \begin{macrocode} \newif\if@openright % \end{macrocode} % \end{macro} % % \begin{macro}{\if@openrightblank} % A switch to indicate if chapters must start on a right-hand page % and they must be preceded by blank page. % \changes{v1.57}{2009/1/30}{Macro \cs{if@openrightblank} added} % \begin{macrocode} \newif\if@openrightblank % \end{macrocode} % \end{macro} % % \changes{v1.3k}{1995/08/27}{Macro \cs{if@openbib} removed} % % \begin{macro}{\if@mainmatter} % \changes{v1.2v}{1994/12/01}{Moved the allocation of % \cs{if@mainmatter} here} % % The switch |\if@mainmatter|, only available in the document class % book, indicates whether we are processing the main material in % the book. % \begin{macrocode} \newif\if@mainmatter \@mainmattertrue % \end{macrocode} % \end{macro} % % \begin{macro}{\if@empty} % This is checks if a given command is empty or not. % \begin{macrocode} \def\if@empty#1#2\else#3\fi{% \def\UBCT@tempa{}\ifx\UBCT@tempa#1#2\else#3\fi} % \end{macrocode} % \end{macro} % \section{Document Markup Functions} % % These are defined here because some of the commands are used by % the options. % % \subsection{Title Page} % % \begin{macro}{\title} % \begin{macro}{\author} % \begin{macro}{\date} % These three macros are provided by \file{latex.dtx} to provide % information about the title, author(s) and date of the document. % The information is stored away in internal control sequences. % It is the task of the |\maketitle| command to use the % information provided. The definitions of these macros are shown % here for information. % \begin{macrocode} % \newcommand*{\title}[1]{\gdef\@title{#1}} % \newcommand*{\author}[1]{\gdef\@author{#1}} % \newcommand*{\date}[1]{\gdef\@date{#1}} % \end{macrocode} % The |\date| macro gets today's date by default. % \begin{macrocode} % \date{\today} % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % % \changes{v1.56}{2009/01/14}{Provide \cs{monthname} macro.} % \begin{macro}{\monthname} % This macro provides the alphanumeric version of the month. It is % also provided by the \file{datetime} package, but we don't want % to depend on this as it is not widely distributed. Our version % is only defined for English. % \begin{macrocode} \providecommand*{\monthname}[1][\month]{% \newcount\@orgargctr \@orgargctr=#1\relax \ifcase\@orgargctr \PackageError{genthesis}{Invalid Month number \the\@orgargctr} {Month numbers should go from 1 (January) to 12 (December)}% \or January% \or February% \or March% \or April% \or May% \or June% \or July% \or August% \or September% \or October% \or November% \or December% \else \PackageError{genthesis}{Invalid Month number \the\@orgargctr} {Month numbers should go from 1 (January) to 12 (December)}% \fi% } %\monthname % \end{macrocode} %\end{macro} % % \begin{macro}{\subtitle} % This macro also has an associated boolean which tells the % titlepage whether or not it should attempt to display a subtitle. % \begin{macrocode} \newif\if@subtitle \@subtitlefalse \newcommand*{\subtitle}[1]{\@subtitletrue \gdef\@subtitle{#1}} % \end{macrocode} % \end{macro} % % \changes{v1.14}{2002/04/12}{Added \cs{faculty} command.} % \changes{v1.21}{2005/01/03}{Department is now your program. --Darren % Peets} % \begin{macro}{\institution} % \begin{macro}{\institutionaddress} % \begin{macro}{\degreetitle} % \begin{macro}{\degreedate} % \begin{macro}{\department} % \begin{macro}{\program} % \begin{macro}{\faculty} % \begin{macro}{\advisor} % \begin{macro}{\advisortitle} % \begin{macro}{\copyrighttext} % \begin{macro}{\copyrightnotice} % These commands are added for theses. They are used on the title % page. % \begin{macrocode} \newcommand*{\institution}[1]{\gdef\@institution{#1}} \providecommand*{\@institution}{% \ClassWarning{genthesis}{No \noexpand\institution given}} \newcommand*{\institutionaddress}[1]{\gdef\@institutionaddress{#1}} \providecommand*{\@institutionaddress}{% \ClassWarning{genthesis}{No \noexpand\institutionaddress given}} \newcommand*{\degreetitle}[1]{\gdef\@degreetitle{#1}} \providecommand*{\@degreetitle}{% \ClassWarning{genthesis}{No \noexpand\degreetitle given}} \newcommand*{\degreedate}[1]{\gdef\@degreedate{#1}} \providecommand*{\@degreedate}{% \ClassWarning{genthesis}{No \noexpand\degreedate given}} \newcommand*{\department}[1]{\gdef\@department{#1}} \providecommand*{\@department}{% \ClassWarning{genthesis}{No \noexpand\department given}} \newcommand*{\program}[1]{\gdef\@program{#1}} \providecommand*{\@program}{% \ClassWarning{genthesis}{No \noexpand\program given}} \newcommand*{\faculty}[1]{\gdef\@faculty{#1}} \providecommand*{\@faculty}{% \ClassWarning{genthesis}{No \noexpand\faculty given}} \newcommand*{\advisor}[1]{\gdef\@advisor{#1}} \providecommand*{\@advisor}{% \ClassWarning{genthesis}{No \noexpand\advisor given}} \newcommand*{\advisortitle}[1]{\gdef\@advisortitle{#1}} \providecommand*{\@advisortitle}{% \ClassWarning{genthesis}{No \noexpand\advisortitle given}} \newcommand*{\copyrighttext}[1]{\gdef\@copyrighttext{#1}} \providecommand*{\@copyrighttext}{% \ClassWarning{genthesis}{No \noexpand\copyrighttext given}} \newcommand*{\copyrightnotice}[1]{\gdef\@copyrightnotice{#1}} \providecommand*{\@copyrightnotice}{% \ClassWarning{genthesis}{No \noexpand\copyrightnotice given}} % \end{macrocode} % Some of these get default values here: % \begin{macrocode} \institution{The University of British Columbia} \institutionaddress{Vancouver} \department{Department of Physics and Astronomy} \program{in Physics} \faculty{The Faculty of Graduate Studies} \copyrighttext{\copyright\ \@author\ \@copyrightyear} \copyrightnotice{All rights reserved. This work may not be\\ reproduced in whole or in part, by photocopy\\ or other means, without permission of the author.} % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % % \begin{macro}{\numberofsignatures} % This is the number of signature lines to put on the cover. % \begin{macrocode} \newcommand*{\numberofsignatures}[1]{\gdef\@numberofsignatures{#1}} \numberofsignatures{4} % \end{macrocode} % \end{macro} % % \changes{v1.9}{2002/01/17}{Added \cs{number} before \cs{year} macro.} % \begin{macro}{\@copyrightyear} % \begin{macro}{\@submitdate} % These are dates. By default, these are set to the date of % compilation. % \begin{macrocode} \newcommand*{\copyrightyear}[1]{\gdef\@copyrightyear{#1}} \newcommand*{\submitdate}[1]{\gdef\@submitdate{#1}} \copyrightyear{\number\year} \submitdate{\today} % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % % \begin{macro}{\signature} % The |\signature| command adds a signature line to the titlepage. % It takes 3 arguments:\\ % |\signature[]{