Debian Codegraph @

texmf-dist/doc/latex/mitthesis/mitthesis-doc/mitthesis-doc.tex

raw
1 % !TEX TS-program = lualatex
2 % !TEX encoding = UTF-8 Unicode
3
4 % Version date: 2026/01/31
5
6 \DocumentMetadata
7 {
8 lang = en-US,
9 pdfstandard = { ua-2, a-4f },
10 tagging = on
11 }
12
13 %%%%%%%%%%%%%%%
14
15 \documentclass[11pt]{article}
16
17 \usepackage[letterpaper,margin=1in,footskip=0.5in]{geometry}
18 \usepackage[x11names,svgnames,dvipsnames,table]{xcolor}
19 \usepackage{luacolor} % load AFTER xcolor
20 \usepackage{mathtools}
21
22 \usepackage[en-US]{datetime2} %% change default date format
23 \makeatletter
24 \newcommand{\daymonthyeardate}{%
25 \DTMenglishordinal{\@dtm@day}\space\DTMenglishmonthname{\@dtm@month} \@dtm@year
26 }
27 \makeatother
28
29 \usepackage{booktabs}
30 \usepackage{multicol} % for the two-column nomenclature example
31
32 \usepackage{etoolbox} % tag abstractname as strong for html conversion
33 \patchcmd{\abstract}
34 {\bfseries \abstractname}%
35 {\bfseries
36 \leavevmode
37 \tagstructbegin { tag=Strong }%
38 \tagmcbegin { tag=Strong }%
39 \abstractname
40 \tagmcend
41 \tagstructend
42 }{}{}
43
44 \tagpdfsetup
45 {
46 css-list-add = { mitthesis-style.css } % attach CSS file
47 }
48
49 \newcommand*\pdfTeX{pdf\TeX}
50 \newcommand*\LuaLaTeX{Lua\LaTeX}
51
52
53 %%%%%%%%% Set up text and math fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
54
55 \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
56 % unicode math loads the fontspec package
57
58 \setmainfont{texgyreheros}[
59 WordSpace = {1,1.4,1},
60 Extension = .otf,
61 UprightFont = *-regular,
62 ItalicFont = *-italic,
63 BoldFont = *-bold,
64 BoldItalicFont = *-bolditalic,
65 Numbers = Lining,
66 Scale=0.91,% same as for newtx
67 ]
68 \setsansfont{texgyreheros}[
69 WordSpace = {1,1.4,1},
70 Extension = .otf,
71 UprightFont = *-regular,
72 ItalicFont = *-italic,
73 BoldFont = *-bold,
74 BoldItalicFont = *-bolditalic,
75 Numbers = Lining,
76 Scale=0.91,% same as for newtx
77 ]
78 \setmonofont{Inconsolatazi4}[
79 Scale=1.05,%
80 Extension = .otf,
81 UprightFont = *-Regular,
82 ItalicFont = *-Regular,% has no italic face
83 BoldFont = *-Bold,
84 BoldItalicFont = *-Bold,% has no bold italic face
85 RawFeature = {+ss01,+ss02,+ss03},
86 ]
87 \setmathfont{STIXTwoMath-Regular}[
88 Scale=MatchUppercase,
89 Extension = .otf,
90 % Color=NavyBlue,
91 RawFeature = {+ss01, -ss02, -ss08},
92 ]% ss01 -- switch calligraphic to script; +ss02 -- variants of g, u, v, w, z; +ss08 -- upright integrals
93
94 \setmathfontface\mathbf{STIXTwoText-Bold.otf}% to not get text font's sans bold ... could change other text-math faces, if desired
95
96
97 %%%%%%%%%%% Hyperref related %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
98
99 \usepackage[psdextra]{hyperref}
100
101 \hypersetup{
102 pdfborder={0 0 0},
103 bookmarksnumbered=true,
104 bookmarksopen=true,
105 bookmarksopenlevel=2,
106 colorlinks=true,
107 linkcolor=blue,
108 citecolor=blue,
109 urlcolor=violet,
110 filecolor=red,
111 anchorcolor=yellow,% not all pdf viewers recognize this field (Firefox does)
112 % colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
113 pdfpagelayout=SinglePage,
114 pdfdisplaydoctitle=true,
115 pdfstartview=Fit,
116 pdfmetalang={en},
117 pdftitle={Documentation for the MIT thesis template},
118 pdfkeywords={John Lienhard, Massachusetts Institute of Technology, MIT, thesis, dissertation, template, latex},
119 pdfnewwindow=true,
120 pdfauthor={John H. Lienhard},
121 pdfauthortitle={Professor of Mechanical Engineering},
122 pdfcaptionwriter={{John H. Lienhard, V}},
123 pdfurl={https://lienhard.mit.edu},
124 pdfcontactemail={[email protected]},
125 pdfcontactaddress={77 Massachusetts Avenue, Room 3-166},
126 pdfcontactcity={Cambridge, MA},
127 pdfcontactpostcode={02139},
128 pdfcontactcountry={USA},
129 pdfcontacturl={https://lienhard.mit.edu},
130 pdfcopyright={Copyright © \the\year\ by John H. Lienhard. Reuse under the MIT license},
131 pdfsubject={Documentation for the MIT thesis class and template},
132 pdflicenseurl={https://ctan.org/license/mit},
133 }
134
135 % Directly add the xmp property that shows work is copyrighted. See l3pdfmeta.pdf.
136 % This is not automatic with \DocumentMetadata. "True" must be capitalized.
137 \ExplSyntaxOn
138 \cs_if_exist:NTF \pdfmeta_xmp_add:n {\pdfmeta_xmp_add:n{<xmpRights:Marked>True</xmpRights:Marked>}}{}
139 \ExplSyntaxOff
140
141 \urlstyle{same}% this changes font for \url to the current text font, but it is not recognized by \href.
142
143
144 %%%%%%%%%% A nomenclature environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
145
146 \providecommand{\nomname}{Nomenclature}
147 \newlength\nomenwidth
148 \newlength\savitemsep
149
150 \makeatletter
151 % nomenclature entries
152 \NewDocumentCommand\entry{m m}{%
153 \item[#1\hfill]#2%
154 \@itempenalty=-\@lowpenalty
155 }
156 % nomenclature subheadings
157 \NewDocumentCommand\EntryHeading{m}{%
158 \itemsep3\p@ plus 1\p@ minus 1\p@
159 \goodbreak\item[\emph{#1}\hfill]\mbox{}% mbox added for tagged pdf 2023/10/11; 2025/09/23 replace \itshape by \emph for css
160 \setlength{\itemsep}{\savitemsep}\@itempenalty=10000 % increased to 10000, 2025/04/20
161 }
162 \makeatother
163 %
164 % Increase first optional argument to > 2em if wide entries cause undesired misalignment of columns.
165 % Second optional argument can be used to rename the environment, e.g., to List of Symbols.
166 % Third optional argument selects section-level or chapter-level style for the nomenclature list.
167 % Fourth option argument selects the style of the toc entry (by default, same as #3); the values
168 % frontmatter or backmatter can be used when nomenclature is located with front or back matter. 2025/01/17
169 \NewDocumentEnvironment{nomenclature}{O{2em} O{\nomname} O{section} O{#3}}{%
170 \setlength\columnsep{2em}%
171 \setlength{\nomenwidth}{#1}%
172 \MakeLinkTarget*{nomenclature}\csname #3\endcsname *{#2}\addcontentsline{toc}{#4}{#2}%
173 \raggedright
174 \begin{list}{}{%
175 \setlength{\itemsep}{0pt}%
176 \setlength{\parsep}{\itemsep}%
177 \setlength{\labelsep}{1em}%
178 \setlength{\labelwidth}{\nomenwidth}%
179 \setlength{\leftmargin}{\labelwidth}%
180 \addtolength{\leftmargin}{\labelsep}%
181 \setlength{\savitemsep}{\itemsep}%
182 }%
183 }{\end{list}\ignorespacesafterend}
184
185 % The *-version, nomenclature*, sets the nomenclature in a two-column format.
186 % The user must load the multicol package!
187 % The loading is done *inside* the environment and *before* the list starts so that:
188 % i) the nomenclature heading is not in two-column; ii) the list margins are correct.
189 %
190 \NewDocumentEnvironment{nomenclature*}{ O{2em} O{\nomname} O{section} O{#3} }{%
191 \setlength\columnsep{2em}%
192 \setlength{\nomenwidth}{#1}%
193 \MakeLinkTarget*{nomenclature}\csname #3\endcsname *{#2}\addcontentsline{toc}{#4}{#2}%
194 \vspace{-\multicolsep}% don't to add to the vertical space already provided by the heading
195 \begin{multicols}{2}%
196 \raggedright
197 \begin{list}{}{%
198 \setlength{\itemsep}{0pt}%
199 \setlength{\parsep}{\itemsep}%
200 \setlength{\labelsep}{1em}%
201 \setlength{\labelwidth}{\nomenwidth}%
202 \setlength{\leftmargin}{\labelwidth}%
203 \addtolength{\leftmargin}{\labelsep}%
204 \setlength{\savitemsep}{\itemsep}%
205 }%
206 }{\end{list}\end{multicols}\ignorespacesafterend}
207
208
209 %%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
210 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
211
212 \renewcommand\abstractname{SUMMARY}
213
214 \begin{document}
215
216 \begingroup
217 \centering
218 \ExplSyntaxOn
219 \tag_struct_begin:n { tag=Title, title=Title }
220 \leavevmode
221 \tag_struct_begin:n { tag=Strong }
222 \tag_mc_begin:n { tag=Strong }
223 \LARGE The~MIT~thesis~template
224 \\[1em]
225 \tag_mc_end:
226 \tag_struct_end:
227 \tag_struct_end:
228 \ExplSyntaxOff
229 \large
230 John H. Lienhard \\ Department of Mechanical Engineering \\ Massachusetts Institute of Technology
231 \\[1em]
232 \daymonthyeardate\\[1em]
233 \endgroup
234
235 \phantomsection\pdfbookmark[1]{\abstractname}{summary}
236 \begin{abstract}
237 This \LaTeX{} class formats theses according to the requirements of the MIT Libraries. The template is suitable for MIT theses of all types and at all levels. The title and abstract pages are automatically laid out from information provided by the user. The template includes options to use a variety of typefaces, and it is compatible with either pdfTeX or unicode engines such as LuaLaTeX. When using LaTeX formats dated November 2022 or later, with \LuaLaTeX, the resulting pdf file meets the PDF/A archivability standard. A standard \href{https://www.tug.org/texlive/}{\TeX{} Live} installation includes all other packages required by the template. This document provides instructions for installation and use of the template.
238 \end{abstract}
239
240 \tableofcontents
241
242 \section{BACKGROUND}
243
244 The original MIT Thesis template was written \LaTeX{} 2.09 by Stephen Gildea in the late 1980s (in CTAN, \href{https://mirrors.ctan.org/obsolete/macros/latex209/contrib/mitthesis/mitthesis.sty}{here}). That template was edited by many later students.
245
246 LaTeX has changed greatly since the original MIT thesis template was written. \LaTeX{} 2.09 was replaced by \LaTeXe\ in 1994. New engines were developed, particularly pdfTeX during the 1990s and Unicode-aware engines in the decades that followed. Many packages and fonts were developed to accompany the original platform, particularly after 2000; and major updates to the LaTeX kernel began in 2018. Over the years, the MIT Libraries changed the required format several times, especially as electronic thesis submission became the norm. The original template served MIT well; but by the early 2020s, it was substantially out of date. That situation motivated the creation of a new template.
247
248 This new MIT thesis template was developed in 2023 at the request of the MIT Libraries. The title and abstract pages strictly follow the current \href{https://libraries.mit.edu/distinctive-collections/thesis-specs/}{requirements of the Libraries}. The underlying code is entirely new, with extensive use of \texttt{expl3} syntax.
249
250 \section{SYSTEM REQUIREMENTS AND INSTALLATION}
251 The new \texttt{mitthesis} class uses the features of \LaTeX{} as of 2022, with limited backward compatibility. An up-to-date \LaTeX{} system is therefore necessary when using this template.
252
253 \LaTeX{} is a free, open source system. The entire system is distributed through the \TeX{} Live platform (\url{https://www.tug.org/texlive/}), including the basic format, packages, and user interfaces. The system operates on Windows, MacOS, and Unix/Linux. \TeX{} Live is formally updated each year in the spring, and the associated utility package allows users to download the most current codes more frequently if they desire. (At the time of this writing, the commercial platform Overleaf.com provides a similar functionality.)
254
255 If you are missing a package or documentation, you may obtain it at no cost from CTAN (\href{http://ctan.org}{ctan.org}).
256
257 \subsection{Downloading the template}
258 The files needed for preparing your thesis are in the CTAN repository: \url{https://ctan.org/pkg/mitthesis}. Copy the subdirectory \texttt{MIT-thesis-template} onto your system. That directory contains files you can modify into your own thesis.
259
260 If the most current version of \texttt{mitthesis.cls} is installed in your system (e.g., if you use an up-to-date version of \TeX{} Live), you are all set. If not, copy the file \texttt{mitthesis.cls} into your working directory. If you plan to use fonts other than the default fonts, ensure that the subdirectory \texttt{fontsets} is present in your working directory.
261
262 \subsection{File structure}
263 The new MIT thesis template consists of: \texttt{mitthesis.cls}; a root file \texttt{MIT-Thesis.tex}; a file to load the abstract, \texttt{abstract.tex}; a file for design options, \texttt{mydesign.tex}; and an optional file to change the fonts (see the subdirectory, \texttt{fontset}). You should change the name of the root file to something more descriptive of your own work (e.g., \texttt{JohnsThesis.tex}, \texttt{MagnumOpusScientiae.tex},\ldots). In addition, files must be loaded for acknowledgments, an optional biosketch, chapters, optional appendices, and bibliography.
264
265 \subsection{\LaTeX{} engine}
266 The template works with either \pdfTeX{} or the unicode engine \LuaLaTeX. With the latter, unicode fonts can be used in your thesis. \LuaLaTeX{} also enables the direct use of Lua code in your \texttt{.tex} file. With Lua code, you can automate plotting, table generation, and other numerical computations. \LuaLaTeX{} will become the primary \LaTeX{} engine over time, and it is necessary for producing tagged PDF documents with \texttt{mitthesis.cls}.
267
268 \subsection{PDF/A compliance and PDF accessibility}
269 PDF/A-2b compliance is automatic if \verb|\DocumentMetadata{pdfstandard = a-2b, pdfversion=1.7}| is issued before the \verb|\documentclass{..}| command.
270
271 Recent \LaTeX{} formats (e.g., November 2025) have implemented \emph{accessible} PDF/A. Depending upon the packages loaded, the MIT Thesis template run with the \LuaLaTeX{} engine can produce ``well-tagged pdf'': PDF/UA-2 or PDF/A-4F. In this case, use:
272 \begin{quote}
273 \verb|\DocumentMetadata{ pdfstandard = { ua-2 , a-4f }, tagging = on }|
274 \end{quote}
275 (\LaTeX{} now provides PDF version 2.0 by default.)
276 PDF/A compliance can depend on your fonts and figures, e.g., PDF figures must also be compliant. Not all \LaTeX{} packages have been upgraded for compliance. In particular, the \texttt{listings} package, used in \texttt{appendixa.tex}, is not compatible as of Oct.\ 2025; and it can cause a compilation error if tagging is on.
277
278 Accessible PDF files can be rendered accurately as HTML files. See, for example, \hrefurl{https://ngpdf.com}{ngpdf.com}. As of v1.21, a CSS style sheet can be embedded in the MIT Thesis pdf to control web styling. See \texttt{mitthesis-style.css}.
279
280 PDF/A compliance can be tested at \hrefurl{https://demo.verapdf.org}{demo.verapdf.org}. Most of the files in the \hrefurl{https://ctan.org/tex-archive/macros/latex/contrib/mitthesis/examples}{examples} directory are PDF/UA-2 compliant (the ones that aren't were generated with \pdfTeX{} owing to font limitations).
281
282 \section{SETTING UP TITLE PAGE, ABSTRACT, AND BIBLIOGRAPHY}
283 Various fields and commands must be changed to your own information in the preamble of \texttt{MIT-Thesis.tex} and immediately after the \verb|\begin{document}| command. This information includes the title, author, degree and other essential information. With the comments in \texttt{MIT-Thesis.tex}, this step should be self-explanatory. Nevertheless, some explanation follows.
284
285
286 \begin{enumerate}
287 \item In the \verb|\hypersetup{..}| command, change the sample file to match your own information (e.g., keywords, subject, etc.). These commands generate metadata that are incorporated into the pdf file.
288
289 \item \verb|\title{the title of your thesis}|
290
291 \item \verb|\Author{author full name}{author department}[1st PREVIOUS degree][2nd...| \linebreak
292 Note that third, fourth, fifth, and sixth arguments are optional [..] and may be omitted. Use once for each author.
293
294 \item \verb|\Degree{name of degree}{department giving degree}|. Use once for each degree fulfilled by the thesis.
295
296 If two departments jointly issue a single degree, leave the degree name blank for the \emph{second} degree:
297 \verb|\Degree{}{2nd department name}|.
298 If the thesis satisfies two degrees from one department, leave the department argument blank for
299 the \emph{second} degree: \verb|\Degree{2nd degree name}{}|.
300
301 If you wish to cause a line break in a very long degree name, you can insert \verb|\\| at an appropriate point.
302 Department names should not break across lines. For example:
303 \begin{quote}
304 \verb|\Degree{Doctor of Philosophy \\ in \\ Electrical Engineering and Computer|\linebreak
305 \hbox{}\qquad\verb|Science}{Department of Electrical Engineering and Computer Science}|
306 \end{quote}
307
308 \item \verb|\Supervisor{supervisor name}{supervisor title}[supervisor department]|. Use once for each supervisor. The optional supervisor department is required when generating the thesis committee page. See \S\ref{sec:6.3} if your supervisor has more than one title or sits in more than one department.
309
310 \item \verb|\Acceptor{acceptor name}{acceptor title}{thesis related position}|. Professor who accepts theses for your department (e.g., the Graduate Officer). Use once for each department.
311
312 \item \verb|\DegreeDate{Month}{year}|. Date degree is awarded (February, May, June, or September).
313
314 \item \verb|\ThesisDate{date}|. Date that your final thesis is submitted to the department.
315
316 \item \verb|\Reader{acceptor name}{reader title}{reader department}|. For thesis committee members other than the supervisor. Using this once will cause the generation of a thesis committee page between the title and abstract pages. See \S\ref{sec:6.3} if a reader has more than one title or sits in more than one department.
317
318 \end{enumerate}
319
320 \subsection{Copyright license}
321 By default, the thesis template reserves all rights to the author, with a carve-out for MIT. If you wish to make your thesis available under a Creative Commons License, issue the following command between
322 \verb|\begin{document}| and \verb|\maketitle|: \verb|\CClicense{license type}{license url}|. For example,
323
324 \vskip 5pt
325 \noindent\quad\verb|\CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/}|.
326
327 \vskip 5pt
328 \noindent MIT thesis copyright options and policies and Creative Commons licenses are discussed on these links:
329 \indent\url{https://libraries.mit.edu/distinctive-collections/thesis-specs/#owner}\newline
330 \indent\url{https://creativecommons.org/share-your-work/cclicenses/}
331
332 \subsection{Bibliography}
333 You may generate your bibliography using either \texttt{biblatex/biber} or \texttt{natbib/bibtex}. The template is set up for \texttt{biblatex} by default, rather than the older, less flexible \texttt{natbib}. The \texttt{biblatex} package is very powerful, and you can customize most aspects the reference list and citations to suit your needs. See the documentation for details: \hrefurl{https://ctan.org/pkg/biblatex}{ctan.org/pkg/biblatex}.
334
335 The style of citations and references can be set in your \texttt{.tex} file. For numerical citations of references (e.g., [1]), you can do
336 \vskip 5pt
337 \verb|\usepackage[style=ext-numeric-comp,giveninits=true,sorting=none,| \\
338 \hspace*{1.5cm} \verb|language=american]{biblatex}|
339 \vskip 5pt
340 \noindent For IEEE style citations and references, you might do
341 \vskip 5pt
342 \verb| \usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}|
343 \vskip 5pt
344 \noindent For author/year style (Smith, 2024), you might do
345 \vskip 5pt
346 \verb| \usepackage[style=authoryear, maxbibnames=10]{biblatex} |
347 \vskip 5pt
348 \noindent In the author/year style, \verb|\cite{..}| commands do not automatically produce parentheses. Instead, you can do
349 \verb|\parencite{..}| to get ``(Author, year).''
350
351 \section{CLASS OPTIONS}
352 Class options may be specified for \verb|\documentclass[..]{mitthesis}|. These options are described in Table~\ref{tab:1} and the subsections that follow.
353
354 \tagpdfsetup{table/header-rows={1}}
355 \begin{table}
356 \caption{Options to the document class\label{tab:1}}
357 \smallskip\setlength\extrarowheight{3pt}%
358 \centering{%
359 \small
360 \begin{tabular}{>{\ttfamily\raggedright}l<{} >{\raggedright\arraybackslash}p{42em} }
361 \toprule
362 \textrm{Class option} & Effect \\
363 \midrule
364 fontset & is a keyvalue, \texttt{fontset = <\emph{name}>}, which selects the set of fonts used for the thesis. See description below. \\
365 lineno & loads the \texttt{\hrefurl{https://ctan.org/pkg/lineno}{lineno}} package, which provides line numbers, as for editing. The \hrefurl{https://ctan.org/pkg/lineno}{lineno} package provides additional commands to control line numbering. \\
366 mydesign & loads the file \texttt{mydesign.tex}, which in turn loads code or packages that change the style of titles, headings, captions, margins, lists, and so on. You may edit \texttt{mydesign.tex} as you prefer or use the option as a key value to load a different file, \texttt{[mydesign=some-file]}\\
367 twoside & gives facing-page behavior for two-sided printing; omitting it will eliminate the even-numbered blank pages.\\[\jot]
368 \bottomrule
369 \end{tabular}}%
370 \end{table}
371
372 \subsection{Font loading}
373 By default, \texttt{mitthesis.cls} will load the traditional \LaTeX{} typeface, Computer Modern (for \pdfTeX) or Latin Modern (for unicode engines). By using the key value \texttt{fontset=$\cdots$} in the \verb|\documentclass| command, you can select a different set of fonts.
374
375 Eleven font sets are predefined, including the default set (see Table~\ref{tab:2}). Three work only with \pdfTeX, four work only with unicode engines, and four work with either. These options include a mixture of serif or sans serif text and math fonts, as shown in the table. To access the predefined font sets, you \emph{must} have the directory \texttt{fontsets} as a subdirectory of your working directory, including its files as named. The relevant fonts must also be on your computer; but all (except Lucida) are included in TeX Live and will be present in a complete \LaTeX{} installation.
376
377 Among the predefined font sets, Termes and NewTX are serifed typefaces similar to the digital typeface Times New Roman. STIX Two is more similar to the original metal-type Times typeface. Libertinus (a fork of Linux Libertine) is a serif typeface inspired by 19th century book type. Lucida is a serifed typeface designed for high legibility at small size or on low resolution devices. Lucida is excellent for mathematics and includes a complete bold-face math font, but it is not free. Heros and NewTX-sans are sans-serif text typefaces similar to Helvetica. NewTXsf is a sans-serif math font which draws upon glyphs from the STIX fonts. Fira is a humanist sans-serif text typeface designed in conjunction with the Firefox operating system. Finally, Computer Modern (and its extension Latin Modern)---the traditional \LaTeX{} typeface---is a Didone typeface, with high contrast between thick and thin elements. The \texttt{lmodern} fontset replaces Computer Modern by Latin Modern when running \pdfTeX.
378 % STIX Two, Termes, and LMR do not include a separate bold math font.
379
380 You may also place your own font-set file, say \texttt{Myfontset.tex}, in your working directory, and load it with:
381 \verb|\documentclass[fontset=Myfontset]{mitthesis}|.
382
383 \begin{table}[t]
384 \caption{Predefined font sets\label{tab:2}}
385 \vspace{0.5em}
386 \centering{%
387 \small
388 \tagpdfsetup{table/header-rows={1}}
389 \begin{tabular}{>{\ttfamily}l<{}l l p{3em} p{3em} >{\raggedright\arraybackslash}p{22em} }
390 \toprule
391 fontset & \pdfTeX & unicode & text font & math font & details \\
392 \midrule
393 fira-newtxsf & yes & no & sans & sans & included in \TeX{} Live \\
394 newtx & yes & no & serif & serif & included in \TeX{} Live \\
395 newtx-sans-text & yes & no & sans & serif & included in \TeX{} Live \\[1em]
396 default & yes & yes & serif & serif & CM \& LM fonts are included in \TeX{} Live \\
397 libertinus & yes & yes & serif & serif & included in \TeX{} Live \\
398 %in \TeX{} Live for \pdfTeX. For unicode, OpenType text fonts freely available here
399 %\linebreak \url{https://github.com/alerque/libertinus/releases} \\
400 lmodern & yes & yes & serif & serif & included in \TeX{} Live \\
401 lucida & yes & yes & serif & serif & the Lucida fonts are available from the \TeX{} User's Group,
402 \url{https://tug.org/store/lucida} \\[2em]
403 heros-stix2 & no & yes & sans & serif & included in \TeX{} Live \\
404 %\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre} \linebreak\url{https://github.com/stipub/stixfonts} \linebreak fonts are free \\
405 stix2 & no & yes & serif & serif & included in \TeX{} Live \\
406 %\url{https://github.com/stipub/stixfonts}, fonts are free\\
407 termes & no & yes & serif & serif & included in \TeX{} Live \\
408 %\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre} fonts are free\\
409 termes-stix2 & no & yes & serif & serif & included in \TeX{} Live \\
410 %\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre} \linebreak\url{https://github.com/stipub/stixfonts}\linebreak fonts are free\\
411 \midrule
412 \multicolumn{5}{l}{Typewriter (monospaced) fonts are also loaded for unicode} & Inconsolata (sans serif): included in \TeX{} Live
413 %\url{https://ctan.org/tex-archive/fonts/inconsolata}
414 Cursor (serif): included in \TeX{} Live \\
415 %\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre} \\
416 \bottomrule
417 \end{tabular}}%
418 \end{table}
419
420 \subsection{Design options}
421
422 The thesis will follow the default styles of the \LaTeX{} report class for sections headings, captions, and lists. If you prefer different styles you can use the class option [mydesign] which loads the file \texttt{mydesign.tex}. The \texttt{mitthesis} class will insert the content of \texttt{mydesign.tex} at the appropriate point (prior to loading \hrefurl{https://ctan.org/pkg/babel}{babel}, fonts, or \texttt{\hrefurl{https://ctan.org/pkg/hyperref}{hyperref}}). You should not need to edit the class file.
423
424 With \texttt{mydesign.tex}, you can set options for a package that manages color, such as \texttt{\hrefurl{https://ctan.org/pkg/xcolor}{xcolor}}. You can change the margins with \verb|\newgeometry{..}| from the \texttt{\hrefurl{https://ctan.org/pkg/geometry}{geometry}} package, say, to create a binding margin for two-sided printing. You can insert any other code to change the design, for instance, you can renew the definition of \verb+\section+ to change fonts, font color, or font features (using commands from the \texttt{fontspec} package with \LuaLaTeX). You can also load other packages.
425
426 As distributed, \texttt{mydesign.tex} will set caption labels in bold face type. For example, ``Figure 1.1:'' is made bold.
427 If your \LaTeX{} format is dated 2025/11/01 or later, the code uses \LaTeX's socket and plug mechanism to change the label.
428 If your format is older, the \texttt{\hrefurl{https://ctan.org/pkg/caption}{caption}} package is loaded to change the label.\footnote{As of version 1.22, \texttt{mitthesis.cls} includes its own implementation of \texttt{\textbackslash subfigure} and \texttt{\textbackslash subcaption}, without loading the \texttt{\hrefurl{https://ctan.org/pkg/subcaption}{subcaption}} package.} \LaTeX's hook mechanism can change the style of the caption \textit{text} for recent formats and the \texttt{caption} package can do so for older formats (see \texttt{mydesign.tex}).
429
430 The class option \texttt{[mydesign]} can also be used as a key value, in the form \texttt{[mydesign=some-file]}, where \texttt{some-file.tex} will be loaded if it is in your working directory. Two examples of design files are in the \texttt{examples} directory. One, \verb+mydesign_redsans_headings+, puts chapter headings, section headings, and caption labels in dark red, sans-serif type. This option pairs well with fontsets like \texttt{newtx} and \texttt{heros-stix2}. The second, \verb+mydesign_libertinus_headings+, uses stylistic alternate characters and ligatures in chapter titles and section headings, and it puts caption labels in bold type. This style only runs with the \texttt{libertinus} fontset; by editing this file, you can limit the use of alternates to chapter titles to provide a more restrained design. These are simply examples, not official MIT styles.
431
432 Hyperlink colors and pdf bookmark or viewing options from the \texttt{hyperref} package can be changed by using \verb|\hypersetup{ .. }| in the preamble or using \verb|\AtBeginDocument{ \hypersetup{ .. } }| in the \texttt{mydesign.tex} file.
433
434 \subsection{Single-sided vs.\ double-sided layout}
435 The sample template uses the option \texttt{[twosided]}, which starts major sections (abstract, table of contents, chapters, etc.) on odd-numbered pages. This arrangement is suitable for two-sided printing, but can lead to empty even-numbered pages. If you do not wish to have this behavior, omit that option. By default, even and odd page margins are the same; this can be changed in \texttt{mydesign.tex} if necessary.
436
437 \subsection{Additional commands}
438 The class also provides \verb|\DegreeYear|, \verb|\DegreeMonth|, and \verb|\CopyrightAuthor|. The latter combines all author names into a single token list, e.g., ``Joseph O. Hirschfelder, Charles F. Curtiss and R. Byron Bird''; a period at the end of the final name (e.g., as in ``John F. Nash Jr.'') is removed.
439
440 \subsection{Nomenclature}
441 An optional nomenclature environment is provided by the class. This environment can support either chapter-by-chapter nomenclature (at the section level) or a single nomenclature for the entire thesis (at the chapter level). The environment has four optional arguments: [1] adjust space between symbol and definition (default is 2 em); [2] title of the nomenclature list (default is ``Nomenclature''); [3] level, which can be ``chapter'' or ``section'' depending on whether you
442 have one nomenclature list for whole thesis or one for each chapter (the default is section); and [4] the style of the entry in the table of contents, which can be given as ``frontmatter'' or ``backmatter'' if you are using a single nomenclature for the whole thesis (default is to match [3]).
443
444 A single-column nomenclature list is produced by \verb|\begin{nomenclature}|. A two-column nomenclature list is produced by \verb|\begin{nomenclature*}|, provided that \verb|\usepackage{multicol}| is added to your preamble.
445
446 For example, with \verb+\usepackage{multicol}+ in the preamble, the following code
447 {\small
448 \begin{center}
449 \begin{minipage}{0.85\textwidth}
450 \begin{verbatim}
451 \begin{nomenclature*}[2em][Nomenclature for Chapter 1][section]
452 \EntryHeading{Roman letters}
453 \entry{$\symcal{C}$}{material curve}
454 \entry{$\symbfup{r}$}{material position [m]}
455 \entry{$\symbfup{u}$}{velocity $[\textsf{m}$ $\cramped{\textsf{s}^{-1}}]$}
456 \EntryHeading{Greek letters}
457 \entry{$\Gamma$}{circulation $[\cramped{\textsf{m}^2}$ $\cramped{\textsf{s}^{-1}}]$}
458 \entry{$\rho$}{mass density $[\textsf{kg}$ $\cramped{\textsf{m}^{-3}}]$}
459 \entry{$\symbfup{\omega}$}{vorticity $[\cramped{\textsf{s}^{-1}}]$}
460 \end{nomenclature*}
461 \end{verbatim}
462 \end{minipage}
463 \end{center}
464 }
465 produces the two-column nomenclature list below:\footnote{The command \texttt{\textbackslash cramped} is from the \texttt{mathtools} package; it sets the superscript slightly lower. The command \texttt{\textbackslash symbfup} is from the \texttt{unicode-math} package, which is automatically loaded when running LuaLaTeX; in pdfTeX, use \texttt{\textbackslash bm\{\textbackslash omega\}} instead.}
466
467 \begin{nomenclature*}[2em][Nomenclature for Chapter 1][section]
468 \EntryHeading{Roman letters}
469 \entry{$\symcal{C}$}{material curve}
470 \entry{$\symbfup{r}$}{material position [m]}
471 \entry{$\symbfup{u}$}{velocity $[\textsf{m}$ $\cramped{\textsf{s}^{-1}}]$}
472 \EntryHeading{Greek letters}
473 \entry{$\Gamma$}{circulation $[\cramped{\textsf{m}^2}$ $\cramped{\textsf{s}^{-1}}]$}
474 \entry{$\rho$}{mass density $[\textsf{kg}$ $\cramped{\textsf{m}^{-3}}]$}
475 \entry{$\symbfup{\omega}$}{vorticity $[\cramped{\textsf{s}^{-1}}]$}
476 \end{nomenclature*}
477
478
479 \section{PACKAGES FOR MATH, CHEMISTRY, CODE, TABLES, AND MORE}
480 The \texttt{mitthesis} class loads the \texttt{amsmath} package and its extension \texttt{mathttools}. These packages provide many useful macros for typesetting equations and symbols, such as: environments for aligning and splitting equations or groups of equations; tools for matrices; a wide variety of operators and symbols; tools to define new math operators and paired delimiters; and much, much more. If you are including equations, look at the documentation for these packages: \url{https://ctan.org/pkg/amsmath} and \url{https://ctan.org/pkg/mathtools}.\looseness=1
481
482 Specialized packages for many disciplines can be found in \hrefurl{https://ctan.org}{CTAN}. These include subjects like \hrefurl{https://ctan.org/topic/chemistry}{chemistry}, \hrefurl{https://ctan.org/topic/linguistic}{linguistics}, and \hrefurl{https://ctan.org/topic/physics}{physics}. As examples of such packages, the sample thesis template uses the package \hrefurl{https://ctan.org/pkg/mhchem}{mhchem} to set chemical equations and the package \hrefurl{https://ctan.org/pkg/listings}{listings} to list computer code.
483
484 Several packages focus on table and tabular environments. The \hrefurl{https://ctan.org/pkg/booktabs}{\texttt{booktabs}} package, used in the sample thesis template, produces better quality horizontal lines (called \emph{rules}) for separating material in tables. The \hrefurl{https://ctan.org/pkg/array}{array} package (also used) provides additional options for column formats in tabular environments, the \hrefurl{https://ctan.org/pkg/dcolumn}{dcolumn} package (also used) aligns columns of numbers on the decimal separator, and the \hrefurl{https://ctan.org/pkg/longtable}{longtable} package (also used) formats multipage tables with automatic page breaking.
485
486 When selecting a package, check that it is currently maintained (with relatively recent updates), and compare it to other packages that perform similar functions. Some packages are better than others, and some obsolete packages remain online.
487
488 The packages called by \texttt{mitthesis} are listed in Table~\ref{tab:3} on page~\pageref{tab:3}.
489
490 \begin{table}
491 \caption{External packages used. For documentation, visit CTAN, \url{https://ctan.org}. Alternatively, if you have \hrefurl{https://www.tug.org/texlive/}{\TeX{} Live} installed, you can open a terminal window and type \texttt{\%\ texdoc package-name}.\label{tab:3}}\vspace{1em}
492 \centering{\small%
493 \setlength\extrarowheight{3pt}
494 \tagpdfsetup{table/header-rows={1}}
495 \begin{tabular*}{\textwidth}{>{\ttfamily}l<{}@{\extracolsep{\fill}}p{18em} p{22em} }
496 \toprule
497 Package & Purpose in class file & How it can be used\\
498 \midrule
499 bm & defines commands to access bold math symbols (loaded for default fonts) & with \pdfTeX, the command \verb|\bm{..}| produces a bold math symbol \\
500 bookmark & is loaded automatically by \newline \verb+\DocumentMetadata+ & customize pdf bookmarks \\
501 doi & support for hyperlinking DOIs & hyperlink a doi number: \verb|\doi{..}| \\
502 etoolbox & extend or modify other macros & can use in preamble to modify macros, if needed \\
503 geometry & set page size and margins & can use \verb|\newgeometry| in \texttt{mydesign.tex}\\
504 graphicsx& support for inserting images & use to include graphics\\
505 hyperref & support for hyperlinks and metadata & must complete metadata setup in preamble\\
506 mathtools& loads and extends \texttt{amsmath} & \textbf{many useful math macros available}. See documentation for \texttt{amsmath} and \texttt{mathtools} \\
507 \midrule
508 % hyperxmp & fallback if no \verb|\DocumentMetadata{..}|& ---\\
509 kvoptions& key value fallback for systems older than 2022/11/01 & ---\\
510 % xparse & for systems older than 2020/10/01 & macros to define new commands\\
511 \midrule
512 lineno & class option to add line numbers & keyvalue \texttt{lineno} will give line numbers; \texttt{lineno} package adds commands to control numbering\\
513 \midrule
514 % caption & could also be loaded in \texttt{mydesign.tex} & support for caption styling \\
515 % subcaption & could also be loaded in \texttt{mydesign.tex} & support for subfigures within figures \\
516 xcolor & could also be loaded in \texttt{mydesign.tex} & support for colors, including colored fonts \\[0.7em]
517 array & --- & additional options for formatting table columns \\
518 booktabs & --- & better quality tables, with additional commands \\
519 dcolumn & --- & align number columns on selectable separators \\
520 longtable & --- & multipage tables with automatic page breaking \\
521 microtype & --- & typographical refinements: character protrusion, font expansion, letter spacing (tracking), etc. \\
522 \midrule
523 babel & --- & if you use multiple languages, load \texttt{babel} in a fontset file before loading fonts \\
524 biblatex & --- & sample template uses this bibliography tool. \newline Change to \texttt{natbib} if you prefer\\
525 fontenc & --- & load this in a fontset file if using \pdfTeX\\
526 fontspec & --- & load this in a fontset file if using a unicode engine (\texttt{unicode-math} loads \texttt{fontspec} by default)\\
527 lipsum & --- & create filler text (see sample template, Chapter~1) \\
528 listings & --- & for listing computer code (see sample template, Appendix~A) \\
529 mhchem & --- & to format chemical formul\ae\ (see sample template, Chapter~1) \\
530 multicol & --- & used in two-column nomenclature list \\
531 setspace & --- & can be loaded to change the default line spacing, if desired (e.g., for ``double-spacing'')\\
532 unicode-math & --- & load in a fontset file if using a unicode engine\\
533 \bottomrule
534 \end{tabular*}}%
535 \end{table}
536
537 \section{TROUBLESHOOTING AND MODIFICATIONS}
538
539 \subsection{Listing thesis committee members or using a signature page}
540 Listing committee members (with or without signatures) is not required under MIT's thesis specifications. Only the thesis supervisor should appear on the title page, not a list of committee members. However, some departments may require a separate committee or signature page. That page can be inserted by the author between the title and abstract pages. Check with your department about this page and any associated formatting requirements.
541
542 \subsection{Dealing with multiple titles in the signature block}\label{sec:6.3}
543 When a thesis supervisor has multiple titles (which will not fit on one line), you can obtain a line break with proper horizontal spacing by doing
544 \vskip 5pt
545 % \quad\verb|\Supervisor{name}{first title and \\ \> second title}|
546 \quad\verb|\Supervisor{name}{first title and \\ & second title}|
547 \vskip 5pt
548 \noindent The same trick works in the \verb|\Acceptor| command.
549 \textbf{\TeX hackers note:} The signature block is typeset as a \LaTeX{} \texttt{tabular} environment as of version 1.18 (in earlier versions, a tabbing environment was used).
550
551 \subsection{Overflowing title page: managing space} If your title page overflows the vertical space (from too many authors, degrees, previous degrees, etc.), you can use some or all of the following techniques. The commands must be given before \verb|\maketitle|.
552 \begin{enumerate}
553 \item Reduce the 12 pt and 18 pt skips between the various blocks of text to 6 pt with this command:
554 \vskip 5pt
555 \noindent\verb|\Tighten|
556 \item Reduce the font size in the signature block with this command:
557 \vskip 5pt
558 \noindent\verb|\SignatureBlockSize{\small}|
559 \item Put the acceptor name and title onto two lines, rather than three, by putting the acceptor's position into the second argument and leaving the third argument blank:
560 \vskip 5pt
561 {\small\noindent\verb|\Acceptor{Tertius Castor}{Professor and Graduate Officer, Department of Research}{}|}
562 \item Reduce the font size of the the author name[s] from \verb|\large| to \verb|\normalsize| with this command:
563 \vskip 5pt
564 \noindent\verb|\AuthorNameSize{\normalsize}|
565 \item Omit previous degrees from the title page, instead mentioning them in the biographical sketch.
566 \end{enumerate}
567
568 \subsection{Push title page text toward top} If you prefer to keep the text toward the top of the page with most white space at the bottom, you
569 can use this command to squash the vertical glue (\TeX's stretchy space):
570 \vskip 5pt
571 \quad\verb|\Squash|
572 \vskip 5pt
573 \noindent This command is useful when the text has not already reach the bottom of the page, since the glue gets squashed automatically when the page is too full. This command must be given before \verb|\maketitle|.
574
575 \subsection{Overflowing thesis committee members page: managing space}
576 Reduce the 56 pt skips at top to 32 pt with this command:
577 \vskip 5pt
578 \verb|\CMPShortenTop|
579 \vskip 5pt
580
581 \noindent This command must be given before \verb|\maketitle|.
582
583 \subsection{Changing paragraph separation}
584 If you prefer to denote paragraph breaks by vertical space rather than indentation, you can try the \texttt{parskip} package: \hrefurl{https://ctan.org/pkg/parskip}{ctan.org/pkg/parskip}. See that package's documentation for details.
585
586 \subsection{Non-standard usage}
587 To adapt this template for use at a different institution, or for specific departmental needs, you can put the following commands in your preamble.
588 \begin{itemize}
589 \item Use \verb|\Institution{Your Institution}| to change MIT to your own institution on the title page.
590
591 \item Use \verb|\maketitle*| (in place of \verb|\maketitle|) to drop the MIT copyright permission statement.
592
593 \item If your institution issues degrees in months other than February, May, June, or September, you can still put those months into the
594 \verb|\DegreeDate| command. To suppress the resulting error message, put \verb|\SuppressMonthError| before \verb|\maketitle*|.
595
596 \item Omitting \verb|\Acceptor| commands will drop the ``Accepted by:'' field. To suppress the resultant error message, put \verb|\SuppressAcceptorError| before \verb|\maketitle*|.
597
598 \item To change ``Thesis Supervisor'' to something else, use \verb|\SupervisorDesignation{..}|.
599 \item To change ``Thesis Committee'' to something else, use \verb|\ThesisCommitteeName{..}|.
600 \item To change ``Committee member'' to something else, use \verb|\ThesisReaderName{..}|.
601
602 \end{itemize}
603 \emph{Please do not remove the license/copyright text from the sources files --- this code took me some time write!}
604
605 \section[RESOURCES FOR LATEX]{RESOURCES FOR \LaTeX}
606 \LaTeX{} documentation is easy to find online. A few useful resources, among many, are these:
607 \begin{description}
608 \item[\LaTeX{} Wikibook.] \url{https://en.wikibooks.org/wiki/LaTeX}. An online tutorial book.
609 \item[\LaTeX 2e: An unofficial reference manual.] \url{https://latexref.xyz/dev/latex2e.html}. A comprehensive explanation of each \LaTeX{} command, from the \TeX{} User's Group.
610 \item[\TeX{} Stack-Exchange.]\ \url{https://tex.stackexchange.com/}. More than 250,000 answered questions, and you can ask your own!
611 \item[ChatGPT.] At the time of this writing, ChatGPT, a chatbot based on a large language model, could sometimes accurately answer \LaTeX-related questions or write acceptable \LaTeX{} and expl3 code.
612 \end{description}
613
614 \vskip 30pt
615
616 \centering{\textcolor{Red3}{\Large\textbf{\emph{Good luck with your thesis and your thesis defense!}}}}
617
618 \end{document}