view thesis/rlm-cortex-meng.tex @ 507:f2f029e1a6a9

fixing problems with listings.
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Mar 2014 00:53:14 -0400
parents 9ab8c19143f2
children f639e2139ce2
line wrap: on
line source
1 % -*- Mode:TeX -*-
3 %% IMPORTANT: The official thesis specifications are available at:
4 %% http://libraries.mit.edu/archives/thesis-specs/
5 %%
6 %% Please verify your thesis' formatting and copyright
7 %% assignment before submission. If you notice any
8 %% discrepancies between these templates and the
9 %% MIT Libraries' specs, please let us know
10 %% by e-mailing thesis@mit.edu
12 %% The documentclass options along with the pagestyle can be used to generate
13 %% a technical report, a draft copy, or a regular thesis. You may need to
14 %% re-specify the pagestyle after you \include cover.tex. For more
15 %% information, see the first few lines of mitthesis.cls.
17 %\documentclass[12pt,vi,twoside]{mitthesis}
18 %%
19 %% If you want your thesis copyright to you instead of MIT, use the
20 %% ``vi'' option, as above.
21 %%
22 %\documentclass[12pt,twoside,leftblank]{mitthesis}
23 %%
24 %% If you want blank pages before new chapters to be labelled ``This
25 %% Page Intentionally Left Blank'', use the ``leftblank'' option, as
26 %% above.
28 \documentclass[12pt,twoside,singlespace,vi]{mitthesis}
29 %\documentclass[12pt,twoside,vi]{mitthesis}
31 %\usepackage{floatrow}
32 \usepackage[utf8]{inputenc}
33 \usepackage[T1]{fontenc}
34 %\usepackage{fixltx2e}
35 %\usepackage{graphicx}
36 %\usepackage{longtable}
37 %\usepackage{float}
38 %\usepackage{wrapfig}
39 %\usepackage{rotating}
40 \usepackage[normalem]{ulem}
41 \usepackage{mathtools}
42 %\usepackage{amsmath}
43 %\usepackage{textcomp}
44 \usepackage{marvosym}
45 \usepackage{wasysym}
46 \usepackage{amssymb}
47 \usepackage{hyperref}
48 \usepackage{libertine}
49 \usepackage{inconsolata}
50 \usepackage{rotating}
51 \usepackage{caption}
52 \usepackage{xcolor}
53 \usepackage{minted}
54 \usepackage[backend=bibtex,style=alphabetic]{biblatex}
55 %\floatsetup[listing]{style=Plaintop}
58 \captionsetup{width=.85\textwidth,font=small}
60 % Configure minted source code listings.
61 \usemintedstyle{default}
62 \newminted{clojure}{fontsize=\footnotesize}
64 % Allow colored source code listing to break across pages.
65 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{}
67 \renewenvironment{listing}{\begin{anchoredListing}}{
68 \end{anchoredListing}
69 }
71 % Remove ugly boxes around hyperlinks
72 \definecolor{dark-red}{rgb}{0.4,0.15,0.15}
73 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15}
74 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9}
75 \hypersetup{
76 colorlinks, linkcolor={dark-red},
77 citecolor={dark-blue}, urlcolor={medium-blue}
78 }
80 % Dylan -- make labels on figures and tables simpler
81 \renewcommand{\thesection}{\arabic{section}}
82 \renewcommand{\thefigure}{\arabic{figure}}
84 % CORTEX annotated biblography
85 \addbibresource{cortex.bib}
86 \newcommand{\why}[1]{\\ \par{\footnotesize #1}\\}
91 %% % Alter some LaTeX defaults for better treatment of figures:
92 %% % See p.105 of "TeX Unbound" for suggested values.
93 %% % See pp. 199-200 of Lamport's "LaTeX" book for details.
94 %% % General parameters, for ALL pages:
95 %% \renewcommand{\topfraction}{0.9} % max fraction of floats at top
96 %% \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
97 %% % Parameters for TEXT pages (not float pages):
98 %% \setcounter{topnumber}{2}
99 %% \setcounter{bottomnumber}{2}
100 %% \setcounter{totalnumber}{4} % 2 may work better
101 %% \setcounter{dbltopnumber}{2} % for 2-column pages
102 %% \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
103 %% \renewcommand{\textfraction}{0.07} % allow minimal text w. figs
104 %% % Parameters for FLOAT pages (not text pages):
105 %% \renewcommand{\floatpagefraction}{0.7} % require fuller float pages
106 %% % N.B.: floatpagefraction MUST be less than topfraction !!
107 %% \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
108 %% % remember to use [htp] or [htpb] for placement
110 %\setmaxsecnumdepth{subsec}
113 % The thesis!
114 \pagestyle{plain}
115 \begin{document}
116 \include{cover}
117 \pagestyle{plain}
118 \tableofcontents
119 %\newpage
120 %\listoffigures
121 %\newpage
122 %\listoftables
123 \include{cortex}
124 \nocite{*}
125 \begin{singlespace}
126 \printbibliography
127 \end{singlespace}
128 \end{document}