X-Git-Url: https://git.llucax.com/z.facultad/75.00/informe.git/blobdiff_plain/ff1f4f6708660ee2391d26784307ce5c7467065f..881c40a0d92402f50fb43b1665179fbed979ff68:/source/conf.py diff --git a/source/conf.py b/source/conf.py index aab9d8b..d31a871 100644 --- a/source/conf.py +++ b/source/conf.py @@ -16,13 +16,21 @@ 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 ----------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['fig', 'vref', 'graphviz', 'sphinx.ext.pngmath'] +extensions = [ + 'aafig', + 'flt', + 'fixdl', + 'vref', + 'pcodehl', + 'sphinx.ext.graphviz', + 'sphinx.ext.pngmath', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['.templates'] @@ -38,7 +46,7 @@ master_doc = 'index' # General information about the project. project = u'tesis' -copyright = u'2009, Leandro Lucarella' +copyright = u'2010, Leandro Matías Lucarella' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -57,7 +65,7 @@ language = 'es' # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. -today_fmt = '%B de %Y' +today_fmt = 'Octubre 2010' # List of documents that shouldn't be included in the build. #unused_docs = [] @@ -83,6 +91,9 @@ exclude_trees = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +# The default language to highlight source code in. The default is 'python'. +highlight_language = 'pcode' + # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] @@ -167,18 +178,18 @@ htmlhelp_basename = 'tesisdoc' latex_paper_size = 'a4' # The font size ('10pt', '11pt' or '12pt'). -latex_font_size = '10pt' +latex_font_size = '11pt' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'tesis.tex', u'Recolección de basura en D', - u'Leandro Lucarella', 'manual'), + u'Leandro Matías Lucarella', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. -latex_logo = 'fiuba.png' +latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. @@ -186,14 +197,66 @@ latex_logo = 'fiuba.png' # Additional stuff for the LaTeX preamble. latex_preamble = r''' -\usepackage{varioref} -\usepackage{subfigure} +\usepackage{epigraph} +\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 +\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 = [] # If false, no module index is generated. latex_use_modindex = False +# aafig default options +aafig_default_options = dict( + proportional = True, + 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} + ''' +