Mercurial > cortex
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 copyright7 %% assignment before submission. If you notice any8 %% discrepancies between these templates and the9 %% MIT Libraries' specs, please let us know10 %% by e-mailing thesis@mit.edu12 %% The documentclass options along with the pagestyle can be used to generate13 %% a technical report, a draft copy, or a regular thesis. You may need to14 %% re-specify the pagestyle after you \include cover.tex. For more15 %% 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 the20 %% ``vi'' option, as above.21 %%22 %\documentclass[12pt,twoside,leftblank]{mitthesis}23 %%24 %% If you want blank pages before new chapters to be labelled ``This25 %% Page Intentionally Left Blank'', use the ``leftblank'' option, as26 %% 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 hyperlinks72 \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 simpler81 \renewcommand{\thesection}{\arabic{section}}82 \renewcommand{\thefigure}{\arabic{figure}}84 % CORTEX annotated biblography85 \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 top96 %% \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom97 %% % Parameters for TEXT pages (not float pages):98 %% \setcounter{topnumber}{2}99 %% \setcounter{bottomnumber}{2}100 %% \setcounter{totalnumber}{4} % 2 may work better101 %% \setcounter{dbltopnumber}{2} % for 2-column pages102 %% \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text103 %% \renewcommand{\textfraction}{0.07} % allow minimal text w. figs104 %% % Parameters for FLOAT pages (not text pages):105 %% \renewcommand{\floatpagefraction}{0.7} % require fuller float pages106 %% % N.B.: floatpagefraction MUST be less than topfraction !!107 %% \renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages108 %% % remember to use [htp] or [htpb] for placement110 %\setmaxsecnumdepth{subsec}113 % The thesis!114 \pagestyle{plain}115 \begin{document}116 \include{cover}117 \pagestyle{plain}118 \tableofcontents119 %\newpage120 %\listoffigures121 %\newpage122 %\listoftables123 \include{cortex}124 \nocite{*}125 \begin{singlespace}126 \printbibliography127 \end{singlespace}128 \end{document}