view thesis/rlm-cortex-meng.tex @ 505:c15e24d24396

possibe fix using anchoredListing
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Mar 2014 00:17:54 -0400
parents c7ff3ec5c3ef
children 9ab8c19143f2
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}
30 \usepackage[utf8]{inputenc}
31 \usepackage[T1]{fontenc}
32 \usepackage{fixltx2e}
33 \usepackage{graphicx}
34 \usepackage{longtable}
35 \usepackage{float}
36 \usepackage{wrapfig}
37 \usepackage{rotating}
38 \usepackage[normalem]{ulem}
39 \usepackage{mathtools}
40 \usepackage{amsmath}
41 \usepackage{textcomp}
42 \usepackage{marvosym}
43 \usepackage{wasysym}
44 \usepackage{amssymb}
45 \usepackage{hyperref}
46 \usepackage{libertine}
47 \usepackage{inconsolata}
48 \usepackage{rotating}
49 \usepackage{caption}
50 \usepackage{xcolor}
51 \usepackage{minted}
52 \usepackage[backend=bibtex,style=alphabetic]{biblatex}
55 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{}
57 \renewenvironment{listing}{\begin{anchoredListing}}{
58 \end{anchoredListing}\ignorespacesafterend
59 }
60 \addbibresource{cortex.bib}
63 \definecolor{dark-red}{rgb}{0.4,0.15,0.15}
64 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15}
65 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9}
66 \hypersetup{
67 colorlinks, linkcolor={dark-red},
68 citecolor={dark-blue}, urlcolor={medium-blue}
69 }
72 \renewcommand{\thesection}{\arabic{section}}
73 \renewcommand{\thefigure}{\arabic{figure}}
75 %%%%% better source code display
78 %% dyl fonts
80 % \usemintedstyle{friendly}
81 % \usemintedstyle{perldoc}
82 %\definecolor{bg}{rgb}{0.95,0.95,0.95}
83 \definecolor{bg}{rgb}{0.625,0,0}
84 \usemintedstyle{default}
85 \newcommand{\why}[1]{\\ \par{\footnotesize #1}\\}
86 %\setmonofont[Scale=0.9,BoldFont={Inconsolata Bold}]{Inconsolata}
88 %\usepackage[gray]{xcolor}
89 \newminted{clojure}{fontsize=\footnotesize}
90 %\newminted{clojure}{fontsize=\footnotesize,bgcolor=bg}
91 %\newminted{clojure}{fontsize=\scriptsize}
93 %\usepackage{lgrind}
94 \pagestyle{plain}
97 % Alter some LaTeX defaults for better treatment of figures:
98 % See p.105 of "TeX Unbound" for suggested values.
99 % See pp. 199-200 of Lamport's "LaTeX" book for details.
100 % General parameters, for ALL pages:
101 \renewcommand{\topfraction}{0.9} % max fraction of floats at top
102 \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
103 % Parameters for TEXT pages (not float pages):
104 \setcounter{topnumber}{2}
105 \setcounter{bottomnumber}{2}
106 \setcounter{totalnumber}{4} % 2 may work better
107 \setcounter{dbltopnumber}{2} % for 2-column pages
108 \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
109 \renewcommand{\textfraction}{0.07} % allow minimal text w. figs
110 % Parameters for FLOAT pages (not text pages):
111 \renewcommand{\floatpagefraction}{0.7} % require fuller float pages
112 % N.B.: floatpagefraction MUST be less than topfraction !!
113 \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
114 % remember to use [htp] or [htpb] for placement
116 %\setmaxsecnumdepth{subsec}
117 \begin{document}
119 \include{cover}
120 % Some departments (e.g. 5) require an additional signature page. See
121 % signature.tex for more information and uncomment the following line if
122 % applicable.
123 % \include{signature}
124 \pagestyle{plain}
125 \tableofcontents
126 %\newpage
127 %\listoffigures
128 %\newpage
129 %\listoftables
130 \include{cortex}
131 \nocite{*}
132 %\include{chap2}
133 %\appendix
135 %\bibliographystyle{agsm}
136 %\bibliographystyle{apa}
137 %\bibliographystyle{plainnat}
138 %\include{user-guide}
139 \begin{singlespace}
140 %\printbibliography
141 \end{singlespace}
142 \end{document}