summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Arver <martin.arver@gmail.com>2006-06-07 13:29:52 +0000
committerMartin Arver <martin.arver@gmail.com>2006-06-07 13:29:52 +0000
commit49cdd5e21d31df3c2543e24646009f14358de6ee (patch)
tree522d6aa5e2709cd6bccc269e4c7ac0f12f52bbac
parent47ea9065350e8399018b62a57839debaab6c5212 (diff)
downloadrockbox-49cdd5e21d31df3c2543e24646009f14358de6ee.zip
rockbox-49cdd5e21d31df3c2543e24646009f14358de6ee.tar.gz
rockbox-49cdd5e21d31df3c2543e24646009f14358de6ee.tar.bz2
rockbox-49cdd5e21d31df3c2543e24646009f14358de6ee.tar.xz
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.tex46
-rw-r--r--manual/preamble.tex2
2 files changed, 24 insertions, 24 deletions
diff --git a/manual/advanced_topics/main.tex b/manual/advanced_topics/main.tex
index 3152b0c..0cf890f 100644
--- a/manual/advanced_topics/main.tex
+++ b/manual/advanced_topics/main.tex
@@ -141,11 +141,11 @@ as they are separated into different sublines.
Example subline definition:
\begin{example}
- %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds,
- Display id3 title for 2 seconds,
- Display current and remaining track time
- for 3 seconds,
- repeat...
+ %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds,
+ Display id3 title for 2 seconds,
+ Display current and remaining track time
+ for 3 seconds,
+ repeat...
\end{example}
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
Example subline with conditionals:
\begin{example}
- %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\
+ %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\
\end{example}
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:
Example on bitmap preloading and use:
\begin{example}
- \%x|a|static\_icon.bmp|50|50|\\
- \%xl|b|rep\_off.bmp|16|64|\\
- \%xl|c|rep\_all.bmp|16|64|\\
- \%xl|d|rep\_one.bmp|16|64|\\
- \%xl|e|rep\_shuffle.bmp|16|64|\\
- \%?mm<%xdb|%xdc|%xdd|%xde>\\
+ \%x|a|static\_icon.bmp|50|50|\\
+ \%xl|b|rep\_off.bmp|16|64|\\
+ \%xl|c|rep\_all.bmp|16|64|\\
+ \%xl|d|rep\_one.bmp|16|64|\\
+ \%xl|e|rep\_shuffle.bmp|16|64|\\
+ \%?mm<%xdb|%xdc|%xdd|%xde>\\
\end{example}
Four images at the same x and y position are preloaded in the example. Which
image to display is determined by the \%mm tag (the repeat mode).
\subsubsection{Example File}
\begin{example}
- \%s\%?in<\%in - >\%?it<\%it|\%fn> \%?ia<[\%ia\%?id<, \%id>]>
- \%pb\%pc/\%pt
+ \%s\%?in<\%in - >\%?it<\%it|\%fn> \%?ia<[\%ia\%?id<, \%id>]>
+ \%pb\%pc/\%pt
\end{example}
That is, ``tracknum -- title [artist, album]'', where most fields are only
displayed if available. Could also be rendered as ``filename'' or ``tracknum --
@@ -247,15 +247,15 @@ for the full reference of available options.
\subsection{Example File}
\begin{example}
- volume: 70
- bass: 11
- treble: 12
- balance: 0
- time format: 12hour
- volume display: numeric
- show files: supported
- wps: /.rockbox/car.wps
- lang: /.rockbox/afrikaans.lng
+ volume: 70
+ bass: 11
+ treble: 12
+ balance: 0
+ time format: 12hour
+ volume display: numeric
+ show files: supported
+ wps: /.rockbox/car.wps
+ lang: /.rockbox/afrikaans.lng
\end{example}
\section{\label{ref:PartISection1}Differences between binaries}
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 31bc596..bf4f3ec 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -234,7 +234,7 @@
% Note: when using the example environment you need to use optv instead of opt!
\DefineVerbatimEnvironment{example}{Verbatim}%
{commentchar=!,framerule=0.4pt, framesep=1ex,frame=lines,%
- fontsize=\footnotesize,xleftmargin=10pt,%
+ gobble=4,fontsize=\footnotesize,xleftmargin=10pt,%
label=\textnormal{\textsc{Example}},%
commandchars=\\\{\}%
}