Skip to content

Commit

Permalink
fix latex and latexpdf error
Browse files Browse the repository at this point in the history
* replace the tex engine to xetex
* mistake of wrong build object of latex option, we should build the
'contents' file not the 'index' file.
  • Loading branch information
polossk committed Dec 11, 2017
1 parent ab5d02b commit 68f1e2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -64,7 +65,7 @@
'preamble' : r''' \usepackage{ctex} ''',
}
latex_documents = [
('index', 'google-styleguide.tex', u'Google 开源项目风格指南',
('contents', 'google-styleguide.tex', u'Google 开源项目风格指南',
u'', 'manual'),
]

Expand Down

0 comments on commit 68f1e2d

Please sign in to comment.