From 1f7203d6155d473173dd4ba98cb81c46c6c1b5c8 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 22 May 2019 19:55:24 +0200 Subject: [PATCH] doc: robustify PDF build In some environment like the current dpdk.org server, there can be some errors due to symbols in titles, as it was the case before this commit in DPDK 18.05: commit 551d148944dc ("doc: remove flow API migration section") ! LaTeX Error: Bad math environment delimiter. It can be avoided thanks to the Latex command \robustify. Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: John McNamara --- doc/guides/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/conf.py b/doc/guides/conf.py index a85f6c9d99..6d5001a07b 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -67,6 +67,9 @@ custom_latex_preamble = r""" \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} \RecustomVerbatimEnvironment{Verbatim}{Verbatim}{xleftmargin=5mm} +\usepackage{etoolbox} +\robustify\( +\robustify\) """ # Configuration for the latex/pdf docs. -- 2.20.1