Skip to content

Commit ac5a31e

Browse files
committed
src/doc/**/conf.py: let a_tour_of_sage.pdf wrap long decimal expansions
1 parent 1be0a58 commit ac5a31e

File tree

10 files changed

+62
-5
lines changed

10 files changed

+62
-5
lines changed

src/doc/de/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@
5252
("index", name + ".tex", "Ein Rundgang durch Sage",
5353
"The Sage Development Team", "manual"),
5454
]
55+
56+
# PDF output: let long decimal expansions in code-blocks wrap rather than
57+
# overflow beyond page margin
58+
latex_elements = {
59+
'sphinxsetup': 'verbatimforcewraps=true',
60+
}

src/doc/el/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@
4949
('index', name + '.tex', project,
5050
'The Sage Development Team', 'manual'),
5151
]
52+
53+
# PDF output: let long decimal expansions in code-blocks wrap rather than
54+
# overflow beyond page margin
55+
latex_elements = {
56+
'sphinxsetup': 'verbatimforcewraps=true',
57+
}

src/doc/en/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,9 @@
4848
('index', 'a_tour_of_sage.tex', 'A Tour Of Sage',
4949
'The Sage Development Team', 'manual'),
5050
]
51+
52+
# PDF output: let long decimal expansions in code-blocks wrap rather than
53+
# overflow beyond page margin
54+
latex_elements = {
55+
'sphinxsetup': 'verbatimforcewraps=true',
56+
}

src/doc/es/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@
5454
'A Tour Of Sage',
5555
'The Sage Development Team',
5656
'manual')]
57+
58+
# PDF output: let long decimal expansions in code-blocks wrap rather than
59+
# overflow beyond page margin
60+
latex_elements = {
61+
'sphinxsetup': 'verbatimforcewraps=true',
62+
}

src/doc/fr/a_tour_of_sage/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
'The Sage Development Team', 'manual'),
5151
]
5252

53-
# the definition of \\at in the standard preamble of the sphinx doc
54-
# conflicts with that in babel/french[b]
55-
latex_elements['preamble'] += '\\let\\at\\undefined'
53+
# PDF output: let long decimal expansions in code-blocks wrap rather than
54+
# overflow beyond page margin
55+
latex_elements = {
56+
'sphinxsetup': 'verbatimforcewraps=true',
57+
}

src/doc/hu/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@
5353
('index', name + '.tex', 'A Tour Of Sage',
5454
'The Sage Development Team', 'manual'),
5555
]
56+
57+
# PDF output: let long decimal expansions in code-blocks wrap rather than
58+
# overflow beyond page margin
59+
latex_elements = {
60+
'sphinxsetup': 'verbatimforcewraps=true',
61+
}

src/doc/it/a_tour_of_sage/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,19 @@
5151
'The Sage Development Team', 'manual'),
5252
]
5353

54+
55+
# PDF output: let long decimal expansions in code-blocks wrap rather than
56+
# overflow beyond page margin
57+
latex_elements = {
58+
'sphinxsetup': 'verbatimforcewraps=true',
59+
# TODO: check if the following is valid currently
5460
# Our Sphinx expects the older behavior of babel-italian where double
5561
# quotes are active
56-
latex_elements['preamble'] += r"""
62+
'preamble': r"""
5763
% old babel-italian does not have setactivedoublequote,
5864
% avoid "undefined control sequence" error
5965
\providecommand{\setactivedoublequote}{}
6066
% switch new babel-italian to the old behavior
6167
\setactivedoublequote
62-
"""
68+
""",
69+
}

src/doc/ja/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@
5353
('index', name + '.tex', project,
5454
'The Sage Group', 'manual'),
5555
]
56+
57+
# PDF output: let long decimal expansions in code-blocks wrap rather than
58+
# overflow beyond page margin
59+
latex_elements = {
60+
'sphinxsetup': 'verbatimforcewraps=true',
61+
}

src/doc/pt/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@
5050
('index', name + '.tex', 'A Tour Of Sage',
5151
'The Sage Development Team', 'manual'),
5252
]
53+
54+
# PDF output: let long decimal expansions in code-blocks wrap rather than
55+
# overflow beyond page margin
56+
latex_elements = {
57+
'sphinxsetup': 'verbatimforcewraps=true',
58+
}

src/doc/tr/a_tour_of_sage/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@
4949
('index', name + '.tex', 'Sage Turu',
5050
'The Sage Development Team', 'manual'),
5151
]
52+
53+
# PDF output: let long decimal expansions in code-blocks wrap rather than
54+
# overflow beyond page margin
55+
latex_elements = {
56+
'sphinxsetup': 'verbatimforcewraps=true',
57+
}

0 commit comments

Comments
 (0)