support chinese
This commit is contained in:
parent
6a560eac42
commit
8460b399be
@ -58,7 +58,7 @@ release = '1.0'
|
|||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
#language = None
|
language = 'zh_CN'
|
||||||
|
|
||||||
# There are two options for replacing |today|: either, you set today to some
|
# There are two options for replacing |today|: either, you set today to some
|
||||||
# non-false value, then it is used:
|
# non-false value, then it is used:
|
||||||
@ -192,7 +192,12 @@ latex_elements = {
|
|||||||
#'pointsize': '10pt',
|
#'pointsize': '10pt',
|
||||||
|
|
||||||
# Additional stuff for the LaTeX preamble.
|
# 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
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user