X-Git-Url: https://git.llucax.com/z.facultad/75.00/informe.git/blobdiff_plain/be8ea0ac4258c694b84fed29e6ccf4e79aa34ae4..881c40a0d92402f50fb43b1665179fbed979ff68:/source/conf.py?ds=sidebyside diff --git a/source/conf.py b/source/conf.py index f3c7f2c..d31a871 100644 --- a/source/conf.py +++ b/source/conf.py @@ -198,8 +198,15 @@ latex_logo = None # Additional stuff for the LaTeX preamble. latex_preamble = r''' \usepackage{epigraph} -\usepackage[final]{varioref} % XXX: breaks PDF index, use [final] when done \usepackage{subfig} + +% Se hackea el Makefile para hacer el usepackage de varioref antes del +% usepackage{sphinx} porque si se lo hace despues se rompe el indice del PDF +% (en realidad tiene que estar antes del usepackage del hyperref, que se carga +% en el paquete sphinx). Para cambiar entre draft/final hay que modificar el +% Makefile. +%\usepackage[final]{varioref} % XXX: breaks PDF index, use [final] when done + % Relaja restricciones de LaTeX para floats, ver: % http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html % http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floats @@ -210,10 +217,24 @@ latex_preamble = r''' \setcounter{topnumber}{1} \setcounter{bottomnumber}{1} \setcounter{totalnumber}{4} + % Profundida maxima de tabla de contenidos \setcounter{tocdepth}{2} + +% Color de fondo de codigo +\definecolor{VerbatimColor}{rgb}{0.95,0.95,0.95} +\definecolor{VerbatimBorderColor}{rgb}{0.75,0.75,0.75} + +% Definiciones para PDF +\hypersetup{ + pdftitle={Recolecci\'on de basura en D}, + pdfauthor={Leandro Mat\'ias Lucarella}, + pdfsubject={Tesis de Ingenier\'ia en Inform\'atica, FIUBA}, + pdfkeywords={gc}{d}{cdgc}{fork}{concurrent} +} ''' + # Documents to append as an appendix to all manuals. #latex_appendices = [] @@ -226,3 +247,16 @@ aafig_default_options = dict( aspect = 0.5, ) + +# Para imprimir +################ +if True: + pygments_style = 'pygsty.PrintStyle' + latex_preamble += r''' + % Colores para imprimir + \definecolor{TitleColor}{rgb}{0,0,0} + \definecolor{InnerLinkColor}{rgb}{0,0,0} + \definecolor{OuterLinkColor}{rgb}{0,0,0} + \hypersetup{colorlinks=false} + ''' +