rlm@428
|
1 % -*- Mode:TeX -*-
|
rlm@427
|
2
|
rlm@428
|
3 %% IMPORTANT: The official thesis specifications are available at:
|
rlm@428
|
4 %% http://libraries.mit.edu/archives/thesis-specs/
|
rlm@428
|
5 %%
|
rlm@428
|
6 %% Please verify your thesis' formatting and copyright
|
rlm@428
|
7 %% assignment before submission. If you notice any
|
rlm@428
|
8 %% discrepancies between these templates and the
|
rlm@428
|
9 %% MIT Libraries' specs, please let us know
|
rlm@428
|
10 %% by e-mailing thesis@mit.edu
|
rlm@427
|
11
|
rlm@428
|
12 %% The documentclass options along with the pagestyle can be used to generate
|
rlm@428
|
13 %% a technical report, a draft copy, or a regular thesis. You may need to
|
rlm@428
|
14 %% re-specify the pagestyle after you \include cover.tex. For more
|
rlm@428
|
15 %% information, see the first few lines of mitthesis.cls.
|
rlm@427
|
16
|
rlm@428
|
17 %\documentclass[12pt,vi,twoside]{mitthesis}
|
rlm@428
|
18 %%
|
rlm@428
|
19 %% If you want your thesis copyright to you instead of MIT, use the
|
rlm@428
|
20 %% ``vi'' option, as above.
|
rlm@428
|
21 %%
|
rlm@428
|
22 %\documentclass[12pt,twoside,leftblank]{mitthesis}
|
rlm@428
|
23 %%
|
rlm@428
|
24 %% If you want blank pages before new chapters to be labelled ``This
|
rlm@428
|
25 %% Page Intentionally Left Blank'', use the ``leftblank'' option, as
|
rlm@428
|
26 %% above.
|
rlm@427
|
27
|
rlm@441
|
28 \documentclass[12pt,twoside,singlespace,vi]{mitthesis}
|
rlm@451
|
29 %\documentclass[12pt,twoside,vi]{mitthesis}
|
rlm@507
|
30
|
rlm@507
|
31 %\usepackage{floatrow}
|
rlm@428
|
32 \usepackage[utf8]{inputenc}
|
rlm@428
|
33 \usepackage[T1]{fontenc}
|
rlm@552
|
34 %\usepackage[headheight=14pt]{geometry}
|
rlm@566
|
35 \usepackage[margin=1in]{geometry}
|
rlm@507
|
36 %\usepackage{fixltx2e}
|
rlm@507
|
37 %\usepackage{graphicx}
|
rlm@507
|
38 %\usepackage{longtable}
|
rlm@507
|
39 %\usepackage{float}
|
rlm@507
|
40 %\usepackage{wrapfig}
|
rlm@507
|
41 %\usepackage{rotating}
|
rlm@428
|
42 \usepackage[normalem]{ulem}
|
rlm@476
|
43 \usepackage{mathtools}
|
rlm@507
|
44 %\usepackage{amsmath}
|
rlm@507
|
45 %\usepackage{textcomp}
|
rlm@428
|
46 \usepackage{marvosym}
|
rlm@428
|
47 \usepackage{wasysym}
|
rlm@428
|
48 \usepackage{amssymb}
|
rlm@429
|
49 \usepackage{libertine}
|
rlm@429
|
50 \usepackage{inconsolata}
|
rlm@449
|
51 \usepackage{rotating}
|
rlm@452
|
52 \usepackage{caption}
|
rlm@505
|
53 \usepackage{xcolor}
|
rlm@507
|
54 \usepackage{minted}
|
rlm@529
|
55 \usepackage{fancyhdr}
|
rlm@544
|
56 \usepackage{hyperref}
|
rlm@566
|
57 \usepackage[anythingbreaks]{breakurl}
|
rlm@544
|
58 \fancyhead[RO,LE]{\bfseries \nouppercase{\rightmark}}
|
rlm@544
|
59 \renewcommand{\subsectionmark}[1]{\markright{#1}}
|
rlm@548
|
60 \renewcommand{\sectionmark}[1]{\markright{#1}}
|
rlm@529
|
61
|
rlm@544
|
62 \usepackage[backend=bibtex,style=authoryear]{biblatex}
|
rlm@510
|
63 %\usepackage[section]{placeins}
|
rlm@517
|
64 \usepackage[section,subsection]{extraplaceins}
|
rlm@507
|
65 %\floatsetup[listing]{style=Plaintop}
|
rlm@452
|
66
|
rlm@452
|
67
|
rlm@507
|
68 \captionsetup{width=.85\textwidth,font=small}
|
rlm@507
|
69
|
rlm@506
|
70 % Configure minted source code listings.
|
rlm@506
|
71 \usemintedstyle{default}
|
rlm@506
|
72 \newminted{clojure}{fontsize=\footnotesize}
|
rlm@525
|
73 \newminted{java}{fontsize=\footnotesize}
|
rlm@525
|
74 \newminted{c}{fontsize=\footnotesize}
|
rlm@525
|
75
|
rlm@506
|
76
|
rlm@506
|
77 % Allow colored source code listing to break across pages.
|
rlm@505
|
78 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{}
|
rlm@429
|
79
|
rlm@505
|
80 \renewenvironment{listing}{\begin{anchoredListing}}{
|
rlm@507
|
81 \end{anchoredListing}
|
rlm@505
|
82 }
|
rlm@431
|
83
|
rlm@506
|
84 % Remove ugly boxes around hyperlinks
|
rlm@431
|
85 \definecolor{dark-red}{rgb}{0.4,0.15,0.15}
|
rlm@431
|
86 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15}
|
rlm@497
|
87 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9}
|
rlm@431
|
88 \hypersetup{
|
rlm@431
|
89 colorlinks, linkcolor={dark-red},
|
rlm@431
|
90 citecolor={dark-blue}, urlcolor={medium-blue}
|
rlm@431
|
91 }
|
rlm@431
|
92
|
rlm@506
|
93 % Dylan -- make labels on figures and tables simpler
|
rlm@429
|
94 \renewcommand{\thesection}{\arabic{section}}
|
rlm@445
|
95 \renewcommand{\thefigure}{\arabic{figure}}
|
rlm@427
|
96
|
rlm@506
|
97 % CORTEX annotated biblography
|
rlm@506
|
98 \addbibresource{cortex.bib}
|
rlm@506
|
99 \newcommand{\why}[1]{\\ \par{\footnotesize #1}\\}
|
rlm@505
|
100
|
rlm@427
|
101
|
rlm@429
|
102
|
rlm@427
|
103
|
rlm@506
|
104 %% % Alter some LaTeX defaults for better treatment of figures:
|
rlm@506
|
105 %% % See p.105 of "TeX Unbound" for suggested values.
|
rlm@506
|
106 %% % See pp. 199-200 of Lamport's "LaTeX" book for details.
|
rlm@506
|
107 %% % General parameters, for ALL pages:
|
rlm@506
|
108 %% \renewcommand{\topfraction}{0.9} % max fraction of floats at top
|
rlm@506
|
109 %% \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
|
rlm@506
|
110 %% % Parameters for TEXT pages (not float pages):
|
rlm@506
|
111 %% \setcounter{topnumber}{2}
|
rlm@506
|
112 %% \setcounter{bottomnumber}{2}
|
rlm@506
|
113 %% \setcounter{totalnumber}{4} % 2 may work better
|
rlm@506
|
114 %% \setcounter{dbltopnumber}{2} % for 2-column pages
|
rlm@506
|
115 %% \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
|
rlm@506
|
116 %% \renewcommand{\textfraction}{0.07} % allow minimal text w. figs
|
rlm@506
|
117 %% % Parameters for FLOAT pages (not text pages):
|
rlm@506
|
118 %% \renewcommand{\floatpagefraction}{0.7} % require fuller float pages
|
rlm@506
|
119 %% % N.B.: floatpagefraction MUST be less than topfraction !!
|
rlm@506
|
120 %% \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
|
rlm@506
|
121 %% % remember to use [htp] or [htpb] for placement
|
rlm@452
|
122
|
rlm@497
|
123 %\setmaxsecnumdepth{subsec}
|
rlm@506
|
124
|
rlm@506
|
125
|
rlm@506
|
126 % The thesis!
|
rlm@566
|
127 % dxh debug
|
rlm@566
|
128 %\pagestyle{empty}
|
rlm@506
|
129 \pagestyle{plain}
|
rlm@544
|
130
|
rlm@428
|
131 \begin{document}
|
rlm@428
|
132 \include{cover}
|
rlm@544
|
133
|
rlm@566
|
134
|
rlm@429
|
135 \tableofcontents
|
rlm@544
|
136 \pagestyle{fancy}
|
rlm@428
|
137 \include{cortex}
|
rlm@544
|
138 \pagestyle{plain}
|
rlm@429
|
139 \nocite{*}
|
rlm@488
|
140 \begin{singlespace}
|
rlm@506
|
141 \printbibliography
|
rlm@428
|
142 \end{singlespace}
|
rlm@428
|
143 \end{document}
|
rlm@427
|
144
|