summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2021-08-10 16:36:53 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2021-08-20 21:17:50 +0200
commit356133d321bac6326c6b301bb0e1b3ab54eceb70 (patch)
treef12b08f79528e78f2534145e6c0ba56159108e35
parentc302c157d5dd1c32ff47e1ba774c310a3f1f7dc4 (diff)
downloadrockbox-356133d321bac6326c6b301bb0e1b3ab54eceb70.tar.gz
rockbox-356133d321bac6326c6b301bb0e1b3ab54eceb70.zip
manual: Add workaround for older KOMAscript versions.
KOMAscript 3.28 changes \ifpdfoutput to \Ifpdfoutput. Add a check and redefine the new command as the old one if it's missing since only the name was changed. Not all Linux distros have a recent enough version yet. Change-Id: Ie709a1c85f10e1ddebb703ae50d3539f1aeee8bb
-rw-r--r--manual/preamble.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 9dc67dd25a..2d49623a57 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -77,6 +77,14 @@
77\usepackage{makeidx} 77\usepackage{makeidx}
78\usepackage{fancyvrb} 78\usepackage{fancyvrb}
79\usepackage{color} 79\usepackage{color}
80
81% Ifpdfoutput is part of KOMAscript 3.28, in earlier versions it's ifpdfoutput.
82% We use Ifpdfoutput, so redefine it here for old KOMAscript versions.
83% See also https://ctan.org/ctan-ann/id/mailman.2801.1577740444.2586.ctan-ann@ctan.org
84\ifdefined\Ifpdfoutput%
85\else\newcommand{\Ifpdfoutput}{\ifpdfoutput}%
86\fi
87
80\Ifpdfoutput{\usepackage{booktabs}}% 88\Ifpdfoutput{\usepackage{booktabs}}%
81 {\newcommand{% 89 {\newcommand{%
82 \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}% 90 \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}%