Skip to content

Commit cf980d4

Browse files
committed
conf修正
1 parent fa087b0 commit cf980d4

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

source/c10/p14_creating_new_python_environment.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ By default, virtual environments are completely clean and contain no third-party
7979
If you would like to include already installed packages as part of a virtual environment,
8080
create the environment using the --system-site-packages option. For example:
8181

82-
.. code-block:: python'
82+
.. code-block:: python
8383
8484
bash % pyvenv --system-site-packages Spam
8585
bash %

source/conf.py

+24-19
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
# General information about the project.
4646
project = u'python3-cookbook'
47-
copyright = u'2014, Xiong Neng'
47+
copyright = u'熊能,2015'
4848

4949
# The version info for the project you're documenting, acts as replacement for
5050
# |version| and |release|, also used in various other places throughout the
@@ -57,7 +57,7 @@
5757

5858
# The language for content autogenerated by Sphinx. Refer to documentation
5959
# for a list of supported languages.
60-
language = 'zh_CN'
60+
# language = 'zh_CN'
6161

6262
# There are two options for replacing |today|: either, you set today to some
6363
# non-false value, then it is used:
@@ -85,7 +85,7 @@
8585
#show_authors = False
8686

8787
# The name of the Pygments (syntax highlighting) style to use.
88-
pygments_style = 'sphinx'
88+
# pygments_style = 'sphinx'
8989

9090
# A list of ignored prefixes for module index sorting.
9191
#modindex_common_prefix = []
@@ -176,27 +176,32 @@
176176
#html_file_suffix = None
177177

178178
# Output file base name for HTML help builder.
179-
htmlhelp_basename = 'python3-cookbookdoc'
180-
179+
htmlhelp_basename = 'python3-cookbook doc'
181180

182181
# -- Options for LaTeX output ---------------------------------------------
183182

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+
"""}
194199

195200
# Grouping the document tree into LaTeX files. List of tuples
196201
# (source start file, target name, title,
197202
# author, documentclass [howto, manual, or own class]).
198203
latex_documents = [
199-
('index', 'python3-cookbook.tex', u'python3-cookbook Documentation',
204+
('index', 'python3-cookbook.tex', u'《Python Cookbook》第三版',
200205
u'Xiong Neng', 'manual'),
201206
]
202207

@@ -226,7 +231,7 @@
226231
# One entry per manual page. List of tuples
227232
# (source start file, name, description, authors, manual section).
228233
man_pages = [
229-
('index', 'python3-cookbook', u'python3-cookbook Documentation',
234+
('index', 'python3-cookbook', u'《Python Cookbook》第三版',
230235
[u'Xiong Neng'], 1)
231236
]
232237

@@ -240,8 +245,8 @@
240245
# (source start file, target name, title, author,
241246
# dir menu entry, description, category)
242247
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》第三版',
245250
'Miscellaneous'),
246251
]
247252

0 commit comments

Comments
 (0)