From 68f1e2de530fd6e1cc0d4108f3b69f573c19333a Mon Sep 17 00:00:00 2001 From: Shangkun Shen Date: Tue, 12 Dec 2017 01:13:16 +0800 Subject: [PATCH] fix latex and latexpdf error * replace the tex engine to xetex * mistake of wrong build object of latex option, we should build the 'contents' file not the 'index' file. --- conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 2d7aabd3..648f54b2 100644 --- a/conf.py +++ b/conf.py @@ -30,6 +30,7 @@ htmlhelp_basename = 'google-styleguide' html_add_permalinks = None +latex_engine = 'xelatex' file_insertion_enabled = False on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: @@ -64,7 +65,7 @@ 'preamble' : r''' \usepackage{ctex} ''', } latex_documents = [ - ('index', 'google-styleguide.tex', u'Google 开源项目风格指南', + ('contents', 'google-styleguide.tex', u'Google 开源项目风格指南', u'', 'manual'), ]