diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/conf.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index 9eff2c8f7f67..71b032bb44fd 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py | |||
@@ -271,8 +271,6 @@ latex_elements = { | |||
271 | 271 | ||
272 | # Additional stuff for the LaTeX preamble. | 272 | # Additional stuff for the LaTeX preamble. |
273 | 'preamble': ''' | 273 | 'preamble': ''' |
274 | % Adjust margins | ||
275 | \\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry} | ||
276 | \\usepackage{ifthen} | 274 | \\usepackage{ifthen} |
277 | 275 | ||
278 | % Allow generate some pages in landscape | 276 | % Allow generate some pages in landscape |
@@ -343,6 +341,12 @@ latex_elements = { | |||
343 | if major == 1 and minor > 3: | 341 | if major == 1 and minor > 3: |
344 | latex_elements['preamble'] += '\\renewcommand*{\\DUrole}[2]{ #2 }\n' | 342 | latex_elements['preamble'] += '\\renewcommand*{\\DUrole}[2]{ #2 }\n' |
345 | 343 | ||
344 | if major == 1 and minor <= 4: | ||
345 | latex_elements['preamble'] += '\\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry}' | ||
346 | elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)): | ||
347 | latex_elements['sphinxsetup'] = 'hmargin=0.5in, vmargin=0.5in' | ||
348 | |||
349 | |||
346 | # Grouping the document tree into LaTeX files. List of tuples | 350 | # Grouping the document tree into LaTeX files. List of tuples |
347 | # (source start file, target name, title, | 351 | # (source start file, target name, title, |
348 | # author, documentclass [howto, manual, or own class]). | 352 | # author, documentclass [howto, manual, or own class]). |