From: Mauro Carvalho Chehab Date: Wed, 23 Aug 2017 07:05:43 +0000 (-0300) Subject: docs-rst: pdf: use same vertical margin on all Sphinx versions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5148e6ab76ea38e5c06376afb1340acdced52e4c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jonathan Corbet --- 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: if major == 1 and minor <= 4: latex_elements['preamble'] += '\\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry}' elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)): - latex_elements['sphinxsetup'] = 'hmargin=0.5in, vmargin=0.5in' + latex_elements['sphinxsetup'] = 'hmargin=0.5in, vmargin=1in' # Grouping the document tree into LaTeX files. List of tuples