diff options
author | Martin Arver <martin.arver@gmail.com> | 2006-06-07 13:29:52 +0000 |
---|---|---|
committer | Martin Arver <martin.arver@gmail.com> | 2006-06-07 13:29:52 +0000 |
commit | 49cdd5e21d31df3c2543e24646009f14358de6ee (patch) | |
tree | 522d6aa5e2709cd6bccc269e4c7ac0f12f52bbac | |
parent | 47ea9065350e8399018b62a57839debaab6c5212 (diff) | |
download | rockbox-49cdd5e21d31df3c2543e24646009f14358de6ee.tar.gz rockbox-49cdd5e21d31df3c2543e24646009f14358de6ee.zip |
Add gobble to the example environment. Adjust the advanced topics chapter to this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10082 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | manual/advanced_topics/main.tex | 46 | ||||
-rw-r--r-- | manual/preamble.tex | 2 |
2 files changed, 24 insertions, 24 deletions
diff --git a/manual/advanced_topics/main.tex b/manual/advanced_topics/main.tex index 3152b0c668..0cf890fa4c 100644 --- a/manual/advanced_topics/main.tex +++ b/manual/advanced_topics/main.tex | |||
@@ -141,11 +141,11 @@ as they are separated into different sublines. | |||
141 | Example subline definition: | 141 | Example subline definition: |
142 | 142 | ||
143 | \begin{example} | 143 | \begin{example} |
144 | %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds, | 144 | %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds, |
145 | Display id3 title for 2 seconds, | 145 | Display id3 title for 2 seconds, |
146 | Display current and remaining track time | 146 | Display current and remaining track time |
147 | for 3 seconds, | 147 | for 3 seconds, |
148 | repeat... | 148 | repeat... |
149 | \end{example} | 149 | \end{example} |
150 | 150 | ||
151 | Conditionals can be used with sublines to display a different set and/or number of sublines on the line depending on the evaluation of the conditional. | 151 | Conditionals can be used with sublines to display a different set and/or number of sublines on the line depending on the evaluation of the conditional. |
@@ -153,7 +153,7 @@ Conditionals can be used with sublines to display a different set and/or number | |||
153 | Example subline with conditionals: | 153 | Example subline with conditionals: |
154 | 154 | ||
155 | \begin{example} | 155 | \begin{example} |
156 | %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\ | 156 | %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\ |
157 | \end{example} | 157 | \end{example} |
158 | 158 | ||
159 | The format above will do two different things depending if ID3 tags are present. If the ID3 artist and title are present: | 159 | The format above will do two different things depending if ID3 tags are present. If the ID3 artist and title are present: |
@@ -195,20 +195,20 @@ displaying images: | |||
195 | 195 | ||
196 | Example on bitmap preloading and use: | 196 | Example on bitmap preloading and use: |
197 | \begin{example} | 197 | \begin{example} |
198 | \%x|a|static\_icon.bmp|50|50|\\ | 198 | \%x|a|static\_icon.bmp|50|50|\\ |
199 | \%xl|b|rep\_off.bmp|16|64|\\ | 199 | \%xl|b|rep\_off.bmp|16|64|\\ |
200 | \%xl|c|rep\_all.bmp|16|64|\\ | 200 | \%xl|c|rep\_all.bmp|16|64|\\ |
201 | \%xl|d|rep\_one.bmp|16|64|\\ | 201 | \%xl|d|rep\_one.bmp|16|64|\\ |
202 | \%xl|e|rep\_shuffle.bmp|16|64|\\ | 202 | \%xl|e|rep\_shuffle.bmp|16|64|\\ |
203 | \%?mm<%xdb|%xdc|%xdd|%xde>\\ | 203 | \%?mm<%xdb|%xdc|%xdd|%xde>\\ |
204 | \end{example} | 204 | \end{example} |
205 | Four images at the same x and y position are preloaded in the example. Which | 205 | Four images at the same x and y position are preloaded in the example. Which |
206 | image to display is determined by the \%mm tag (the repeat mode). | 206 | image to display is determined by the \%mm tag (the repeat mode). |
207 | 207 | ||
208 | \subsubsection{Example File} | 208 | \subsubsection{Example File} |
209 | \begin{example} | 209 | \begin{example} |
210 | \%s\%?in<\%in - >\%?it<\%it|\%fn> \%?ia<[\%ia\%?id<, \%id>]> | 210 | \%s\%?in<\%in - >\%?it<\%it|\%fn> \%?ia<[\%ia\%?id<, \%id>]> |
211 | \%pb\%pc/\%pt | 211 | \%pb\%pc/\%pt |
212 | \end{example} | 212 | \end{example} |
213 | That is, ``tracknum -- title [artist, album]'', where most fields are only | 213 | That is, ``tracknum -- title [artist, album]'', where most fields are only |
214 | displayed if available. Could also be rendered as ``filename'' or ``tracknum -- | 214 | displayed if available. Could also be rendered as ``filename'' or ``tracknum -- |
@@ -247,15 +247,15 @@ for the full reference of available options. | |||
247 | 247 | ||
248 | \subsection{Example File} | 248 | \subsection{Example File} |
249 | \begin{example} | 249 | \begin{example} |
250 | volume: 70 | 250 | volume: 70 |
251 | bass: 11 | 251 | bass: 11 |
252 | treble: 12 | 252 | treble: 12 |
253 | balance: 0 | 253 | balance: 0 |
254 | time format: 12hour | 254 | time format: 12hour |
255 | volume display: numeric | 255 | volume display: numeric |
256 | show files: supported | 256 | show files: supported |
257 | wps: /.rockbox/car.wps | 257 | wps: /.rockbox/car.wps |
258 | lang: /.rockbox/afrikaans.lng | 258 | lang: /.rockbox/afrikaans.lng |
259 | \end{example} | 259 | \end{example} |
260 | 260 | ||
261 | \section{\label{ref:PartISection1}Differences between binaries} | 261 | \section{\label{ref:PartISection1}Differences between binaries} |
diff --git a/manual/preamble.tex b/manual/preamble.tex index 31bc596609..bf4f3ec705 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex | |||
@@ -234,7 +234,7 @@ | |||
234 | % Note: when using the example environment you need to use optv instead of opt! | 234 | % Note: when using the example environment you need to use optv instead of opt! |
235 | \DefineVerbatimEnvironment{example}{Verbatim}% | 235 | \DefineVerbatimEnvironment{example}{Verbatim}% |
236 | {commentchar=!,framerule=0.4pt, framesep=1ex,frame=lines,% | 236 | {commentchar=!,framerule=0.4pt, framesep=1ex,frame=lines,% |
237 | fontsize=\footnotesize,xleftmargin=10pt,% | 237 | gobble=4,fontsize=\footnotesize,xleftmargin=10pt,% |
238 | label=\textnormal{\textsc{Example}},% | 238 | label=\textnormal{\textsc{Example}},% |
239 | commandchars=\\\{\}% | 239 | commandchars=\\\{\}% |
240 | } | 240 | } |