From 36489d9aa001943a7f563c44d405899f45764b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sat, 14 Jan 2012 14:13:34 -0500 Subject: [PATCH] manual: don't error out if front image is missing --- manual/rockbox_interface/main.tex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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