summaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2009-02-20 19:08:18 +0000
committerJonas Häggqvist <rasher@rasher.dk>2009-02-20 19:08:18 +0000
commit00215348d0ee3c894707dab3c9f7288a0d93cd74 (patch)
tree29c074e3a259cd76c1b903ad44c9caafdff19159 /manual
parent410cbd1af7103cf9a19ca3f155647da5a34e4d05 (diff)
downloadrockbox-00215348d0ee3c894707dab3c9f7288a0d93cd74.tar.gz
rockbox-00215348d0ee3c894707dab3c9f7288a0d93cd74.tar.bz2
rockbox-00215348d0ee3c894707dab3c9f7288a0d93cd74.zip
Add a few examples and a few touchups.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20068 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual')
-rw-r--r--manual/appendix/wps_tags.tex16
1 files changed, 13 insertions, 3 deletions
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex
index 487090c266..5753b1c89f 100644
--- a/manual/appendix/wps_tags.tex
+++ b/manual/appendix/wps_tags.tex
@@ -259,16 +259,16 @@ with image ID ``M'', and then reference the individual sub-images in a condition
}
\opt{albumart}{
-\section{Album art}
+\section{Album Art}
\begin{table}
\begin{tagmap}{}{}
- \config{\%Cl{\textbar}x{\textbar}y{\textbar}[l{\textbar}c{\textbar}r]maxwidth{\textbar}[t{\textbar}c{\textbar}b]maxheight{\textbar}}
+ \config{\%Cl{\textbar}x{\textbar}y{\textbar}[[l{\textbar}c{\textbar}r]maxwidth]{\textbar}[[t{\textbar}c{\textbar}b]maxheight]{\textbar}}
& Define the settings for albumart\\
& \config{x}: x coordinate\\
& \config{y}: y coordinate\\
& \config{maxwidth}: Maximum height.\\
& \config{maxheight}: Maximum width.\\
- \config{\%C} & Display the album art as configured\\
+ \config{\%C} & Display the album art as configured. This tag can also be used as a conditional.\\
\end{tagmap}
\end{table}
@@ -290,6 +290,16 @@ configured values, the picture will be placed according to the flags to the
\item[\config{b}.] Align right
\end{description}
\end{itemize}
+
+Examples:
+\begin{enumerate}
+ \item Load albumart at position 20,40 and display it without resizing:\\
+ \config{\%Cl{\textbar}20{\textbar}40{\textbar}{\textbar}{\textbar}}
+ \item Load albumart at position 0,20 and resize it to be at most 100x100
+ pixels. If the image isn't square, align it to the bottom-right
+ corner:\\
+ \config{\%CL{\textbar}0{\textbar}20{\textbar}r100{\textbar}b100{\textbar}}
+\end{enumerate}
}
\section{Alignment}