summaryrefslogtreecommitdiffstats
path: root/Documentation/conf.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-23 03:05:43 -0400
committerJonathan Corbet <corbet@lwn.net>2017-08-24 15:23:31 -0400
commit5148e6ab76ea38e5c06376afb1340acdced52e4c (patch)
treebfce81e2bf0cb90631f1ff3bda48469c25dfeb89 /Documentation/conf.py
parent92a037f01ab3e7b8e5b0533faf42d4bbfce04e98 (diff)
docs-rst: pdf: use same vertical margin on all Sphinx versions
Currently, on Sphinx up to version 1.4, pdf output uses a vertical margin of 1 inch. For upper versions, it uses a margin of 0.5 inches. That causes both page headers and footers to be very close to the margin of the sheet. Not all printers support writing like that. Also, there's no reason why the layout for newer versions would be different than for previous ones. So, standardize it, by always setting to 1 inch. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r--Documentation/conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 71b032bb44fd..8e74d68037a5 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -344,7 +344,7 @@ if major == 1 and minor > 3:
344if major == 1 and minor <= 4: 344if major == 1 and minor <= 4:
345 latex_elements['preamble'] += '\\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry}' 345 latex_elements['preamble'] += '\\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry}'
346elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)): 346elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)):
347 latex_elements['sphinxsetup'] = 'hmargin=0.5in, vmargin=0.5in' 347 latex_elements['sphinxsetup'] = 'hmargin=0.5in, vmargin=1in'
348 348
349 349
350# Grouping the document tree into LaTeX files. List of tuples 350# Grouping the document tree into LaTeX files. List of tuples