summaryrefslogtreecommitdiffstats
path: root/manual
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 /manual
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
Diffstat (limited to 'manual')
-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 @@
% we want them.
% Note: use this only for screenshots!
% Note: leave caption empty to supress it.
+% Resulting file names in the source should consist of up to 3 parts
+% "filename-\genericimg-[\specimg|\seriesimg]" (the third is optional)
+% filename is specified by the use of this macro in the tex file
+% \genericimg will be generated using the display's resolution (see above)
+% \specimg or \seriesimg are possible options set in the platform files
+% Files will be used in the following order: 1.filename contains \specimg part
+% 2. filename contains \seriesimg part, 3. filename without the third part
\newcommand{\screenshot}[3]{
\begin{figure}[H]
\begin{center}
\IfFileExists{#1-\genericimg-\specimg.png}
{\includegraphics[width=\screenshotsize]{#1-\genericimg-\specimg.png}
\typeout{Note: device specific image used}}
- {\IfFileExists{#1-\genericimg.png}
- {\includegraphics[width=\screenshotsize]{#1-\genericimg.png}}
- {\IfFileExists{#1}
- {\includegraphics[width=\screenshotsize]{#1}
- \typeout{Warning: deprecated plain image name used}}%
- {\typeout{Missing image: #1 (\genericimg) (\specimg)}%
- \color{red}{\textbf{WARNING!} Image not found}%
+ {\IfFileExists{#1-\genericimg-\seriesimg.png}
+ {\includegraphics[width=\screenshotsize]{#1-\genericimg-\seriesimg.png}
+ \typeout{Note: series specific image used}}
+ {\IfFileExists{#1-\genericimg.png}
+ {\includegraphics[width=\screenshotsize]{#1-\genericimg.png}}
+ {\IfFileExists{#1}
+ {\includegraphics[width=\screenshotsize]{#1}
+ \typeout{Warning: deprecated plain image name used}}%
+ {\typeout{Missing image: #1 (\genericimg) (\specimg)}%
+ \color{red}{\textbf{WARNING!} Image not found}%
}
}
}
+ }
\if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%
\caption{#2}}\fi
\end{center}