Fix Unicode Character U+229E (SQUARED PLUS) breaks Sphinx docs in LaTeX

refs: PR #4794
This commit is contained in:
jfbu 2018-03-30 00:11:17 +02:00
parent 1460e261fa
commit 39ce9d9ab9

View File

@ -58,6 +58,7 @@ latex_logo = '_static/sphinx.png'
latex_elements = {
'fontpkg': '\\usepackage{palatino}',
'passoptionstopackages': '\\PassOptionsToPackage{svgnames}{xcolor}',
'preamble': '\\DeclareUnicodeCharacter{229E}{\\ensuremath{\\boxplus}}',
# fix missing index entry due to RTD doing only once pdflatex after makeindex
'printindex': r'''
\IfFileExists{\jobname.ind}