X-Git-Url: https://git.llucax.com/z.facultad/75.00/informe.git/blobdiff_plain/12f25498373323559f9ce2652656838945b7f3cb..da30cdeb053c7ff3640bb542eeeff940bcf1f2ec:/source/conf.py?ds=sidebyside diff --git a/source/conf.py b/source/conf.py index 93750ff..ee527af 100644 --- a/source/conf.py +++ b/source/conf.py @@ -16,7 +16,7 @@ import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -sys.path.append(os.path.abspath('../ext')) +sys.path.insert(0, os.path.abspath('../ext')) # -- General configuration ----------------------------------------------------- @@ -24,9 +24,10 @@ sys.path.append(os.path.abspath('../ext')) # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'aafig', - 'fig', - 'ftable', + 'flt', + 'fixdl', 'vref', + 'pcodehl', 'sphinx.ext.graphviz', 'sphinx.ext.pngmath', ] @@ -91,7 +92,7 @@ exclude_trees = [] pygments_style = 'sphinx' # The default language to highlight source code in. The default is 'python'. -highlight_language = 'd' +highlight_language = 'pcode' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] @@ -196,11 +197,38 @@ latex_logo = None # Additional stuff for the LaTeX preamble. latex_preamble = r''' -\usepackage[draft]{varioref} % XXX: breaks PDF index, use [final] when done +\usepackage{epigraph} +\usepackage[final]{varioref} % XXX: breaks PDF index, use [final] when done \usepackage{subfig} + +% 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 +\renewcommand{\topfraction}{.7} +\renewcommand{\bottomfraction}{.7} +\renewcommand{\textfraction}{.05} +\renewcommand{\floatpagefraction}{.7} +\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 = [] @@ -213,3 +241,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} + ''' +