From 67f25a45a59f867cfe60a1fe5e45d24c00777f4b Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Fri, 2 Jul 2010 18:54:09 +0000 Subject: [PATCH] Make the first column in the tag tables narrower git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27246 a1c6a512-1295-4272-9138-f99709370657 --- manual/appendix/wps_tags.tex | 25 ++++++++++++++----------- manual/preamble.tex | 3 ++- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex index cff6c5f4b8..eea94d3eeb 100644 --- a/manual/appendix/wps_tags.tex +++ b/manual/appendix/wps_tags.tex @@ -37,16 +37,19 @@ show the information for the next song to be played. \section{Viewports} \begin{tagmap} \nopt{lcd_non-mono}{% - \config{\%V(x,y,[width],[height],[font])} + \config{\%V(x,y,[width],\tabnlindent[height],[font])} & See section \ref{ref:Viewports}\\} \nopt{lcd_color}{\opt{lcd_non-mono}{% - \config{\%V(x,y,[width],[height],[font]) \%Vf([fgshade]) \%Vb([bgshade])} + \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline + \config{\%Vf([fgshade])}\newline + \config{\%Vb([bgshade])} & See section \ref{ref:Viewports}\\}} \opt{lcd_color}{% - \config{\%V(x,y,[width],[height],[font])} - \config{\%Vf([fgcolour]) \%Vb([bgcolour])} + \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline + \config{\%Vf([fgcolour])}\newline + \config{\%Vb([bgcolour])} & See section \ref{ref:Viewports}\\} \config{\%Vd('identifier')} & Display the `identifier' viewport. E.g. @@ -268,7 +271,7 @@ that, it will display the volume value. \section{Settings} \begin{tagmap} - \config{\%St()} & The value of the Rockbox + \config{\%St()} & The value of the Rockbox setting with the specified name. See \reference{ref:config_file_options} for the list of the available settings.\\ \end{tagmap} @@ -294,7 +297,7 @@ Examples: & \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\\ & \config{x}: x coordinate\\ & \config{y}: y coordinate.\\ - \config{\%xl(n,filename,x,y,[nimages])} + \config{\%xl(n,filename,x,y,\tabnlindent[nimages])} & Preload an image for later display (useful for when your images are displayed conditionally)\\ & \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\\ & \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\\ @@ -380,8 +383,8 @@ Once the album art files are present on your \dap, they can be displayed as follows. \begin{tagmap} - \config{\%Cl(x,y,[maxwidth],[maxheight],hor\_align,vert\_align)} - & Define the settings for albumart\\ + \config{\%Cl(x,y,[maxwidth],\tabnlindent[maxheight],\tabnlindent{}hor\_align,\tabnlindent{}vert\_align)} + & Define the settings for album art\\ & \config{x}: x coordinate\\ & \config{y}: y coordinate\\ & \config{maxwidth}: Maximum height\\ @@ -456,14 +459,14 @@ order left -- centre -- right. If the aligned texts overlap, they are merged. \begin{tagmap} \config{\%?xx{\textless}true{\textbar}false{\textgreater}} & If / Else: Evaluate for true or false case \\ -\config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}alt3{\textbar}\dots{\textbar}else{\textgreater}} +\config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}\tabnlindent{}alt3{\textbar}\dots{\textbar}else{\textgreater}} & Enumerations: Evaluate for first / second / third / \dots / last condition \\ \end{tagmap} \section{Subline Tags} \begin{tagmap} -\config{\%t{\textless}(time){\textgreater}} +\config{\%t(time)} & Set the subline display cycle time (\%t(5) or \%t(3.4) formats) \\ \config{;} & Split items on a line into separate sublines \\ @@ -529,7 +532,7 @@ Example: \opt{touchscreen}{ \section{Touchscreen Areas (WPS only)} \begin{tagmap} - \config{\%T(x,y,[width],[height],action)} + \config{\%T(x,y,[width],\tabnlindent[height],action)} & Invoke the action specified when the user presses in the defined touchscreen area.\\ \end{tagmap} diff --git a/manual/preamble.tex b/manual/preamble.tex index ef31dde850..90aa303528 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex @@ -246,6 +246,7 @@ \endtabularx } +\newcommand{\tabnlindent}{\newline\mbox{ }\mbox{ }} @@ -266,7 +267,7 @@ \endcenter% } \center -\tabularx{\textwidth}{>{\raggedright\arraybackslash}p{.42\textwidth}X}\toprule\rowcolor{tblhdrbgcolor} % here is the table width defined +\tabularx{\textwidth}{Xp{.7\textwidth}}\toprule\rowcolor{tblhdrbgcolor} % here is the table width defined \taghead }{% \endtabularx -- 2.11.4.GIT