doc: fix sphinx warning
authorThomas Monjalon <thomas@monjalon.net>
Wed, 19 Apr 2017 12:00:29 +0000 (14:00 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Apr 2017 13:33:51 +0000 (15:33 +0200)
Seen with recent version of sphinx:
WARNING: latex_preamble conflicts with latex_elements['preamble'], ignored.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/conf.py

index 01ce16d..ef0e1c6 100644 (file)
@@ -79,7 +79,7 @@ latex_documents = [
 ]
 
 # Latex directives to be included directly in the latex/pdf docs.
-latex_preamble = r"""
+custom_latex_preamble = r"""
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{helvet}
@@ -95,7 +95,7 @@ latex_elements = {
     'classoptions': ',openany,oneside',
     'babel': '\\usepackage[english]{babel}',
     # customize Latex formatting
-    'preamble': latex_preamble
+    'preamble': custom_latex_preamble
 }