[2.7] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3700) · python/cpython@da86874 (original) (raw)

`@@ -83,13 +83,17 @@

`

83

83

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

`

84

84

``

85

85

`# Get LaTeX to handle Unicode correctly

`

86

``

`-

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

`

``

86

`+

latex_elements = {

`

``

87

`+

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

`

``

88

`+

'utf8extra': '',

`

``

89

`+

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

`

``

90

`+

}

`

87

91

``

88

92

`# Additional stuff for the LaTeX preamble.

`

89

93

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

`

90

94

`\authoraddress{

`

91

``

`-

\strong{Python Software Foundation}\

`

92

``

`-

Email: \email{docs@python.org}

`

``

95

`+

\sphinxstrong{Python Software Foundation}\

`

``

96

`+

Email: \sphinxemail{docs@python.org}

`

93

97

`}

`

94

98

`\let\Verbatim=\OriginalVerbatim

`

95

99

`\let\endVerbatim=\endOriginalVerbatim

`

`@@ -99,7 +103,7 @@

`

99

103

`latex_elements['papersize'] = 'a4'

`

100

104

``

101

105

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

`

102

``

`-

latex_elements['font_size'] = '10pt'

`

``

106

`+

latex_elements['pointsize'] = '10pt'

`

103

107

``

104

108

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

`

105

109

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

`