From 8460b399be39ad5cf9e06c15c322571f629d4e56 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sat, 1 Mar 2014 13:46:49 +0800 Subject: [PATCH] support chinese --- source/conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/conf.py b/source/conf.py index 7d927b8..8094a78 100644 --- a/source/conf.py +++ b/source/conf.py @@ -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