summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2010-07-17 16:49:31 +0000
committerMarianne Arnold <pixelma@rockbox.org>2010-07-17 16:49:31 +0000
commite39d9af8826edd40ebeb50157040fed2c316b07f (patch)
tree5a8ff6a9a78ccdcdf9bb85ce093a80e2bdeb143a
parent3b84012d637d3f1caad3f2cf7ed6b5d3e16ef54f (diff)
downloadrockbox-e39d9af8826edd40ebeb50157040fed2c316b07f.tar.gz
rockbox-e39d9af8826edd40ebeb50157040fed2c316b07f.zip
Manual: add another possible parameter to screenshot names: 'seriesimg' to be able to use screenshots for manuals of the same series (e.g. all Clips) which need to be different to other targets with the same resolution, keeping the possibility to differentiate between targets (e.g. the Clip+ and the rest).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27470 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--manual/preamble.tex25
1 files changed, 18 insertions, 7 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 90aa303528..1027a99b36 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -150,22 +150,33 @@
150% we want them. 150% we want them.
151% Note: use this only for screenshots! 151% Note: use this only for screenshots!
152% Note: leave caption empty to supress it. 152% Note: leave caption empty to supress it.
153% Resulting file names in the source should consist of up to 3 parts
154% "filename-\genericimg-[\specimg|\seriesimg]" (the third is optional)
155% filename is specified by the use of this macro in the tex file
156% \genericimg will be generated using the display's resolution (see above)
157% \specimg or \seriesimg are possible options set in the platform files
158% Files will be used in the following order: 1.filename contains \specimg part
159% 2. filename contains \seriesimg part, 3. filename without the third part
153\newcommand{\screenshot}[3]{ 160\newcommand{\screenshot}[3]{
154 \begin{figure}[H] 161 \begin{figure}[H]
155 \begin{center} 162 \begin{center}
156 \IfFileExists{#1-\genericimg-\specimg.png} 163 \IfFileExists{#1-\genericimg-\specimg.png}
157 {\includegraphics[width=\screenshotsize]{#1-\genericimg-\specimg.png} 164 {\includegraphics[width=\screenshotsize]{#1-\genericimg-\specimg.png}
158 \typeout{Note: device specific image used}} 165 \typeout{Note: device specific image used}}
159 {\IfFileExists{#1-\genericimg.png} 166 {\IfFileExists{#1-\genericimg-\seriesimg.png}
160 {\includegraphics[width=\screenshotsize]{#1-\genericimg.png}} 167 {\includegraphics[width=\screenshotsize]{#1-\genericimg-\seriesimg.png}
161 {\IfFileExists{#1} 168 \typeout{Note: series specific image used}}
162 {\includegraphics[width=\screenshotsize]{#1} 169 {\IfFileExists{#1-\genericimg.png}
163 \typeout{Warning: deprecated plain image name used}}% 170 {\includegraphics[width=\screenshotsize]{#1-\genericimg.png}}
164 {\typeout{Missing image: #1 (\genericimg) (\specimg)}% 171 {\IfFileExists{#1}
165 \color{red}{\textbf{WARNING!} Image not found}% 172 {\includegraphics[width=\screenshotsize]{#1}
173 \typeout{Warning: deprecated plain image name used}}%
174 {\typeout{Missing image: #1 (\genericimg) (\specimg)}%
175 \color{red}{\textbf{WARNING!} Image not found}%
166 } 176 }
167 } 177 }
168 } 178 }
179 }
169 \if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{% 180 \if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%
170 \caption{#2}}\fi 181 \caption{#2}}\fi
171 \end{center} 182 \end{center}