]> git.llucax.com Git - z.facultad/75.00/informe.git/commitdiff
Agregar estilo para imprimir
authorLeandro Lucarella <llucax@gmail.com>
Sun, 24 Oct 2010 03:37:50 +0000 (00:37 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 25 Oct 2010 19:33:32 +0000 (16:33 -0300)
ext/pygsty.py [new file with mode: 0644]
source/conf.py

diff --git a/ext/pygsty.py b/ext/pygsty.py
new file mode 100644 (file)
index 0000000..53cf3d8
--- /dev/null
@@ -0,0 +1,21 @@
+
+from pygments.token import *
+from pygments.style import Style
+
+class PrintStyle(Style):
+       background_color = '#FFF'
+       default_style = '#444'
+       styles = {
+               Generic: '#444',
+               Comment: 'bold italic #888',
+               Keyword: 'bold #444',
+               Keyword.Type: 'noinherit nobold italic #444',
+               Keyword.Constant: 'noinherit nobold italic #444',
+               Name: '#444',
+               Name.Builtin: 'noinherit nobold italic #000',
+               Number: '#000',
+               Operator: '#000',
+               Punctuation: '#000',
+               String: 'italic #444 bg:#e6e6e6',
+       }
+
index f3c7f2c049af92f294595f534d0c3dcc9fd5e19d..ee527af2491604e3a683b8bbeb946434ba615179 100644 (file)
@@ -200,6 +200,7 @@ latex_preamble = r'''
 \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
@@ -210,10 +211,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 +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}
+       '''
+