@@ -246,7 +246,7 @@ def __init__(self, **options):
246
246
#latex_font_size = '10pt'
247
247
248
248
# Latex references with page numbers (only Sphinx 1.0)
249
- latex_show_pagerefs = True
249
+ latex_show_pagerefs = False
250
250
251
251
# Grouping the document tree into LaTeX files. List of tuples
252
252
# (source start file, target name, title, author, document class [howto/manual]).
@@ -272,7 +272,7 @@ def __init__(self, **options):
272
272
273
273
274
274
# Additional stuff for the LaTeX preamble.
275
- latex_preamble = """
275
+ latex_preamble = r """
276
276
\definecolor{VerbatimColor}{rgb}{0.961, .98, 1.}
277
277
\definecolor{VerbatimBorderColor}{rgb}{0.6,0.6,0.6}
278
278
\setcounter{tocdepth}{1}
@@ -282,9 +282,47 @@ def __init__(self, **options):
282
282
\DeclareUnicodeCharacter{2461}{\ding{183}}
283
283
\DeclareUnicodeCharacter{2462}{\ding{184}}
284
284
\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
+ }
285
317
"""
286
318
287
319
latex_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}''' ,
288
326
'classoptions' : ',oneside,openany' ,
289
327
'babel' : '\usepackage[english]{babel}' ,
290
328
'releasename' : 'Edition' ,
0 commit comments