|
119 | 119 |
|
120 | 120 |
|
121 | 121 | # -- Options for LaTeX output --------------------------------------------- |
122 | | - |
123 | 122 | latex_elements = { |
124 | | - "preamble": """ |
125 | | -\\usepackage{xeCJK} |
126 | | -\\usepackage{indentfirst} |
127 | | -\\setlength{\\parindent}{2em} |
128 | | -\\setCJKmainfont{Noto Serif CJK SC} |
129 | | -\\setCJKmonofont[Scale=0.9]{Noto Sans Mono CJK SC} |
130 | | -\\setCJKfamilyfont{song}{Noto Sans CJK SC} |
131 | | -\\setCJKfamilyfont{sf}{Noto Sans CJK SC} |
132 | | -""" |
| 123 | +# The paper size ('letterpaper' or 'a4paper'). |
| 124 | +#'papersize': 'letterpaper', |
| 125 | + |
| 126 | +# The font size ('10pt', '11pt' or '12pt'). |
| 127 | +#'pointsize': '10pt', |
| 128 | + |
| 129 | +# Additional stuff for the LaTeX preamble. |
| 130 | +#'preamble': '', |
| 131 | +'preamble': r''' |
| 132 | +\hypersetup{unicode=true} |
| 133 | +\usepackage{CJKutf8} |
| 134 | +\DeclareUnicodeCharacter{00A0}{\nobreakspace} |
| 135 | +\DeclareUnicodeCharacter{2203}{\ensuremath{\exists}} |
| 136 | +\DeclareUnicodeCharacter{2200}{\ensuremath{\forall}} |
| 137 | +\DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}} |
| 138 | +\DeclareUnicodeCharacter{2713}{x} |
| 139 | +\DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}} |
| 140 | +\DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}} |
| 141 | +\DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}} |
| 142 | +\DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}} |
| 143 | +\DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}} |
| 144 | +\begin{CJK}{UTF8}{gbsn} |
| 145 | +\AtEndDocument{\end{CJK}} |
| 146 | +''', |
133 | 147 | } |
134 | 148 |
|
135 | | -# latex_elements = { |
136 | | -# # The paper size ('letterpaper' or 'a4paper'). |
137 | | -# # 'papersize': 'letterpaper', |
138 | | -# # The font size ('10pt', '11pt' or '12pt'). |
139 | | -# # 'pointsize': '10pt', |
140 | | -# # Additional stuff for the LaTeX preamble. |
141 | | -# # 'preamble': '', |
142 | | -# "preamble": r""" |
143 | | -# \hypersetup{unicode=true} |
144 | | -# \usepackage{CJKutf8} |
145 | | -# \DeclareUnicodeCharacter{00A0}{\nobreakspace} |
146 | | -# \DeclareUnicodeCharacter{2203}{\ensuremath{\exists}} |
147 | | -# \DeclareUnicodeCharacter{2200}{\ensuremath{\forall}} |
148 | | -# \DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}} |
149 | | -# \DeclareUnicodeCharacter{2713}{x} |
150 | | -# \DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}} |
151 | | -# \DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}} |
152 | | -# \DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}} |
153 | | -# \DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}} |
154 | | -# \DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}} |
155 | | -# \begin{CJK}{UTF8}{gbsn} |
156 | | -# \AtEndDocument{\end{CJK}} |
157 | | -# """ |
158 | | -# } |
159 | 149 |
|
160 | 150 | # Grouping the document tree into LaTeX files. List of tuples |
161 | 151 | # (source start file, target name, title, |
|
0 commit comments