summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2006-04-02 17:29:44 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2006-04-02 17:29:44 +0000
commit2cf5abb971546df4ebaa2f132688eca44d520959 (patch)
tree98d28ac5e8a2b60046d8f649782c393647bdd00d /manual/preamble.tex
parentc95d9d08350450ce6b16e345d3eff67c758ce6af (diff)
downloadrockbox-2cf5abb971546df4ebaa2f132688eca44d520959.tar.gz
rockbox-2cf5abb971546df4ebaa2f132688eca44d520959.zip
another enhancement of \screenshot -- filenames should now not include the display size extension anymore. Old behaviour still supported. Minor code policing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9432 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r--manual/preamble.tex12
1 files changed, 9 insertions, 3 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index d26e732a3c..01e31860b5 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -92,9 +92,15 @@
92\newcommand{\screenshot}[3]{ 92\newcommand{\screenshot}[3]{
93 \begin{figure}[!ht] 93 \begin{figure}[!ht]
94 \begin{center} 94 \begin{center}
95 \IfFileExists{#1}{\includegraphics[width=4cm]{#1}}{% 95 \IfFileExists{#1-\genericimg.png}
96 \typeout{Missing image: #1}% 96 {\includegraphics[width=4cm]{#1-\genericimg.png}}
97 \color{red}{\textbf{WARNING!} Image not found}}% 97 {\IfFileExists{#1}
98 {\includegraphics[width=4cm]{#1}
99 \typeout{Warning: deprecated plain image name used}}%
100 {\typeout{Missing image: #1 (\genericimg)}%
101 \color{red}{\textbf{WARNING!} Image not found}%
102 }
103 }
98 \if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{% 104 \if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%
99 \caption{#2}}\fi 105 \caption{#2}}\fi
100 \end{center} 106 \end{center}