Debian Codegraph @

texmf-dist/doc/latex/mitthesis/MIT-thesis-template/MIT-Thesis.tex

raw
1 % !TEX encoding = UTF-8 Unicode
2 % !BIB TS-program = biber
3 %
4 % This file is MIT-Thesis.tex, a LaTeX template for formatting an MIT thesis with the mitthesis class.
5 %
6 % Version: 1.22, 2026/01/31
7 %
8 % Author: John H. Lienhard, copyright 2026. Reuse under the MIT license: https://ctan.org/license/mit
9 %
10 % DOCUMENTATION is here: https://ctan.org/pkg/mitthesis
11 %
12 % This package requires TeX Live 2022 or later.
13
14
15 %% Don't remove the \DocumentMetadata command
16 \DocumentMetadata
17 {
18 lang = en-US, % default language
19 pdfversion = 1.7,
20 pdfstandard = a-2b,
21 % pdfversion = 2.0, % default version
22 % pdfstandard = { ua-2, a-4f }, % requires pdfversion = 2.0; requires TeX Live 2024 or later.
23 % tagging = on, % For tagging (accessible PDF), run lualatex with TeX Live 2025 or later.
24 % Do not include appendixa.tex when selecting this option (listings package is not compatible).
25 % debug = { xmp-export }, % if you want to check your metadata (xmpi file).
26 }
27
28 %%%%%%%%% Documentclass and options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29
30 \documentclass[twoside]{mitthesis}
31 % fontset=libertinus, fontset=lmodern, fontset=lucida,
32 % fontset=fira-newtxsf, fontset=newtx, fontset=newtx-sans-text,
33 % fontset=heros-stix2, fontset=stix2, fontset=termes-stix2, fontset=termes
34 %
35 % option [twoside] gives facing-page behavior for printing; omitting twoside will eliminate even-numbered blank pages
36 % (use mydesign to change page margins, e.g., for binding).
37 %
38 % option [lineno] provides line numbers, as for editing
39 %
40 % option [fontset=xxx] is a keyvalue which can be:
41 % for pdftex or lualatex engine: defaultfonts, libertinus, lmodern, lucida
42 % for pdftex only: fira-newtxsf, newtx, newtx-sans-text
43 % for lualatex only: heros-stix2, stix2, termes, termes-stix2
44 % if no key value is given, fonts default to CMR (pdftex) or LMR (unicode), i.e., "the LaTeX font".
45 % You can edit the fontset files or you can write your own, myfonts.tex, and do [fontset=myfonts].
46 % If you are using multiple languages, load the babel package in your fontset file, before the fonts.
47 %
48 % option [mydesign] loads packages for color, title and list formats, margins, or captions.
49 % or [mydesign=file] You can edit mydesign.tex to change defaults. Other design files can be loaded as
50 % key values, [mydesign=filename], where filename.tex should be in your working directory.
51 % Two example files are provided: mydesign_redsans_headings.tex and mydesign_libertinus_headings.
52 % See documentation for details and a description of the appropriate fontsets to use with each.
53 %
54 % As distributed, mydesign.tex will set caption labels in bold face (e.g., "Figure 1.1:" in bold)
55 %
56
57 %%%%%%%% Packages used in the sample chapters (not otherwise required) %%%
58
59 %% Package for code listing in Appendix A.
60 \usepackage{listings}% documentation is here https://ctan.org/pkg/listings
61
62 %% Set chemical formulas nicely
63 \usepackage[version=4]{mhchem}% documentation at https://ctan.org/pkg/mhchem
64
65 %% Latin filler used in Chapter 1, with a test for package version date (https://ctan.org/pkg/lipsum)
66 \usepackage{lipsum}
67 \IfPackageAtLeastTF{lipsum}{2021/09/20}{\setlipsum{auto-lang=false}}{} % to avoid a hyphenation warning
68
69
70 %%%%%%%%% Other optional packages used sample chapters %%%%%%%%%%%%%%%%%%
71
72 %% Table related packages
73
74 \usepackage{booktabs}% publication quality tables (https://ctan.org/pkg/booktabs)
75
76 \usepackage{array}% Additional options for column formats (https://ctan.org/pkg/array)
77
78 \usepackage{dcolumn}% For alignment of numbers on the decimal place (https://ctan.org/pkg/dcolumn)
79 \newcolumntype{d}[1]{D{.}{.}{#1}}% use with dcolumn package. Note: dcolumns are set in math mode.
80 % syntax: d{x.y} where x is max number of digits before decimal and y is max number after.
81
82 % Package for multipage table in Appendix B.
83 \usepackage{longtable}% typeset multi-page tables (https://ctan.org/pkg/longtable)
84 \setlength{\LTcapwidth}{\linewidth}% width of caption over longtables. Adjust as desired.
85
86 %\usepackage{tabularx}% adjustable-width columns in tabular (https://ctan.org/pkg/tabularx)
87
88 %% Package for improved typography
89 \usepackage[nopatch=footnote]{microtype}% typographic fine-tuning (https://ctan.org/pkg/microtype)
90 % https://github.com/latex3/tagging-project/issues/67#issue-2163508995
91
92 %% Load this package if using the two-column nomenclature format, \begin{nomenclature*}
93 \usepackage{multicol}
94
95
96 %%%%%%%%% Graphics path (to figure files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97
98 %% Can set graphicspath to point to specific directories containing figures (the current directory is searched automatically)
99 %% For instance, to search a subdirectory of the current directory called "figures" and a parallel directory called "art", set:
100
101 % \graphicspath{ {figures/} {../art/} }% For details see: https://latexref.xyz/dev/latex2e.html#g_t_005cgraphicspath
102
103
104 %%%%%%%%% Representative set-up for biblatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105
106 %% biblatex is very powerful, and you can customize most aspects the reference list and citations to suit your needs.
107 %% documentation is here: https://ctan.org/pkg/biblatex
108 %% cheat sheet is here: https://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf
109
110 %% Numerical citations of references
111 \usepackage[style=ext-numeric-comp,giveninits=true,maxbibnames=10,sorting=none,language=american]{biblatex}
112
113 % and make some changes to that style
114 \renewcommand{\multicitedelim}{\addcomma}% removes space between consecutive cites to give [6,7], not [6, 7]
115 \AtEveryBibitem{%
116 \ifentrytype{article}{%
117 \renewbibmacro{in:}{}% Removes "In:" for articles
118 \renewcommand*{\jourvoldelim}{\addcomma\space} % put comma after journal title
119 \renewcommand*{\volnumdatedelim}{\addcomma\space}% put comma after volume info
120 \renewbibmacro*{issue+date}{% Print date without parentheses around it
121 \iffieldundef{issue}%
122 {}%
123 {\printfield{issue}%
124 \setunit*{\addcomma\space}
125 }%
126 \printdate
127 }
128 }{}
129 }
130 %
131 \renewbibmacro*{volume+number+eid}{%
132 \printtext[bold]{\printfield{volume}}% bold volume (issue number) , eid
133 % \printtext[parens]{\printfield{number}}%
134 \iffieldundef{number}
135 {} % do nothing
136 {\printtext[parens]{\printfield{number}}} % print number in parentheses
137 \setunit{\bibeidpunct}%
138 \printfield{eid}
139 }
140
141 %% IEEE style citations and references
142 % \usepackage[style=ieee,maxbibnames=10,sorting=none]{biblatex}% style=ext-numeric-comp,articlein=false,giveninits=true
143 % \DefineBibliographyStrings{english}{url= \textsc{url} , }% replaces the IEEE default "[Online]. Available" by "URL"
144
145 %% author-year style citations and references
146 %% use \parencite, not \cite, when you want "(Author, year)"
147 %% The sample files are not set up to include parentheses.
148 % \usepackage[style=authoryear, maxbibnames=10]{biblatex}
149
150
151 \addbibresource{mitthesis-sample.bib}%% <== change to YOUR bib file <========= CHANGE !!
152
153
154 %% to avoid split urls and stretched white space, you can make the bibliography ragged-right by uncommenting this:
155 %\AddToHook{cmd/bibsetup/after}{\raggedright}
156
157 %% To ensure citations are set, run Latex --> biblatex --> Latex again (unless your installation does this automatically)
158
159
160 %%%%%%%%%% Option for "double spacing" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
161
162 %% Back in the typewriter era, double spaced lines were convenient for editing with a pencil.
163 %% In typography, the separation between lines is called "leading", and it is usually set in
164 %% proportion to the font size (i.e., when the font is loaded). If you really feel the need
165 %% to change the line separation, the most attractive results will be obtained by changing the
166 %% leading in proportion to the the current font size, rather than just doubling the space.
167
168 %% The setspace package provides a tool for changing line separation. Use these two commands here:
169 %
170 % \usepackage{setspace}% documentation at https://ctan.org/pkg/setspace
171 % \setstretch{1.1}% you can choose some other value for the stretch of space between lines
172 %
173 %% Use one or more of the these commands *AFTER* the frontmatter
174 %
175 % \onehalfspacing
176 % \doublespacing
177 % \singlespacing % will turn these effects off (you can use these anywhere in the document)
178
179 %% The best result is usually to stay with the default leading (or to learn about latex font settings).
180
181
182 %%%%%%%%%%% Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
183
184 % Most of the document metadata is created automatically.
185 % The following items should be adjusted to match your work. <================= !!!!!!!!!!
186
187 \hypersetup{%
188 pdfsubject={Template for writing MIT theses with the mitthesis class},
189 % Change this to briefly state topic of your thesis
190 %
191 pdfkeywords={Massachusetts Institute of Technology, MIT},
192 % Add keywords that will help search engines and libraries to find your work.
193 % Includes the name[s] of the author[s]
194 % (If you used \DocumentMetadata at line 14, you can just put "\CopyrightAuthor," for the names.)
195 %
196 pdfurl={},
197 % If you have a url for the thesis, put it here. Otherwise delete this.
198 % (MIT Libraries will put your thesis in DSPACE with a persistent url after you submit it.)
199 %
200 pdfcontactemail={},
201 % You can put a [permanent] email address into the metadata, if you like.
202 % Otherwise delete this.
203 %
204 pdfauthortitle={},
205 % If you have a title (e.g., Prof. Dr.-Ing.), you can include it here.
206 }
207
208 %%%%%%%%%%%% Math operators %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
209
210 % These commands declare two math operators, \erf{..} and \erfc{..} using mathtools
211 % note: * form, \erf*{..}, produces automatic delimiter scaling;
212 % optional argument sets size manually, e.g. \erf[\bigg]{..}.
213 % See Table 1.1 in Chapter 1
214
215 \DeclareMathOperator{\Erf}{erf}
216 \DeclareMathOperator{\Erfc}{erfc}
217 \DeclarePairedDelimiterXPP\erf[1]{\Erf\mkern1mu}(){}{#1}% increase to 2mu with stix2 font
218 \DeclarePairedDelimiterXPP\erfc[1]{\Erfc\mkern1mu}(){}{#1}
219
220
221 %%%%%%%%%%%%%% End preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
222 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
223
224 \begin{document}
225 %%% edit the following commands to match your thesis %%%%%%%%%%
226
227 \title{The Atomic Theory as Applied To Gases, with Some Experiments on the Viscosity of Air}
228
229 % \Author{Author full name}{Author department}[Author's first PREVIOUS degree][Author's second PREVIOUS degree][...
230 % Note that third, fourth, fifth, and sixth arguments are optional [] and may be omitted
231 %
232 \Author{Silas W. Holman}{Department of Physics}
233 % \Author{Luisa Hernández}{Department of Research}[B.S. Mechanical Engineering, UCLA, 2018][M.S. Stellar Interiors, Vulcan Science Academy, 2020]
234 % \Author{Thurston Howell III}{Department of Economics}[MBA, Ferengi School of Management, 2022]
235 %
236 % note on these names: most of the following names are made up, but Silas Holman was a physics professor at MIT in the 19th century.
237
238 % Use once for each degree fulfilled by thesis
239 % For two degrees from one department, leave the department argument blank for the second degree {}.
240 % For one degree from two departments, leave the degree argument blank for the second department {}.
241 %
242 \Degree{Bachelor of Science in Physics}{Department of Physics}
243 % \Degree{Master of Science in Physics}{}
244 % \Degree{Bachelor of Science in Mechanical Engineering}{Department of Mechanical Engineering}
245
246
247 % If there is more than one supervisor, use the \Supervisor command for each.
248 % NB: department field added with v1.21 in late 2025. It is used ONLY on the Thesis Committee page.
249 %
250 \Supervisor{Edward C. Pickering}{Professor of Physics}[Department of Physics]
251 % \Supervisor{Secunda Castor}{Professor of Research \\ & Professor of Knowledge \\ & Professor of Reason}[Department of Research ]
252 % \Supervisor{Quintus Castor}{Professor of Log Dams}[Department of Civil \& Environmental Engineering \\ & Department of All Faculty Who Are Not Members of a Department]
253 % Separate multiple titles or departments with "\\ &". If not preceded by "\\", an "&" will be converted to the string "&" (an "\&" by itself will be converted to "and").
254
255
256 % Professor who formally accepts theses for your department (e.g., the Graduate Officer, Professor Sméagol,...)
257 % If more than one department gives the degree, use once for each department
258 %
259 \Acceptor{Tertius Castor}{Professor of Log Dams}{Graduate Officer, Department of Research} % \\ & Third title}
260 % \Acceptor{Quarta Castor}{Professor of Lodge Building}{Graduate Officer, Department of Mechanical Engineering}
261 %%% If you need to reduce vertical space, put the acceptor title in the second argument and leave the third blank, {}.
262 % \Acceptor{Primus Castor}{Professor and Undergraduate Officer, Department of Physics}{}
263
264
265 % Date degree will be issued: \DegreeDate{Month}{year}
266 % Valid degree months are February, May, June, or September
267 \DegreeDate{June}{1876}
268
269
270 % Date that final thesis is submitted to department
271 \ThesisDate{May 18, 1876}
272
273 % If at least one thesis reader is included, a committee members page will be automatically generated.
274 % The MIT libraries do not set a format for the committee members page, and if you prefer to use your own format,
275 % omit ALL readers here and insert your page just before the abstract.
276 %
277 \Reader{Marcus Gavius Apicius}{Professor of Cooking Arts}{Department of Food Science}
278 \Reader{Marie-Antoine Carême}{Professor of Haute Cuisine}{Department of Food Science}
279 \Reader{Miles Gloriosus}{Professor of Personal Pronouns}{Department of Rhetoric}
280
281 %% Are your readers running off the page? You can move the page heading upward by uncommenting this command:
282 % \CMPShortenTop
283
284
285 %%%%%% Choose whether to have a CREATIVE COMMONS License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
286 %
287 % If you are using a cc license, uncomment the following line and insert details of your cc license here.
288 %
289 % \CClicense{CC BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/}
290 %
291
292
293 %%%%%%% Solutions for overflowing titlepage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
294
295 % If your title page is overflowing (from too many names, degrees, etc.):
296 %
297 % (a) you can reduce the 12pt and 18pt skips between various blocks to 6pt with this command:
298 %
299 % \Tighten
300 %
301 % (b) you can scale down the Signature block at the bottom with this command:
302 %
303 % \SignatureBlockSize{\small} %or this one \SignatureBlockSize{\footnotesize}
304 %
305 % (c) you can put the acceptor name and title onto two lines, rather than three like this:
306 %
307 % \Acceptor{Tertius Castor}{Professor and Graduate Officer, Department of Research}{}
308 %
309 % (d) you can change the font size of the author name[s] with
310 %
311 % \AuthorNameSize{\normalsize}
312 %
313 % (e) and you can omit any previous degrees from the title page, instead mentioning them in the biographical sketch
314
315 % Also, if you prefer to keep the text toward the top of the page with most white space at the bottom, you
316 % can use this command to squash all of the vertical glue (stretchy space) with this command:
317 %
318 % \Squash
319 %
320 % This command is useful when the text has not already reach the bottom of the page, since the glue gets squashed automatically
321 % when the page is too full.
322
323
324 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
325
326 %%% Make titlepage
327 \maketitle
328
329
330 %%%%%%%%% Content that you need to write follows! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
331
332
333 % \includeonly{acknowledgments,biography,chapter1,chapter2,...,appendixa,...}
334 % for usage of includeonly, see https://latexref.xyz/_005cinclude-_0026-_005cincludeonly.html
335
336
337 %%% Frontmatter (write this material in the mentioned files) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
338
339 % If you are not using the automatic committee members page (by completing at least one \Reader macro),
340 % you can insert your own page here. Create a file committee_members.tex
341 % \include{committee_members}% This page is optional.
342
343 % The abstract environment creates all the required headings and footers.
344 % You only need to the text of the abstract in the file abstract.tex
345 \begin{abstract}
346 \input{abstract.tex}% use \input rather than \include because we're inside an environment
347 \end{abstract}
348
349 \include{acknowledgments}% acknowledgments.tex (.tex extension is presumed by \include)
350
351 \include{biography}% biography.tex (optional, see https://libraries.mit.edu/distinctive-collections/thesis-specs/#format)
352
353 %%% Table of contents and lists of stuff (delete unused lists, i.e., if no tables or figures) %%%%%
354
355 \tableofcontents
356 \listoffigures
357 \listoftables
358
359 %%% Chapters of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
360
361 %% If you want to use "double spacing", you should start here...
362
363 \include{chapter1}% .tex extension is presumed
364 %\include{chapter2}
365 % \include{chapter3}
366 % \include{chapter4}
367
368
369 %%% Appendices of thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
370
371 \appendix
372 \include{appendixa}% listings example (not compatible with tagged pdf, as of Oct. 2025)
373 \include{appendixb}% longtable example
374
375
376 %%% Bibliography (biblatex) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
377
378 \defbibheading{bibintoc}{\chapter*{#1}\addcontentsline{toc}{backmatter}{\refname}}
379 % this sets the title of contents name for bibliography to \refname (= References)
380 % change "backmatter" to "chapter" if you prefer a bold face entry in the table of contents
381
382 \printbibliography[title={\refname},heading=bibintoc]
383
384 % biblatex also supports chapter-by-chapter bibliography, https://tex.stackexchange.com/a/296502/119566
385 % see the biblatex manual, section 3.14.3
386
387
388 \end{document}
389