@@ -246,7 +246,7 @@ def __init__(self, **options):
246246#latex_font_size = '10pt'
247247
248248# Latex references with page numbers (only Sphinx 1.0)
249- latex_show_pagerefs = True
249+ latex_show_pagerefs = False
250250
251251# Grouping the document tree into LaTeX files. List of tuples
252252# (source start file, target name, title, author, document class [howto/manual]).
@@ -272,7 +272,7 @@ def __init__(self, **options):
272272
273273
274274# Additional stuff for the LaTeX preamble.
275- latex_preamble = """
275+ latex_preamble = r """
276276\definecolor{VerbatimColor}{rgb}{0.961, .98, 1.}
277277\definecolor{VerbatimBorderColor}{rgb}{0.6,0.6,0.6}
278278\setcounter{tocdepth}{1}
@@ -282,9 +282,47 @@ def __init__(self, **options):
282282\DeclareUnicodeCharacter{2461}{\ding{183}}
283283\DeclareUnicodeCharacter{2462}{\ding{184}}
284284\DeclareUnicodeCharacter{2794}{\ding{229}}
285+
286+ \definecolor{Admonition}{RGB}{249,249,249}
287+
288+ \usepackage{ifthen}
289+ \usepackage{xcolor}
290+ \usepackage{fourier}
291+
292+ \makeatletter
293+ \renewenvironment{notice}[2]{%
294+ \def\thishead{}%
295+ \ifthenelse{\equal{#1}{tip}}%
296+ {\colorlet{thiscolor}{white}}%
297+ {\ifthenelse{\equal{#1}{warning}}
298+ {\colorlet{thiscolor}{red!10!white}%
299+ \def\thishead{\llap{\smash{\raisebox{-1em}{\small\danger~\,~}}}}}%
300+ {\colorlet{thiscolor}{Admonition}}%
301+ }%
302+ \begin{lrbox}{\@tempboxa}\begin{minipage}{\columnwidth}%
303+ \thishead%
304+ }{%
305+ \end{minipage}\end{lrbox}%
306+ \colorbox{thiscolor}{\usebox{\@tempboxa}}%
307+ }
308+
309+ \makeatother
310+
311+ \def\shadowbox#1{\rule{\linewidth}{1pt}\nopagebreak
312+
313+ \nopagebreak#1\nopagebreak
314+
315+ \nopagebreak\rule{\linewidth}{1pt}
316+ }
285317"""
286318
287319latex_elements = {
320+ 'fontpkg' : '\\ usepackage{lmodern}' ,
321+ 'fncychap' : r'''%
322+ \usepackage[Sonny]{fncychap}%
323+ \ChRuleWidth{1.5pt}%
324+ \ChNumVar{\fontsize{76}{80}\sffamily\slshape}
325+ \ChTitleVar{\raggedleft\Huge\sffamily\bfseries}''' ,
288326 'classoptions' : ',oneside,openany' ,
289327 'babel' : '\usepackage[english]{babel}' ,
290328 'releasename' : 'Edition' ,
0 commit comments