annotate 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
rev   line source
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@507 34 %\usepackage{fixltx2e}
rlm@507 35 %\usepackage{graphicx}
rlm@507 36 %\usepackage{longtable}
rlm@507 37 %\usepackage{float}
rlm@507 38 %\usepackage{wrapfig}
rlm@507 39 %\usepackage{rotating}
rlm@428 40 \usepackage[normalem]{ulem}
rlm@476 41 \usepackage{mathtools}
rlm@507 42 %\usepackage{amsmath}
rlm@507 43 %\usepackage{textcomp}
rlm@428 44 \usepackage{marvosym}
rlm@428 45 \usepackage{wasysym}
rlm@428 46 \usepackage{amssymb}
rlm@428 47 \usepackage{hyperref}
rlm@429 48 \usepackage{libertine}
rlm@429 49 \usepackage{inconsolata}
rlm@449 50 \usepackage{rotating}
rlm@452 51 \usepackage{caption}
rlm@505 52 \usepackage{xcolor}
rlm@507 53 \usepackage{minted}
rlm@505 54 \usepackage[backend=bibtex,style=alphabetic]{biblatex}
rlm@507 55 %\floatsetup[listing]{style=Plaintop}
rlm@452 56
rlm@452 57
rlm@507 58 \captionsetup{width=.85\textwidth,font=small}
rlm@507 59
rlm@506 60 % Configure minted source code listings.
rlm@506 61 \usemintedstyle{default}
rlm@506 62 \newminted{clojure}{fontsize=\footnotesize}
rlm@506 63
rlm@506 64 % Allow colored source code listing to break across pages.
rlm@505 65 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{}
rlm@429 66
rlm@505 67 \renewenvironment{listing}{\begin{anchoredListing}}{
rlm@507 68 \end{anchoredListing}
rlm@505 69 }
rlm@431 70
rlm@506 71 % Remove ugly boxes around hyperlinks
rlm@431 72 \definecolor{dark-red}{rgb}{0.4,0.15,0.15}
rlm@431 73 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15}
rlm@497 74 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9}
rlm@431 75 \hypersetup{
rlm@431 76 colorlinks, linkcolor={dark-red},
rlm@431 77 citecolor={dark-blue}, urlcolor={medium-blue}
rlm@431 78 }
rlm@431 79
rlm@506 80 % Dylan -- make labels on figures and tables simpler
rlm@429 81 \renewcommand{\thesection}{\arabic{section}}
rlm@445 82 \renewcommand{\thefigure}{\arabic{figure}}
rlm@427 83
rlm@506 84 % CORTEX annotated biblography
rlm@506 85 \addbibresource{cortex.bib}
rlm@506 86 \newcommand{\why}[1]{\\ \par{\footnotesize #1}\\}
rlm@505 87
rlm@427 88
rlm@429 89
rlm@427 90
rlm@506 91 %% % Alter some LaTeX defaults for better treatment of figures:
rlm@506 92 %% % See p.105 of "TeX Unbound" for suggested values.
rlm@506 93 %% % See pp. 199-200 of Lamport's "LaTeX" book for details.
rlm@506 94 %% % General parameters, for ALL pages:
rlm@506 95 %% \renewcommand{\topfraction}{0.9} % max fraction of floats at top
rlm@506 96 %% \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
rlm@506 97 %% % Parameters for TEXT pages (not float pages):
rlm@506 98 %% \setcounter{topnumber}{2}
rlm@506 99 %% \setcounter{bottomnumber}{2}
rlm@506 100 %% \setcounter{totalnumber}{4} % 2 may work better
rlm@506 101 %% \setcounter{dbltopnumber}{2} % for 2-column pages
rlm@506 102 %% \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
rlm@506 103 %% \renewcommand{\textfraction}{0.07} % allow minimal text w. figs
rlm@506 104 %% % Parameters for FLOAT pages (not text pages):
rlm@506 105 %% \renewcommand{\floatpagefraction}{0.7} % require fuller float pages
rlm@506 106 %% % N.B.: floatpagefraction MUST be less than topfraction !!
rlm@506 107 %% \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
rlm@506 108 %% % remember to use [htp] or [htpb] for placement
rlm@452 109
rlm@497 110 %\setmaxsecnumdepth{subsec}
rlm@506 111
rlm@506 112
rlm@506 113 % The thesis!
rlm@506 114 \pagestyle{plain}
rlm@428 115 \begin{document}
rlm@428 116 \include{cover}
rlm@428 117 \pagestyle{plain}
rlm@429 118 \tableofcontents
rlm@429 119 %\newpage
rlm@429 120 %\listoffigures
rlm@429 121 %\newpage
rlm@429 122 %\listoftables
rlm@428 123 \include{cortex}
rlm@429 124 \nocite{*}
rlm@488 125 \begin{singlespace}
rlm@506 126 \printbibliography
rlm@428 127 \end{singlespace}
rlm@428 128 \end{document}
rlm@427 129