We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ef2e0 commit a000a29Copy full SHA for a000a29
.readthedocs.yaml
@@ -16,6 +16,7 @@ build:
16
# golang: "1.19"
17
apt_packages:
18
- fontconfig
19
+ - fonts-noto-cjk
20
21
# Build documentation in the "docs/" directory with Sphinx
22
sphinx:
source/conf.py
@@ -28,7 +28,13 @@
28
29
30
latex_engine = 'xelatex'
31
-latex_use_xindy = False
32
latex_elements = {
33
- 'preamble': '\\usepackage[UTF8]{ctex}\n',
+ 'preamble': r'''
+\usepackage{xeCJK}
34
+\setCJKmainfont[BoldFont=Noto Sans CJK TC, ItalicFont=Noto Serif CJK TC]{Noto Sans CJK TC}
35
+\setCJKsansfont{Noto Sans CJK TC}
36
+\setCJKmonofont{Noto Sans Mono CJK TC}
37
+\XeTeXlinebreaklocale "zh"
38
+\XeTeXlinebreakskip = 0pt plus 1pt
39
+''',
40
}
0 commit comments