|
1 | 1 | # -*- coding: utf-8 -*-
|
2 | 2 |
|
3 |
| -from __future__ import unicode_literals |
4 | 3 | #
|
5 | 4 | # python-parallel-programming-cookbook-cn documentation build configuration file, created by
|
6 | 5 | # sphinx-quickstart on Wed Sep 13 16:33:44 2017.
|
|
56 | 55 | #
|
57 | 56 | # The short X.Y version.
|
58 | 57 | version = u'1.0'
|
| 58 | + |
59 | 59 | # The full version, including alpha/beta/rc tags.
|
60 | 60 | release = u'1.0'
|
61 | 61 |
|
|
122 | 122 |
|
123 | 123 | latex_elements = {
|
124 | 124 | # The paper size ('letterpaper' or 'a4paper').
|
125 |
| - # |
126 |
| - # 'papersize': 'letterpaper', |
| 125 | + #'papersize': 'letterpaper', |
127 | 126 |
|
128 | 127 | # The font size ('10pt', '11pt' or '12pt').
|
129 |
| - # |
130 |
| - # 'pointsize': '10pt', |
| 128 | + #'pointsize': '10pt', |
131 | 129 |
|
132 | 130 | # Additional stuff for the LaTeX preamble.
|
133 |
| - # |
134 |
| - # 'preamble': '', |
135 |
| - |
136 |
| - # Latex figure (float) alignment |
137 |
| - # |
138 |
| - # 'figure_align': 'htbp', |
| 131 | + #'preamble': '', |
| 132 | + 'preamble': r''' |
| 133 | + \hypersetup{unicode=true} |
| 134 | + \usepackage{CJKutf8} |
| 135 | + \DeclareUnicodeCharacter{00A0}{\nobreakspace} |
| 136 | + \DeclareUnicodeCharacter{2203}{\ensuremath{\exists}} |
| 137 | + \DeclareUnicodeCharacter{2200}{\ensuremath{\forall}} |
| 138 | + \DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}} |
| 139 | + \DeclareUnicodeCharacter{2713}{x} |
| 140 | + \DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}} |
| 141 | + \DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}} |
| 142 | + \DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}} |
| 143 | + \DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}} |
| 144 | + \DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}} |
| 145 | + \begin{CJK}{UTF8}{gbsn} |
| 146 | + \AtEndDocument{\end{CJK}} |
| 147 | + ''', |
139 | 148 | }
|
140 | 149 |
|
141 | 150 | # Grouping the document tree into LaTeX files. List of tuples
|
|
168 | 177 | 'Miscellaneous'),
|
169 | 178 | ]
|
170 | 179 |
|
171 |
| -rst_epilog = """ |
| 180 | +rst_epilog = u""" |
172 | 181 |
|
173 | 182 | .. |how| replace:: 如何做...
|
174 | 183 | .. |ready| replace:: 准备
|
|
0 commit comments