Debian Codegraph @

texmf-dist/doc/latex/ucalgmthesis/sample-thesis.tex

raw
1 % A Sample Thesis for the University of Calgary
2 % =============================================
3
4 % This is a sample LaTeX document to build a University of Calgary
5 % graduate thesis according to the guidelines of the Faculty of
6 % Graduate Studies, available here:
7 % https://grad.ucalgary.ca/current-students/thesis-based-students/thesis/building-thesis
8
9 % To use this sample for your own thesis, rename this file, make any
10 % changes necessary, then add the content of your thesis to the
11 % included files frontmatter.tex, chapter1.tex, etc.
12
13 % First, we load the UCalgary Memoir Thesis class ucalgmthesis,
14 % available at https://github.com/rzach/ucalgmthesis
15
16 % This class in turn loads the memoir class for book design. All its
17 % commands and options are available to you. See
18 % https://ctan.org/pkg/memoir
19
20 % By default (without options), the class produces a 1-1/2 spaced
21 % thesis in 11 point font without running heads. See the README file
22 % for a description of all package options.
23
24 % In our sample we give three options: Option "utopia" sets the thesis
25 % in a nice font: Utopia in this case. Other font options are "times",
26 % "garamond", "palatino", and "libertine". Try them out to see what
27 % you like best. If you do not provide a font option, the thesis is
28 % set in LaTeX's standard Computer Modern font.
29
30 % Option "headers" produces running heads.
31
32 % Option "manuscript" formats the page in a way suitable for reading
33 % and commenting: 12 pt type, double spaced, approx. 25 lines per
34 % page, with approx. 72 characters per line. For filing in the Vault,
35 % remove that option to produce a more compact thesis with a slightly
36 % better layout.
37
38 \documentclass[utopia,headers,manuscript]{ucalgmthesis}
39
40 % We'll need some colored links, so we load xcolor and hyperref. But
41 % you can take that out if you don't want links at all.
42
43 \usepackage[dvipsnames]{xcolor}
44
45 % microtype makes everything look better
46
47 \usepackage{microtype}
48
49 % The hyperref package produces hyperlinks in your document.
50
51 \usepackage{hyperref}
52
53 % You can turn off the boxes around links made by hyperref. Then links
54 % will appear in a different color, and per guidelines, all links must
55 % be blue or black. For blue links say
56
57 \hypersetup{colorlinks,allcolors=MidnightBlue}
58
59 % For black (hidden) links, replace the above with:
60
61 %\hypersetup{hidelinks}
62
63 % Note that per UCalgary's thesis guidelines, links must be blue or
64 % black.
65
66 % If you prefer hyperref's boxes around links (which don't print), you
67 % can also change their color. With boxes around links, you probably
68 % don't want everything in the table of contents to be a link, so we
69 % only make the page numbers links. This is done by using the
70 % following command instead:
71
72 % \hypersetup{allbordercolors=Periwinkle,linktocpage}
73
74 % The table of contents in your PDF reader's sidebar is just titles by
75 % default, but it's nice to also have chapter and section numbers for
76 % easy navigation.
77
78 \usepackage[numbered]{bookmark}
79
80 % Using LaTeX? Then you're probably using math, and so you want to use
81 % the AMS math commands and define some theorem environments! But you
82 % can take these out or use your own favorite theorem package.
83
84 \usepackage{amsmath,amsthm}
85
86 \newtheorem{thm}{Theorem}[chapter] % let's number things by chapter
87 \theoremstyle{definition}
88 \newtheorem{defn}[thm]{Definition} % please number all of them together!
89
90 % For author-year references, you probably want to use natbib with a
91 % bibliography style appropriate for your discipline; or check out
92 % biblatex!
93
94 \usepackage[round]{natbib}
95 \bibliographystyle{plainnat}
96
97 % The blindtext package produces the ``lorem ipsum''
98 % texts in this sample and can safely be removed.
99
100 \usepackage{blindtext}
101
102 % Now we put in the information for the thesis title page.
103
104 % Full Name
105
106 \author{Jane Mary Doe}
107
108 % Full Title
109
110 \title{An Important Contribution to the Literature}
111
112 % Official name of the degree
113
114 \degree{Doctor of Philosophy}
115
116 % The full name of the graduate program (not the department!). For
117 % interdisciplinary degrees, the home graduate program is listed
118 % first, followed by the word "and," then the other graduate program
119 % is listed
120
121 \prog{Graduate Program in Philosophy}
122
123 % The month (for the final version: when you file, not when you defended)
124
125 \monthname{May}
126
127 % The year
128
129 \thesisyear{2023}
130
131 % Tell hyperref to put author and title into the PDF metadata
132
133 \hypersetup{pdfinfo={Title={\thetitle},Author={\theauthor}}}
134
135 % If you want memoir to produce endnotes, turn them on here
136
137 \makepagenote
138
139 % Often you only want to output a single chapter so you can send it to
140 % your supervisor. Use includeonly and make sure everything you don't
141 % always want compiled to PDF is include'd from a separate file. For
142 % instance, to produce a PDF only of chapter 1, endnotes and
143 % bibliography, say
144
145 % \includeonly{chapter1,backmatter}
146
147 % To compile only the title page, which you need when submitting your
148 % thesis, say
149
150 % \includeonly{titlepage}
151
152 % and then copy the resulting PDF to a separate file.
153
154 % Memoir by default numbers document divisions from sections up. If
155 % you want subsections numbered as well, uncomment the following line:
156
157 % \maxsecnumdepth{subsection}
158
159 \begin{document}
160
161 \frontmatter
162
163 % titlepage.tex just makes the titlepage; it's in its own file so you
164 % can typeset it alone using includeonly.
165
166 \include{titlepage}
167
168 % frontmatter.tex contains the abstract, preface, acknowledgments, and
169 % the commands to produce the table of contents, list of tables, etc.
170
171 \include{frontmatter}
172
173 % The main matter of the thesis contains the actual content, separated
174 % into chapters.
175
176 \mainmatter
177
178 \include{chapter1}
179
180 \include{chapter2}
181
182 % The back matter includes commands to produce endnotes, index,
183 % glossary, bibliography, and the like.
184
185 \backmatter
186
187 \include{backmatter}
188
189 % The appendix contains material that would clutter up the main text,
190 % such as program code, survey instruments, or interview transcripts.
191 % Remove it if you don't have an appendix.
192
193 \appendix
194
195 \include{appendix}
196
197 \end{document}