support chinese

This commit is contained in:
Dongdong Tian 2014-03-01 13:46:49 +08:00
parent 6a560eac42
commit 8460b399be

View File

@ -58,7 +58,7 @@ release = '1.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
language = 'zh_CN'
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
@ -192,7 +192,12 @@ latex_elements = {
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
'preamble': r'''
\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
''',
}
# Grouping the document tree into LaTeX files. List of tuples