[3.6] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3699) · python/cpython@6de3584 (original) (raw)

`@@ -89,13 +89,17 @@

`

89

89

`# ------------------------

`

90

90

``

91

91

`# Get LaTeX to handle Unicode correctly

`

92

``

`-

latex_elements = {'inputenc': r'\usepackage[utf8x]{inputenc}', 'utf8extra': ''}

`

``

92

`+

latex_elements = {

`

``

93

`+

'inputenc': r'\usepackage[utf8x]{inputenc}',

`

``

94

`+

'utf8extra': '',

`

``

95

`+

'fontenc': r'\usepackage[T1,T2A]{fontenc}',

`

``

96

`+

}

`

93

97

``

94

98

`# Additional stuff for the LaTeX preamble.

`

95

99

`latex_elements['preamble'] = r'''

`

96

100

`\authoraddress{

`

97

``

`-

\strong{Python Software Foundation}\

`

98

``

`-

Email: \email{docs@python.org}

`

``

101

`+

\sphinxstrong{Python Software Foundation}\

`

``

102

`+

Email: \sphinxemail{docs@python.org}

`

99

103

`}

`

100

104

`\let\Verbatim=\OriginalVerbatim

`

101

105

`\let\endVerbatim=\endOriginalVerbatim

`

`@@ -105,7 +109,7 @@

`

105

109

`latex_elements['papersize'] = 'a4'

`

106

110

``

107

111

`# The font size ('10pt', '11pt' or '12pt').

`

108

``

`-

latex_elements['font_size'] = '10pt'

`

``

112

`+

latex_elements['pointsize'] = '10pt'

`

109

113

``

110

114

`# Grouping the document tree into LaTeX files. List of tuples

`

111

115

`# (source start file, target name, title, author, document class [howto/manual]).

`