diff options
author | Rafaël Carré <funman@videolan.org> | 2012-01-14 14:13:34 -0500 |
---|---|---|
committer | Rafaël Carré <funman@videolan.org> | 2012-01-14 14:13:37 -0500 |
commit | 36489d9aa001943a7f563c44d405899f45764b0c (patch) | |
tree | b311d2792e16a4224d02a12f514e668d4696ab82 | |
parent | 820dcfdfed9f7df52bf0242b3409258dfe4d558f (diff) | |
download | rockbox-36489d9aa001943a7f563c44d405899f45764b0c.tar.gz rockbox-36489d9aa001943a7f563c44d405899f45764b0c.zip |
manual: don't error out if front image is missing
-rw-r--r-- | manual/rockbox_interface/main.tex | 5 |
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 @@ | |||
8 | % but requires to use the exact value of \specimg in the filename! | 8 | % but requires to use the exact value of \specimg in the filename! |
9 | % The extension is selected in the preamble, so no further \ifpdfoutput | 9 | % The extension is selected in the preamble, so no further \ifpdfoutput |
10 | % is necessary. | 10 | % is necessary. |
11 | \includegraphics[height=8cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-front} | 11 | \IfFileExists{rockbox_interface/images/\specimg-front} |
12 | {\includegraphics[height=8cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-front}}% | ||
13 | {\typeout{Missing image: (\specimg)}% | ||
14 | \color{red}{\textbf{WARNING!} Image not found}}% | ||
12 | \opt{iaudiom3,iriverh100}{% replace with HAVEREMOTEKEYMAP when all images exist or change specimg | 15 | \opt{iaudiom3,iriverh100}{% replace with HAVEREMOTEKEYMAP when all images exist or change specimg |
13 | \end{center} | 16 | \end{center} |
14 | % spacing between the two pictures, could possibly be improved | 17 | % spacing between the two pictures, could possibly be improved |