From cadefaf7eeeb5df4049ed89b914ff897f5ed09df Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sat, 1 Jun 2019 12:55:52 -0400 Subject: [PATCH] Fix PDF build --- source/conf.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/source/conf.py b/source/conf.py index bcc9d99..2c43702 100644 --- a/source/conf.py +++ b/source/conf.py @@ -152,20 +152,22 @@ htmlhelp_basename = 'Makefiledoc' latex_engine="xelatex" latex_elements = { 'papersize' : 'a4paper', - 'utf8extra' : '', - 'inputenc' : '', + 'figure_align' : 'H', + 'fncychap' : '', # use default chapter style from ctex + 'babel' : '', + 'polyglossia': '', + 'fontpkg' : '', 'cmappkg' : '', 'fontenc' : '', - 'releasename' : 'By SeisMan@GitHub', + 'utf8extra' : '', + 'inputenc' : '', 'release' : '', - 'babel' : r'''\usepackage[english]{babel}''', + 'maketitle' : '\\maketitle', 'preamble' : r''' \usepackage{ctex} \parindent 2em \setcounter{tocdepth}{3} - \renewcommand\familydefault{\ttdefault} - \renewcommand\CJKfamilydefault{\CJKrmdefault} - ''', + ''' } # Grouping the document tree into LaTeX files. List of tuples