From 0fbc5730fd1f9f9455db7a1f7814f3b1812dd766 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Sun, 11 Sep 2022 13:55:51 +0800 Subject: [PATCH] support Chinese --- doc/source/conf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4da35ed..daeb4f6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -56,4 +56,11 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] \ No newline at end of file +html_static_path = ['_static'] + +# -- Support Chinese ------------------------------------------------------- +latex_engine = 'xelatex' +latex_use_xindy = False +latex_elements = { + 'preamble': '\\usepackage[UTF8]{ctex}\n', +} \ No newline at end of file -- GitLab