|
82 | 82 | # Options for LaTeX output
|
83 | 83 | # ------------------------
|
84 | 84 |
|
| 85 | +# Get LaTeX to handle Unicode correctly |
| 86 | +latex_elements = {'inputenc': r'\usepackage[utf8x]{inputenc}', 'utf8extra': ''} |
| 87 | + |
| 88 | +# Additional stuff for the LaTeX preamble. |
| 89 | +latex_elements['preamble'] = r''' |
| 90 | +\authoraddress{ |
| 91 | + \strong{Python Software Foundation}\\ |
| 92 | + |
| 93 | +} |
| 94 | +\let\Verbatim=\OriginalVerbatim |
| 95 | +\let\endVerbatim=\endOriginalVerbatim |
| 96 | +''' |
| 97 | + |
85 | 98 | # The paper size ('letter' or 'a4').
|
86 |
| -latex_paper_size = 'a4' |
| 99 | +latex_elements['papersize'] = 'a4' |
87 | 100 |
|
88 | 101 | # The font size ('10pt', '11pt' or '12pt').
|
89 |
| -latex_font_size = '10pt' |
| 102 | +latex_elements['font_size'] = '10pt' |
90 | 103 |
|
91 | 104 | # Grouping the document tree into LaTeX files. List of tuples
|
92 | 105 | # (source start file, target name, title, author, document class [howto/manual]).
|
|
119 | 132 | for fn in os.listdir('howto')
|
120 | 133 | if fn.endswith('.rst') and fn != 'index.rst')
|
121 | 134 |
|
122 |
| -# Additional stuff for the LaTeX preamble. |
123 |
| -latex_preamble = r''' |
124 |
| -\authoraddress{ |
125 |
| - \strong{Python Software Foundation}\\ |
126 |
| - |
127 |
| -} |
128 |
| -\let\Verbatim=\OriginalVerbatim |
129 |
| -\let\endVerbatim=\endOriginalVerbatim |
130 |
| -''' |
131 |
| - |
132 | 135 | # Documents to append as an appendix to all manuals.
|
133 | 136 | latex_appendices = ['glossary', 'about', 'license', 'copyright']
|
134 | 137 |
|
135 |
| -# Get LaTeX to handle Unicode correctly |
136 |
| -latex_elements = {'inputenc': r'\usepackage[utf8x]{inputenc}', 'utf8extra': ''} |
137 |
| - |
138 |
| - |
139 | 138 | # Options for Epub output
|
140 | 139 | # -----------------------
|
141 | 140 |
|
142 | 141 | epub_author = 'Python Documentation Authors'
|
143 | 142 | epub_publisher = 'Python Software Foundation'
|
144 | 143 |
|
145 |
| - |
146 | 144 | # Options for the coverage checker
|
147 | 145 | # --------------------------------
|
148 | 146 |
|
|
0 commit comments