summaryrefslogtreecommitdiffstats
path: root/manual/preamble.tex
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2010-07-18 14:34:54 +0000
committerMarianne Arnold <pixelma@rockbox.org>2010-07-18 14:34:54 +0000
commitc2273cf5e2bdf0902d6b375155c49326e623669b (patch)
tree2f4dadd41a43fb011d982f4b923235c47478027c /manual/preamble.tex
parent3663213520159e5e9f93d3265209dbcef22e48b2 (diff)
downloadrockbox-c2273cf5e2bdf0902d6b375155c49326e623669b.tar.gz
rockbox-c2273cf5e2bdf0902d6b375155c49326e623669b.zip
Fix broken (html) manual: set seriesimg globally in preamble.tex to \specimg if it isn't defined in a target's platform file, otherwise tex tries to check for it and doesn't know which string to take.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27481 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r--manual/preamble.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 1027a99b36..5394c63bf1 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -157,6 +157,13 @@
% \specimg or \seriesimg are possible options set in the platform files
% Files will be used in the following order: 1.filename contains \specimg part
% 2. filename contains \seriesimg part, 3. filename without the third part
+
+% set seriesimg if it isn't defined in the platform file to not break manuals
+\ifdefined\seriesimg
+\else
+ \newcommand{\seriesimg}{\specimg}
+\fi
+
\newcommand{\screenshot}[3]{
\begin{figure}[H]
\begin{center}