comparison 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
comparison
equal deleted inserted replaced
504:609356a82760 505:c15e24d24396
45 \usepackage{hyperref} 45 \usepackage{hyperref}
46 \usepackage{libertine} 46 \usepackage{libertine}
47 \usepackage{inconsolata} 47 \usepackage{inconsolata}
48 \usepackage{rotating} 48 \usepackage{rotating}
49 \usepackage{caption} 49 \usepackage{caption}
50 \usepackage{xcolor}
51 \usepackage{minted}
52 \usepackage[backend=bibtex,style=alphabetic]{biblatex}
50 53
51 \usepackage{afterpage}
52 54
53 \afterpage{\clearpage} % 55 \newenvironment{anchoredListing}{\captionsetup{type=listing}}{}
54 56
55 \usepackage[backend=bibtex,style=alphabetic]{biblatex} 57 \renewenvironment{listing}{\begin{anchoredListing}}{
58 \end{anchoredListing}\ignorespacesafterend
59 }
56 \addbibresource{cortex.bib} 60 \addbibresource{cortex.bib}
57 61
58 \usepackage{xcolor} 62
59 \definecolor{dark-red}{rgb}{0.4,0.15,0.15} 63 \definecolor{dark-red}{rgb}{0.4,0.15,0.15}
60 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15} 64 \definecolor{dark-blue}{rgb}{0.15,0.4,0.15}
61 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9} 65 \definecolor{medium-blue}{rgb}{0.15,0.4,0.9}
62 \hypersetup{ 66 \hypersetup{
63 colorlinks, linkcolor={dark-red}, 67 colorlinks, linkcolor={dark-red},
67 71
68 \renewcommand{\thesection}{\arabic{section}} 72 \renewcommand{\thesection}{\arabic{section}}
69 \renewcommand{\thefigure}{\arabic{figure}} 73 \renewcommand{\thefigure}{\arabic{figure}}
70 74
71 %%%%% better source code display 75 %%%%% better source code display
72 \usepackage{minted} 76
73 77
74 %% dyl fonts 78 %% dyl fonts
75 79
76 % \usemintedstyle{friendly} 80 % \usemintedstyle{friendly}
77 % \usemintedstyle{perldoc} 81 % \usemintedstyle{perldoc}
131 %\bibliographystyle{agsm} 135 %\bibliographystyle{agsm}
132 %\bibliographystyle{apa} 136 %\bibliographystyle{apa}
133 %\bibliographystyle{plainnat} 137 %\bibliographystyle{plainnat}
134 %\include{user-guide} 138 %\include{user-guide}
135 \begin{singlespace} 139 \begin{singlespace}
136 \printbibliography 140 %\printbibliography
137 \end{singlespace} 141 \end{singlespace}
138 \end{document} 142 \end{document}
139 143