1
0
Fork 0
forked from len0rd/rockbox

Make the first column in the tag tables narrower

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27246 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2010-07-02 18:54:09 +00:00
parent 010e56231e
commit 67f25a45a5
2 changed files with 16 additions and 12 deletions

View file

@ -37,16 +37,19 @@ show the information for the next song to be played.
\section{Viewports} \section{Viewports}
\begin{tagmap} \begin{tagmap}
\nopt{lcd_non-mono}{% \nopt{lcd_non-mono}{%
\config{\%V(x,y,[width],[height],[font])} \config{\%V(x,y,[width],\tabnlindent[height],[font])}
& See section \ref{ref:Viewports}\\} & See section \ref{ref:Viewports}\\}
\nopt{lcd_color}{\opt{lcd_non-mono}{% \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}\\}} & See section \ref{ref:Viewports}\\}}
\opt{lcd_color}{% \opt{lcd_color}{%
\config{\%V(x,y,[width],[height],[font])} \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline
\config{\%Vf([fgcolour]) \%Vb([bgcolour])} \config{\%Vf([fgcolour])}\newline
\config{\%Vb([bgcolour])}
& See section \ref{ref:Viewports}\\} & See section \ref{ref:Viewports}\\}
\config{\%Vd('identifier')} & Display the `identifier' viewport. E.g. \config{\%Vd('identifier')} & Display the `identifier' viewport. E.g.
@ -268,7 +271,7 @@ that, it will display the volume value.
\section{Settings} \section{Settings}
\begin{tagmap} \begin{tagmap}
\config{\%St(<setting name>)} & The value of the Rockbox \config{\%St(<setting\tabnlindent{}name>)} & The value of the Rockbox
setting with the specified name. See \reference{ref:config_file_options} setting with the specified name. See \reference{ref:config_file_options}
for the list of the available settings.\\ for the list of the available settings.\\
\end{tagmap} \end{tagmap}
@ -294,7 +297,7 @@ Examples:
& \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\\ & \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\\
& \config{x}: x coordinate\\ & \config{x}: x coordinate\\
& \config{y}: y 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)\\ & 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{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''\\ & \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. follows.
\begin{tagmap} \begin{tagmap}
\config{\%Cl(x,y,[maxwidth],[maxheight],hor\_align,vert\_align)} \config{\%Cl(x,y,[maxwidth],\tabnlindent[maxheight],\tabnlindent{}hor\_align,\tabnlindent{}vert\_align)}
& Define the settings for albumart\\ & Define the settings for album art\\
& \config{x}: x coordinate\\ & \config{x}: x coordinate\\
& \config{y}: y coordinate\\ & \config{y}: y coordinate\\
& \config{maxwidth}: Maximum height\\ & \config{maxwidth}: Maximum height\\
@ -456,14 +459,14 @@ order left -- centre -- right. If the aligned texts overlap, they are merged.
\begin{tagmap} \begin{tagmap}
\config{\%?xx{\textless}true{\textbar}false{\textgreater}} \config{\%?xx{\textless}true{\textbar}false{\textgreater}}
& If / Else: Evaluate for true or false case \\ & 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 \\ & Enumerations: Evaluate for first / second / third / \dots / last condition \\
\end{tagmap} \end{tagmap}
\section{Subline Tags} \section{Subline Tags}
\begin{tagmap} \begin{tagmap}
\config{\%t{\textless}(time){\textgreater}} \config{\%t(time)}
& Set the subline display cycle time (\%t(5) or \%t(3.4) formats) \\ & Set the subline display cycle time (\%t(5) or \%t(3.4) formats) \\
\config{;} \config{;}
& Split items on a line into separate sublines \\ & Split items on a line into separate sublines \\
@ -529,7 +532,7 @@ Example:
\opt{touchscreen}{ \opt{touchscreen}{
\section{Touchscreen Areas (WPS only)} \section{Touchscreen Areas (WPS only)}
\begin{tagmap} \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 & Invoke the action specified when the user presses in the defined
touchscreen area.\\ touchscreen area.\\
\end{tagmap} \end{tagmap}

View file

@ -246,6 +246,7 @@
\endtabularx \endtabularx
} }
\newcommand{\tabnlindent}{\newline\mbox{ }\mbox{ }}
@ -266,7 +267,7 @@
\endcenter% \endcenter%
} }
\center \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 \taghead
}{% }{%
\endtabularx \endtabularx