comparison thesis/rlm-cortex-meng.tex @ 506:9ab8c19143f2

cleanup main thesis code.
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Mar 2014 00:21:50 -0400
parents c15e24d24396
children f2f029e1a6a9
comparison
equal deleted inserted replaced
505:c15e24d24396 506:9ab8c19143f2
50 \usepackage{xcolor} 50 \usepackage{xcolor}
51 \usepackage{minted} 51 \usepackage{minted}
52 \usepackage[backend=bibtex,style=alphabetic]{biblatex} 52 \usepackage[backend=bibtex,style=alphabetic]{biblatex}
53 53
54 54
55 % Configure minted source code listings.
56 \usemintedstyle{default}
57 \newminted{clojure}{fontsize=\footnotesize}
58
59 % Allow colored source code listing to break across pages.
55 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{} 60 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{}
56 61
57 \renewenvironment{listing}{\begin{anchoredListing}}{ 62 \renewenvironment{listing}{\begin{anchoredListing}}{
58 \end{anchoredListing}\ignorespacesafterend 63 \end{anchoredListing}\ignorespacesafterend
59 } 64 }
60 \addbibresource{cortex.bib}
61 65
62 66 % Remove ugly boxes around hyperlinks
63 \definecolor{dark-red}{rgb}{0.4,0.15,0.15} 67 \definecolor{dark-red}{rgb}{0.4,0.15,0.15}
64 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15} 68 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15}
65 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9} 69 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9}
66 \hypersetup{ 70 \hypersetup{
67 colorlinks, linkcolor={dark-red}, 71 colorlinks, linkcolor={dark-red},
68 citecolor={dark-blue}, urlcolor={medium-blue} 72 citecolor={dark-blue}, urlcolor={medium-blue}
69 } 73 }
70 74
71 75 % Dylan -- make labels on figures and tables simpler
72 \renewcommand{\thesection}{\arabic{section}} 76 \renewcommand{\thesection}{\arabic{section}}
73 \renewcommand{\thefigure}{\arabic{figure}} 77 \renewcommand{\thefigure}{\arabic{figure}}
74 78
75 %%%%% better source code display 79 % CORTEX annotated biblography
80 \addbibresource{cortex.bib}
81 \newcommand{\why}[1]{\\ \par{\footnotesize #1}\\}
76 82
77 83
78 %% dyl fonts
79
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}
87
88 %\usepackage[gray]{xcolor}
89 \newminted{clojure}{fontsize=\footnotesize}
90 %\newminted{clojure}{fontsize=\footnotesize,bgcolor=bg}
91 %\newminted{clojure}{fontsize=\scriptsize}
92
93 %\usepackage{lgrind}
94 \pagestyle{plain}
95 84
96 85
97 % Alter some LaTeX defaults for better treatment of figures: 86 %% % Alter some LaTeX defaults for better treatment of figures:
98 % See p.105 of "TeX Unbound" for suggested values. 87 %% % See p.105 of "TeX Unbound" for suggested values.
99 % See pp. 199-200 of Lamport's "LaTeX" book for details. 88 %% % See pp. 199-200 of Lamport's "LaTeX" book for details.
100 % General parameters, for ALL pages: 89 %% % General parameters, for ALL pages:
101 \renewcommand{\topfraction}{0.9} % max fraction of floats at top 90 %% \renewcommand{\topfraction}{0.9} % max fraction of floats at top
102 \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom 91 %% \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
103 % Parameters for TEXT pages (not float pages): 92 %% % Parameters for TEXT pages (not float pages):
104 \setcounter{topnumber}{2} 93 %% \setcounter{topnumber}{2}
105 \setcounter{bottomnumber}{2} 94 %% \setcounter{bottomnumber}{2}
106 \setcounter{totalnumber}{4} % 2 may work better 95 %% \setcounter{totalnumber}{4} % 2 may work better
107 \setcounter{dbltopnumber}{2} % for 2-column pages 96 %% \setcounter{dbltopnumber}{2} % for 2-column pages
108 \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text 97 %% \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
109 \renewcommand{\textfraction}{0.07} % allow minimal text w. figs 98 %% \renewcommand{\textfraction}{0.07} % allow minimal text w. figs
110 % Parameters for FLOAT pages (not text pages): 99 %% % Parameters for FLOAT pages (not text pages):
111 \renewcommand{\floatpagefraction}{0.7} % require fuller float pages 100 %% \renewcommand{\floatpagefraction}{0.7} % require fuller float pages
112 % N.B.: floatpagefraction MUST be less than topfraction !! 101 %% % N.B.: floatpagefraction MUST be less than topfraction !!
113 \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages 102 %% \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
114 % remember to use [htp] or [htpb] for placement 103 %% % remember to use [htp] or [htpb] for placement
115 104
116 %\setmaxsecnumdepth{subsec} 105 %\setmaxsecnumdepth{subsec}
106
107
108 % The thesis!
109 \pagestyle{plain}
117 \begin{document} 110 \begin{document}
118
119 \include{cover} 111 \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} 112 \pagestyle{plain}
125 \tableofcontents 113 \tableofcontents
126 %\newpage 114 %\newpage
127 %\listoffigures 115 %\listoffigures
128 %\newpage 116 %\newpage
129 %\listoftables 117 %\listoftables
130 \include{cortex} 118 \include{cortex}
131 \nocite{*} 119 \nocite{*}
132 %\include{chap2}
133 %\appendix
134
135 %\bibliographystyle{agsm}
136 %\bibliographystyle{apa}
137 %\bibliographystyle{plainnat}
138 %\include{user-guide}
139 \begin{singlespace} 120 \begin{singlespace}
140 %\printbibliography 121 \printbibliography
141 \end{singlespace} 122 \end{singlespace}
142 \end{document} 123 \end{document}
143 124