|
44 | 44 |
|
45 | 45 | # General information about the project.
|
46 | 46 | project = u'python3-cookbook'
|
47 |
| -copyright = u'2014, Xiong Neng' |
| 47 | +copyright = u'熊能,2015' |
48 | 48 |
|
49 | 49 | # The version info for the project you're documenting, acts as replacement for
|
50 | 50 | # |version| and |release|, also used in various other places throughout the
|
|
57 | 57 |
|
58 | 58 | # The language for content autogenerated by Sphinx. Refer to documentation
|
59 | 59 | # for a list of supported languages.
|
60 |
| -language = 'zh_CN' |
| 60 | +# language = 'zh_CN' |
61 | 61 |
|
62 | 62 | # There are two options for replacing |today|: either, you set today to some
|
63 | 63 | # non-false value, then it is used:
|
|
85 | 85 | #show_authors = False
|
86 | 86 |
|
87 | 87 | # The name of the Pygments (syntax highlighting) style to use.
|
88 |
| -pygments_style = 'sphinx' |
| 88 | +# pygments_style = 'sphinx' |
89 | 89 |
|
90 | 90 | # A list of ignored prefixes for module index sorting.
|
91 | 91 | #modindex_common_prefix = []
|
|
176 | 176 | #html_file_suffix = None
|
177 | 177 |
|
178 | 178 | # Output file base name for HTML help builder.
|
179 |
| -htmlhelp_basename = 'python3-cookbookdoc' |
180 |
| - |
| 179 | +htmlhelp_basename = 'python3-cookbook doc' |
181 | 180 |
|
182 | 181 | # -- Options for LaTeX output ---------------------------------------------
|
183 | 182 |
|
184 |
| -latex_elements = { |
185 |
| -# The paper size ('letterpaper' or 'a4paper'). |
186 |
| -#'papersize': 'letterpaper', |
187 |
| - |
188 |
| -# The font size ('10pt', '11pt' or '12pt'). |
189 |
| -#'pointsize': '10pt', |
190 |
| - |
191 |
| -# Additional stuff for the LaTeX preamble. |
192 |
| -#'preamble': '', |
193 |
| -} |
| 183 | +latex_elements={# The paper size ('letterpaper' or 'a4paper'). |
| 184 | +'papersize':'a4paper',# The font size ('10pt', '11pt' or '12pt'). |
| 185 | +'pointsize':'12pt','classoptions':',oneside','babel':'',#必須 |
| 186 | +'inputenc':'',#必須 |
| 187 | +'utf8extra':'',#必須 |
| 188 | +'preamble': r""" |
| 189 | +\usepackage{xeCJK} |
| 190 | +\usepackage{indentfirst} |
| 191 | +\setlength{\parindent}{2em} |
| 192 | +\setCJKmainfont{WenQuanYi Micro Hei} |
| 193 | +\setCJKmonofont[Scale=0.9]{WenQuanYi Micro Hei Mono} |
| 194 | +\setCJKfamilyfont{song}{WenQuanYi Micro Hei} |
| 195 | +\setCJKfamilyfont{sf}{WenQuanYi Micro Hei} |
| 196 | +\XeTeXlinebreaklocale "zh" |
| 197 | +\XeTeXlinebreakskip = 0pt plus 1pt |
| 198 | +"""} |
194 | 199 |
|
195 | 200 | # Grouping the document tree into LaTeX files. List of tuples
|
196 | 201 | # (source start file, target name, title,
|
197 | 202 | # author, documentclass [howto, manual, or own class]).
|
198 | 203 | latex_documents = [
|
199 |
| - ('index', 'python3-cookbook.tex', u'python3-cookbook Documentation', |
| 204 | + ('index', 'python3-cookbook.tex', u'《Python Cookbook》第三版', |
200 | 205 | u'Xiong Neng', 'manual'),
|
201 | 206 | ]
|
202 | 207 |
|
|
226 | 231 | # One entry per manual page. List of tuples
|
227 | 232 | # (source start file, name, description, authors, manual section).
|
228 | 233 | man_pages = [
|
229 |
| - ('index', 'python3-cookbook', u'python3-cookbook Documentation', |
| 234 | + ('index', 'python3-cookbook', u'《Python Cookbook》第三版', |
230 | 235 | [u'Xiong Neng'], 1)
|
231 | 236 | ]
|
232 | 237 |
|
|
240 | 245 | # (source start file, target name, title, author,
|
241 | 246 | # dir menu entry, description, category)
|
242 | 247 | texinfo_documents = [
|
243 |
| - ('index', 'python3-cookbook', u'python3-cookbook Documentation', |
244 |
| - u'Xiong Neng', 'python3-cookbook', 'One line description of project.', |
| 248 | + ('index', 'python3-cookbook', u'《Python Cookbook》第三版', |
| 249 | + u'Xiong Neng', 'python3-cookbook', '《Python Cookbook》第三版', |
245 | 250 | 'Miscellaneous'),
|
246 | 251 | ]
|
247 | 252 |
|
|
0 commit comments