summaryrefslogtreecommitdiffstats
path: root/manual/rockbox_interface/main.tex
diff options
context:
space:
mode:
authorRafaël Carré <funman@videolan.org>2012-01-14 14:13:34 -0500
committerRafaël Carré <funman@videolan.org>2012-01-14 14:13:37 -0500
commit36489d9aa001943a7f563c44d405899f45764b0c (patch)
treeb311d2792e16a4224d02a12f514e668d4696ab82 /manual/rockbox_interface/main.tex
parent820dcfdfed9f7df52bf0242b3409258dfe4d558f (diff)
downloadrockbox-36489d9aa001943a7f563c44d405899f45764b0c.tar.gz
rockbox-36489d9aa001943a7f563c44d405899f45764b0c.zip
manual: don't error out if front image is missing
Diffstat (limited to 'manual/rockbox_interface/main.tex')
-rw-r--r--manual/rockbox_interface/main.tex5
1 files changed, 4 insertions, 1 deletions
diff --git a/manual/rockbox_interface/main.tex b/manual/rockbox_interface/main.tex
index adab240ab7..368bf6a669 100644
--- a/manual/rockbox_interface/main.tex
+++ b/manual/rockbox_interface/main.tex
@@ -8,7 +8,10 @@
% but requires to use the exact value of \specimg in the filename!
% The extension is selected in the preamble, so no further \ifpdfoutput
% is necessary.
-\includegraphics[height=8cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-front}
+\IfFileExists{rockbox_interface/images/\specimg-front}
+ {\includegraphics[height=8cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-front}}%
+ {\typeout{Missing image: (\specimg)}%
+ \color{red}{\textbf{WARNING!} Image not found}}%
\opt{iaudiom3,iriverh100}{% replace with HAVEREMOTEKEYMAP when all images exist or change specimg
\end{center}
% spacing between the two pictures, could possibly be improved