summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ucalgmthesis/sample-thesis.tex
blob: b173f2cd7a23fc1a9d1bdd4a6cd5a6cc235312b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
% A Sample Thesis for the University of Calgary
% =============================================

% This is a sample LaTeX document to build a University of Calgary
% graduate thesis according to the guidelines of the Faculty of
% Graduate Studies, available here:
% https://grad.ucalgary.ca/current-students/thesis-based-students/thesis/building-thesis

% To use this sample for your own thesis, rename this file, make any
% changes necessary, then add the content of your thesis to the
% included files frontmatter.tex, chapter1.tex, etc.

% First, we load the UCalgary Memoir Thesis class ucalgmthesis,
% available at https://github.com/rzach/ucalgmthesis

% This class in turn loads the memoir class for book design. All its
% commands and options are available to you. See
% https://ctan.org/pkg/memoir

% By default (without options), the class produces a 1-1/2 spaced
% thesis in 11 point font without running heads. See the README file
% for a description of all package options.

% In our sample we give three options: Option "utopia" sets the thesis
% in a nice font: Utopia in this case. Other font options are "times",
% "garamond", "palatino", and "libertine". Try them out to see what
% you like best.  If you do not provide a font option, the thesis is
% set in LaTeX's standard Computer Modern font. 

% Option "headers" produces running heads. 

% Option "manuscript" formats the page in a way suitable for reading
% and commenting: 12 pt type, double spaced, approx. 25 lines per
% page, with approx. 72 characters per line. For filing in the Vault,
% remove that option to produce a more compact thesis with a slightly
% better layout.

\documentclass[utopia,headers,manuscript]{ucalgmthesis}

% We'll need some colored links, so we load xcolor and hyperref. But
% you can take that out if you don't want links at all.

\usepackage[dvipsnames]{xcolor}

% microtype makes everything look better

\usepackage{microtype}

% The hyperref package produces hyperlinks in your document.

\usepackage{hyperref}

% You can turn off the boxes around links made by hyperref. Then links
% will appear in a different color, and per guidelines, all links must
% be blue or black. For blue links say

\hypersetup{colorlinks,allcolors=MidnightBlue} 

% For black (hidden) links, replace the above with:

%\hypersetup{hidelinks}

% Note that per UCalgary's thesis guidelines, links must be blue or
% black.

% If you prefer hyperref's boxes around links (which don't print), you
% can also change their color. With boxes around links, you probably
% don't want everything in the table of contents to be a link, so we
% only make the page numbers links. This is done by using the
% following command instead:

% \hypersetup{allbordercolors=Periwinkle,linktocpage}

% The table of contents in your PDF reader's sidebar is just titles by
% default, but it's nice to also have chapter and section numbers for
% easy navigation.

\usepackage[numbered]{bookmark}

% Using LaTeX? Then you're probably using math, and so you want to use
% the AMS math commands and define some theorem environments! But you
% can take these out or use your own favorite theorem package.

\usepackage{amsmath,amsthm}

\newtheorem{thm}{Theorem}[chapter] % let's number things by chapter
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition} % please number all of them together!

% For author-year references, you probably want to use natbib with a
% bibliography style appropriate for your discipline; or check out
% biblatex!

\usepackage[round]{natbib}
\bibliographystyle{plainnat}

% The blindtext package produces the ``lorem ipsum''
% texts in this sample and can safely be removed.

\usepackage{blindtext}

% Now we put in the information for the thesis title page.

% Full Name

\author{Jane Mary Doe}

% Full Title

\title{An Important Contribution to the Literature}

% Official name of the degree

\degree{Doctor of Philosophy}

% The full name of the graduate program (not the department!). For
% interdisciplinary degrees, the home graduate program is listed
% first, followed by the word "and," then the other graduate program
% is listed

\prog{Graduate Program in Philosophy}

% The month (for the final version: when you file, not when you defended)

\monthname{May}

% The year

\thesisyear{2023}

% Tell hyperref to put author and title into the PDF metadata

\hypersetup{pdfinfo={Title={\thetitle},Author={\theauthor}}}

% If you want memoir to produce endnotes, turn them on here

\makepagenote

% Often you only want to output a single chapter so you can send it to
% your supervisor. Use includeonly and make sure everything you don't
% always want compiled to PDF is include'd from a separate file. For
% instance, to produce a PDF only of chapter 1, endnotes and
% bibliography, say

% \includeonly{chapter1,backmatter}

% To compile only the title page, which you need when submitting your
% thesis, say

% \includeonly{titlepage}

% and then copy the resulting PDF to a separate file.

% Memoir by default numbers document divisions from sections up. If
% you want subsections numbered as well, uncomment the following line:

% \maxsecnumdepth{subsection}

\begin{document}

\frontmatter

% titlepage.tex just makes the titlepage; it's in its own file so you
% can typeset it alone using includeonly.

\include{titlepage}

% frontmatter.tex contains the abstract, preface, acknowledgments, and
% the commands to produce the table of contents, list of tables, etc.

\include{frontmatter}

% The main matter of the thesis contains the actual content, separated
% into chapters.

\mainmatter

\include{chapter1}

\include{chapter2}

% The back matter includes commands to produce endnotes, index,
% glossary, bibliography, and the like.

\backmatter

\include{backmatter}

% The appendix contains material that would clutter up the main text,
% such as program code, survey instruments, or interview transcripts.
% Remove it if you don't have an appendix.

\appendix

\include{appendix}

\end{document}