Navigation Menu

Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
quickapps committed Mar 12, 2017
1 parent 25c0d39 commit f2241f2
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions config/all.py
Expand Up @@ -185,12 +185,6 @@

# -- Options for LaTeX output ---------------------------------------------

# The paper size ('letter' or 'a4').
#latex_paper_size = 'letter'

# The font size ('10pt', '11pt' or '12pt').
latex_font_size = '11pt'

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
Expand Down Expand Up @@ -219,7 +213,23 @@
# If false, no module index is generated.
#latex_domain_indices = True

preamb = ur'''
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
'pointsize': '11pt',

'fncychap': '\\usepackage[Sonny]{fncychap}',

# Additional stuff for the LaTeX preamble.
'preamble': r'''
% Packages
\usepackage[utf8]{inputenc}
% Misc
\DeclareUnicodeCharacter{2010}{-}% support older LaTeX versions
% Custom colors.
\definecolor{ChapterColor}{RGB}{201,36,52}
\definecolor{TitleColor}{RGB}{0,0,0}
Expand All @@ -239,11 +249,7 @@
% background and border for code examples.
\definecolor{VerbatimColor}{RGB}{242,242,242}
\definecolor{VerbatimBorderColor}{RGB}{230,230,230}
'''

latex_elements = {
'preamble': preamb,
'fncychap': '\\usepackage[Sonny]{fncychap}'
''',
}

# -- Options for manual page output ---------------------------------------
Expand Down Expand Up @@ -330,9 +336,9 @@

# A list of files that should not be packed into the epub file.
epub_exclude_files = [
'index.html',
'pdf-contents.html',
'contents.html'
'index.html',
'pdf-contents.html',
'contents.html'
]

# The depth of the table of contents in toc.ncx.
Expand Down

0 comments on commit f2241f2

Please sign in to comment.