diff options
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r-- | manual/preamble.tex | 25 |
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} |