From 1c2a2cd0014693f1e1f894e498c2dc50dbb44f66 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Thu, 3 May 2018 02:01:49 +0200 Subject: [PATCH] Fixed LaTeX errors on documentation PDF generation --- docs/flaskstyle.sty | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/flaskstyle.sty b/docs/flaskstyle.sty index 8a3f75c3..cd53c898 100644 --- a/docs/flaskstyle.sty +++ b/docs/flaskstyle.sty @@ -1,11 +1,17 @@ \definecolor{TitleColor}{rgb}{0,0,0} \definecolor{InnerLinkColor}{rgb}{0,0,0} +% Replace Unicode character 'PARTY POPPER' (U+1F389) with a non-breaking space. +% pdfLaTeX doesn't support Unicode. +\DeclareUnicodeCharacter{1F389}{\nobreakspace} + \renewcommand{\maketitle}{% \begin{titlepage}% \let\footnotesize\small \let\footnoterule\relax - \ifsphinxpdfoutput + % Apply following fix only on PDF output, i.e. pdfoutput macro is not + % undefined + \ifx\pdfoutput\undefined\else \begingroup % This \def is required to deal with multi-line authors; it % changes \\ to ', ' (comma-space), making it pass muster for