Debian Codegraph @

texmf-dist/doc/latex/ucalgmthesis/README.md

raw
1 ucalgmthesis
2 ============
3
4 `ucalgmthesis.cls` is a LaTeX class file that produces documents
5 according to the thesis guidelines of the [University of Calgary
6 Faculty of Graduate
7 Studies](https://grad.ucalgary.ca/current-students/thesis-based-students/thesis/building-thesis). It
8 uses the [`memoir`](https://ctan.org/pkg/memoir?lang=en) class, which
9 provides very powerful and flexible mechanisms for book design and
10 layout. All `memoir` commands for changing chapter and section
11 headings, page layout, fancy foot- and endnotes, typesetting poems,
12 etc., can be used. (Memoir is meant as a replacement for the standard
13 LaTeX classes, so all standard LaTeX commands such as `\chapter`,
14 `\section`, etc., still work.) Likewise, any of `memoir`'s class
15 options can be passed as options to `ucalgmthesis`, in particular
16 `12pt` to select 12 point type (11 point is the default).
17
18 License
19 -------
20
21 The files in this directory are provided under the terms of the MIT
22 License. `natbib-oup.bst` is provided under the terms of the LaTeX
23 Project Public License.
24
25 Usage
26 -----
27
28 Consult the file `sample-thesis.tex` for an example thesis setup
29 with parts `\include`'d from separate files. Here's a minimal file:
30 ```
31 \documentclass{ucalgmthesis}
32
33 \author{...}
34 \title{...}
35 \prog{...}
36 \degree{...}
37 \thesisyear{...}
38 \monthname{...}
39
40 \begin{document}
41
42 \frontmatter
43
44 \makethesistitle
45
46 \chapter{Abstract}
47
48 ...
49
50 \tableofcontents
51
52 \mainmatter
53
54 ...
55
56 \backmatter
57
58 ....
59 \end{document}
60 ```
61
62 The easiest way to get started is perhaps to rename
63 `sample-thesis.tex`, change the metadata and layout options to your
64 liking, and put the content of your thesis into the files it includes
65 (`frontmatter.tex`, `chapter1.tex`, etc.)
66
67 `ucalgmthesis` is part of TeXLive and MikTeX. If you have one of these
68 installed (or you are working on Overleaf), you do not need the class file
69 `ucalgmthesis.cls` itself in your thesis directory. You can just copy
70 the TeX and Bib file from the source directory in your TeXLive tree,
71 from [CTAN](https://ctan.org/tex-archive/macros/latex/contrib/ucalgmthesis),
72 or from the [GitHub
73 repository](https://github.com/rzach/ucalgmthesis) to get started.
74
75 Commands
76 --------
77
78 The class provides a number of commands to facilitate the production
79 of the thesis.
80
81 - `\makethesistitle` to produce the title page
82
83 - `\degree`, `\prog`, `\monthname`, `\thesisyear` are used to provide
84 the names of the degree and graduate program, and the month and year
85 of the thesis. (These are compatible with the legacy `ucalgthes1` class.)
86
87 - `\dedication` produces a dedication centered on its own page
88
89 - `\fullpagethesis` sets up the type block to have 1" margins on all
90 sides. `\manuscriptthesis` sets up the typeblock to have a line
91 length of about 72 characters and 25 lines per page. The package
92 options `fullpage` and `manuscript` use these at the appropriate
93 time, but you can use them after you set up your own fonts in the
94 preamble.
95
96 Otherwise, all the class does is change `memoir`'s defaults to comply
97 with FGS thesis guidelines. Specifically:
98
99 - All page numbers appear in the same place (centered in footer).
100 - All pages except title page are numbered.
101 - Front matter is numbered in roman numerals, main matter in arabic.
102 - Abstract, preface, acknowledgments, dedication are included in table
103 of contents.
104 - The table of contents is called "Table of Contents".
105
106 Class options
107 -------------
108
109 The class takes a number of options:
110
111 - `singlespaced`, `onehalfspaced`, `doublespaced` sets up the line
112 spacing (`onehalfspaced` is the default).
113
114 - `palatino`, `times`, `garamond`, `utopia`, `libertine` offer some
115 nice alternative typefaces (i.e., fonts) to the default Computer
116 Modern. Note that `garamond` uses the
117 [`garamondx`](https://ctan.org/tex-archive/fonts/garamondx?lang=en)
118 package, which is not included in the TeXLive distibution (and is
119 not available on Overleaf).
120
121 - `headers` produces running heads. Per the guidelines, the running
122 heads must not be the thesis title or author's name, and must be
123 separated from the main text by a line. The class uses the chapter
124 number and title and places it flush right in the header.
125
126 - `fullpage` calls `\fullpagethesis`, so produces a thesis with 1"
127 margins all around. This produces very long lines and is not
128 recommended for review or submission, but if you have to pay by the
129 page for printing you may want to use it.
130
131 - `manuscript` sets the type size to 12 points, double spaces the
132 text, and calls `\manuscriptthesis` to set the textblock to be about
133 72 characters wide and 25 lines high. That makes a page longer than
134 a standard manuscript page (60 characters by 25 lines, or about 250
135 words), but produces reasonably readable lines and plenty of space
136 between lines and in the margins for remarks, corrections, and
137 annotations. Recommended for the version you submit for
138 examination. You might remove the option for the final version
139 submitted to the Vault.
140
141 A sample thesis file is also provided. The various parts of the thesis
142 are included from subsidiary files to enable generating PDFs of the
143 title page and individual chapters separately.
144
145 Switching from `ucalgthes1`
146 ---------------------------
147
148 If you are already using the `ucalgthes1` class, you don't have to do
149 much to switch to `ucalgmthesis`:
150
151 - Change `ucalgthes1` to `ucalgmthesis` in the `\documentclass` command.
152
153 - The thesis template provided with `ucalgthes1` then uses the
154 `geometry` package to set the margins to 1" on all sides. This
155 produces atrocious results and you should remove that line. If you
156 really want the same narrow margins, use the `fullpage` class
157 option, i.e.,
158 `\documentclass[12pt,doublespaced,fullpage]{ucalgmthesis}`. A
159 better option for reading and reviewing the thesis is the
160 `manuscript` class option (see above).
161
162 - The template also loads the `mathptmx` package to set the typeface
163 to Times New Roman. Times is a good typeface for newspapers, but not
164 for dissertations or books. Pick a different one! But if you do want
165 Times, use the `times` class option instead and delete this
166 line. (The class option loads the newer
167 [`newtx`](https://ctan.org/pkg/newtx?lang=en) packages.)
168
169 - Delete all the lines from the template that say `\pagenumbering`,
170 `\newpage`, `\clearpage`, `\phantomsection`, `\setcounter`,
171 `\begin{singlespace}`, `\end{singlespace}`.
172
173 - Abstract and Acknowledgments just start with `\chapter{Abstract}`
174 and `\chapter{Acknowledgments}`.
175
176 - Insert `\frontmatter` at the very beginning, `\mainmatter` before
177 your first real chapter, and `\endmatter` after the last real
178 chapter and before the bibliography, etc.
179
180 Note that the `ucalgmthesis` class sets much wider margins even with
181 the `manuscript` option than the `ucalgthes1` template. Lines are
182 shorter than the excessively long lines resulting from just setting
183 left and right margins to 1 inch. This will change the number of pages
184 in the PDF and may result in some displayed formulas and tables not
185 fitting into the type block anymore. So be sure to check the result
186 for such problems.
187
188 Troubleshooting and Known Issues
189 --------------------------------
190
191 - The font options may interact badly with other packages you
192 load. Try compiling without the font option to see if that's the
193 problem.
194
195 - The font options all load the `newtxmath` or `newpxmath` packages.
196 These have to be loaded after `amsthm`, so the class loads `amsthm`
197 before it sets up these fonts. If you don't want that, leave out the
198 font option, load the font in your main document preamble, then call
199 `\manuscriptthesis` or `\fullpagethesis` to set the right page
200 dimensions based on the new font.
201
202 - `garamond` uses the `garamondx` package. This package has a
203 restrictive license and is thus not included in the TeXLive
204 distribution. Use the
205 [`getnonfreefonts`](https://www.tug.org/fonts/getnonfreefonts/)
206 installer to download it.
207
208 - The guidelines require that the official filed thesis is laid out
209 for one-sided printing (equal left and right margins). You may want
210 to print the thesis two-sided, however, e.g., to give a nice bound
211 copy to your supervisor or your mom. You can produce a version for
212 two-sided printing using the `twoside` class option of `memoir`. The
213 page layout will be altered to have spine and edge margins in the
214 golden ratio, and alternating on rectos and versos. This will
215 produce a nicer-looking page spread. However, both
216 `\makethesistitle` and `\mainmatter` clear to a recto (odd) page
217 even with the `openany` option, and so `twoside` will produce
218 additional blank pages in the front matter. The main text, however,
219 should have the same pagination as the "official" one-sided version,
220 as the size of the typeblock is the same.