Index: manual/plugins/wormlet.tex =================================================================== --- manual/plugins/wormlet.tex (Revision 22502) +++ manual/plugins/wormlet.tex (Arbeitskopie) @@ -39,9 +39,9 @@ \opt{RECORDER_PAD}{ \renewcommand{\arraystretch}{1.8} -\begin{tabularx}{\textwidth}{c X p{3cm} p{3cm} p{3cm}}\toprule -\textbf{Players} & \textbf{Modes} & \textbf{Player 1} & \textbf{Player 2} - & \textbf{Player 3}\\\midrule +\begin{rbtabular}{\textwidth}{c X p{3cm} p{3cm} p{3cm}}% +{\textbf{Players} & \textbf{Modes} & \textbf{Player 1} & \textbf{Player 2} + & \textbf{Player 3}}{}{} % 0 & Out of control & \multicolumn{3}{p{9cm}}{With no player taking part in the game all worms are out of control and steered by artificial stupidity.}\\ @@ -65,7 +65,7 @@ & on remote control VOL DOWN: turn left VOL UP: turn right & on \dap\ \ButtonFTwo: turn left \ButtonFThree: turn right \\ -\end{tabularx} +\end{rbtabular} \renewcommand{\arraystretch}{1.0} } Index: manual/plugins/goban.tex =================================================================== --- manual/plugins/goban.tex (Revision 22502) +++ manual/plugins/goban.tex (Arbeitskopie) @@ -34,10 +34,8 @@ these markers: \\ \begin{table} - \begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabularx}{\textwidth}{lX}\toprule - \textbf{Mark} & \textbf{Meaning} \\ \midrule + \begin{rbtabular}{\textwidth}{lX}% + {\textbf{Mark} & \textbf{Meaning}}{}{} \emph{+ } & There are nodes after the current node in the SGF tree. \\ \emph{* } & There are sibling variations which can be navigated to using the % \emph{Next Variation} menu option of the \emph{Context Menu}% @@ -53,9 +51,7 @@ \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec} button}. \\ \emph{C } & There is a comment at the current node. It can be viewed/edited using the \emph{Add/Edit Comment} menu option of the \emph{Context Menu}. \\ - \bottomrule - \end{tabularx} - \end{center} + \end{rbtabular} \end{table} \subsubsection{Controls} Index: manual/plugins/brickmania.tex =================================================================== --- manual/plugins/brickmania.tex (Revision 22502) +++ manual/plugins/brickmania.tex (Arbeitskopie) @@ -8,19 +8,16 @@ \subsubsection{Special items} \begin{table} - \begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabularx}{.75\textwidth}{clX}\toprule - \textbf{Displayed} & \textbf{Name} & \textbf{Description}\\\midrule + \begin{rbtabular}{.75\textwidth}{clX}% + {\textbf{Displayed} & \textbf{Name} & \textbf{Description}}{}{} N & Normal & Returns paddle to normal.\\ D & Die & Ball dies; lose a life.\\ L & Life & Gain a life.\\ F & Fire & Allows you to shoot bricks with paddle.\\ G & Glue & Ball sticks to paddle each time it hits.\\ B & Ball & Immediately fires another ball.\\ - FL & Flip & Flip left / right movement.\\\bottomrule - \end{tabularx} - \end{center} + FL & Flip & Flip left / right movement.\\ + \end{rbtabular} \end{table} \begin{table} Index: manual/plugins/pacbox.tex =================================================================== --- manual/plugins/pacbox.tex (Revision 22502) +++ manual/plugins/pacbox.tex (Arbeitskopie) @@ -10,18 +10,14 @@ To use the emulator to play Pacman, you need a copy of ROMs for ``Midway Pacman''. \begin{table} -\begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabular}{ll}\toprule - \textbf{Filename} & \textbf{MD5 checksum}\\\midrule + \begin{rbtabular}{0.8\textwidth}{lX}{\textbf{Filename} & \textbf{MD5 checksum}}{}{} pacman.5e & 2791455babaf26e0b396c78d2b45f8f6\\ pacman.5f & 9240f35d1d2beee0ff17195653b5e405\\ pacman.6e & 290aa5eae9e2f63587b5dd5a7da932da\\ pacman.6f & 19a886fcd8b5e88b0ed1b97f9d8659c0\\ pacman.6h & d7cce8bffd9563b133ec17ebbb6373d4\\ - pacman.6j & 33c0e197be4c787142af6c3be0d8f6b0\\\bottomrule - \end{tabular} -\end{center} + pacman.6j & 33c0e197be4c787142af6c3be0d8f6b0\\ + \end{rbtabular} \end{table} These need to be stored in the \fname{/.rockbox/pacman/} directory on your Index: manual/preamble.tex =================================================================== --- manual/preamble.tex (Revision 22502) +++ manual/preamble.tex (Arbeitskopie) @@ -201,9 +201,46 @@ \setcounter{totalnumber}{5} % default: 3 +% Environment for typesetting tables in a consistent way. The header has +% a darker background; rows are white and light gray (alternating). Top, +% middle and bottom rules are automatically set. +% +% Params: +% #1 -- table width +% #2 -- column specification (as used in the package tabularx) +% #3 -- contents of the header row. The number of items must +% match the number of specs in #2 +% #4 -- caption (optional). If used then this must be inside a floating +% environment, e.g. table +% #5 -- label (optional) +% +% Example: +% \begin{rbtabular}{0.9\textwidth}{lX}{Col1 & Col2}{}{} +% A1 & A2\\ +% B1 & B2\\ +% C1 & C2\\ +% \end{rbtabular} +% +\newenvironment{rbtabular}[5]{% + \rowcolors{2}{tblrowbgcolor}{} + \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname + \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% + \bottomrule + \SavedEndTab% + \if\given{#4}\caption{#4}\fi% + \if\given{#5}\label{#5}\fi% + \endcenter% + } + \center + \tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor} + #3\\\midrule +}{% + \endtabularx +} + % command to set the default table heading for button lists \newcommand{\taghead}{\textbf{Tag} & \textbf{Description} \\\midrule} Index: manual/getting_started/archos_choice.tex =================================================================== --- manual/getting_started/archos_choice.tex (Revision 22502) +++ manual/getting_started/archos_choice.tex (Arbeitskopie) @@ -8,10 +8,9 @@ The model name is printed on the case. The hard drive size is listed on the serial number sticker on the back of the unit. -\begin{center} - \begin{tabularx}{\textwidth}{llXl}\toprule - \label{ref:Jukeboxtypetable} - \textbf{Picture} & \textbf{Disk size} & \textbf{Model Name} & \textbf{Version Name} \\\midrule +\begin{rbtabular}{\textwidth}{llXl}% + {\textbf{Picture} & \textbf{Disk size} & \textbf{Model Name} & \textbf{Version Name}}% + {}{ref:Jukeboxtypetable} \begin{minipage}{2.2cm} \includegraphics[width=2cm]{getting_started/images/archos-studio-small.png} \end{minipage} @@ -48,8 +47,7 @@ \begin{minipage}{2.2cm} \includegraphics[width=2cm]{getting_started/images/archos-ondiofm-small.png} \end{minipage} - & 128MB (flash) & Ondio 128 FM & ondiofm \\\bottomrule - \end{tabularx} -\end{center} + & 128MB (flash) & Ondio 128 FM & ondiofm \\ +\end{rbtabular} \note{Rockbox does not run on the Archos Jukebox Multimedia or any Archos products other than those mentioned here.} Index: manual/rockbox_interface/tagcache.tex =================================================================== --- manual/rockbox_interface/tagcache.tex (Revision 22502) +++ manual/rockbox_interface/tagcache.tex (Arbeitskopie) @@ -113,12 +113,8 @@ to RAM.}% \begin{table} -\begin{center} -\rowcolors{1}{}{tblrowbgcolor} - \begin{tabularx}{.75\textwidth}{XXX}% - \toprule% - \textbf{Tag} & \textbf{Type} & \textbf{Origin} \\ - \midrule + \begin{rbtabular}{.75\textwidth}{XXX}% + {\textbf{Tag} & \textbf{Type} & \textbf{Origin}}{}{} filename & string & system \\ album & string & id tag \\ albumartist & string & id tag \\ @@ -143,7 +139,5 @@ length & numeric & system \\ Lm (track len - min) & numeric & system \\ Ls (track len - sec) & numeric & system \\ - \bottomrule - \end{tabularx} -\end{center} + \end{rbtabular} \end{table} Index: manual/appendix/file_formats.tex =================================================================== --- manual/appendix/file_formats.tex (Revision 22502) +++ manual/appendix/file_formats.tex (Arbeitskopie) @@ -2,11 +2,9 @@ \chapter{File formats} \section{\label{ref:Supportedfileformats}Supported file formats} \begin{table} -\begin{center} -\rowcolors{1}{}{tblrowbgcolor} -\begin{tabularx}{\textwidth}{clp{7em}X}\toprule -\textbf{Icon} & \textbf{File Type} & \textbf{Extension} - & \textbf{Action when selected} \\\midrule% +\begin{rbtabular}{\textwidth}{clp{7em}X}% +{\textbf{Icon} & \textbf{File Type} & \textbf{Extension} + & \textbf{Action when selected}}{}{} \includegraphics[width=0.37cm]{appendix/images/icon-directory.png} & Directory & \emph{none} & Enter the directory \\ \includegraphics[width=0.37cm]{appendix/images/icon-audio-file.png} @@ -74,18 +72,14 @@ & Game of Life & \fname{.cells} & Show the configuration with the ``Rocklife'' plugin\\} -\bottomrule -\end{tabularx} -\end{center} +\end{rbtabular} \end{table} \opt{swcodec}{ \section{\label{ref:Supportedaudioformats}Supported audio formats} \begin{table} - \begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabularx}{\textwidth}{lp{6em}X}\toprule - \textbf{Format} & \textbf{Extension} & \textbf{Notes} \\\midrule + \begin{rbtabular}{\textwidth}{lp{6em}X}% + {\textbf{Format} & \textbf{Extension} & \textbf{Notes}}{}{} \multicolumn{2}{c}{\textbf{Lossy codecs}}\\ \midrule MPEG audio & \fname{.mp1, .mpa, .mp2, .mp3} & \\ @@ -127,8 +121,6 @@ NES Sound Format & \fname{.nsf, .nsfe} & \\ SPC700 & \fname{.spc} & \\ Atari SAP & \fname{.sap} & \\ - \bottomrule - \end{tabularx} - \end{center} + \end{rbtabular} \end{table} } Index: manual/configure_rockbox/recording_settings.tex =================================================================== --- manual/configure_rockbox/recording_settings.tex (Revision 22502) +++ manual/configure_rockbox/recording_settings.tex (Arbeitskopie) @@ -19,15 +19,13 @@ and the average bitrate changes as follows. \begin{table}[h!] - \begin{center} - \begin{tabularx}{0.75\textwidth}{lX}\toprule - \emph{Frequency} & \emph{Bitrate} (Kbit/s) -- quality 0$\rightarrow$7 \\\midrule + \begin{rbtabular}{0.75\textwidth}{lX}% + {\emph{Frequency} & \emph{Bitrate} (Kbit/s) -- quality 0$\rightarrow$7}{}{} 44100Hz stereo & 75, 80, 90, 100, 120, 140, 160, 170 \\ 22050Hz stereo & 39, 41, 45, 50, 60, 80, 110, 130 \\ 44100Hz mono & 65, 68, 73, 80, 90, 105, 125, 140 \\ - 22050Hz mono & 35, 38, 40, 45, 50, 60, 75, 90 \\\bottomrule - \end{tabularx} - \end{center} + 22050Hz mono & 35, 38, 40, 45, 50, 60, 75, 90 \\ + \end{rbtabular} \end{table} } Index: manual/configure_rockbox/sound_settings.tex =================================================================== --- manual/configure_rockbox/sound_settings.tex (Revision 22502) +++ manual/configure_rockbox/sound_settings.tex (Arbeitskopie) @@ -80,10 +80,8 @@ Available options are: % \begin{table} - \begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabularx}{\textwidth}{lX}\toprule - \textbf{Setting} & \textbf{Description} \\\midrule + \begin{rbtabular}{\textwidth}{lX}% + {\textbf{Setting} & \textbf{Description}}{}{} Stereo & Leave the audio signal unmodified. \\ % @@ -107,9 +105,7 @@ to make the singer sound centrally placed, this often (but not always) has the effect of removing the voice track from a song. This setting also very often has other undesirable effects on the sound. \\ - \bottomrule - \end{tabularx} - \end{center} + \end{rbtabular} \end{table} \section{Stereo Width} @@ -198,16 +194,12 @@ Rockbox uses are: % \begin{table}[h!] - \begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabular}{@{}lc@{}}\toprule - Setting & Value \\\midrule + \begin{rbtabular}{0.5\textwidth}{Xc}{Setting & Value}{}{} MDB Strength & 50dB \\ MDB Harmonics & 48\% \\ MDB Centre Frequency & 60Hz \\ - MDB Shape & 90Hz \\\bottomrule - \end{tabular} - \end{center} + MDB Shape & 90Hz \\ + \end{rbtabular} \end{table} \end{description} Index: manual/configure_rockbox/file_view.tex =================================================================== --- manual/configure_rockbox/file_view.tex (Revision 22502) +++ manual/configure_rockbox/file_view.tex (Arbeitskopie) @@ -29,12 +29,8 @@ \newline\setting{As digits} disables this algorithm, and causes every digit to be compared separately. The following table demonstrates the two sortings. \begin{table} - \begin{center} - \rowcolors{1}{}{tblrowbgcolor} - \begin{tabularx}{.8\textwidth}{XX} - \toprule - \textbf{As whole numbers} & \textbf{As digits}\\ - \midrule + \begin{rbtabular}{.8\textwidth}{XX}% + {\textbf{As whole numbers} & \textbf{As digits}}{}{} 03 Jackson.mp3 & 03 Jackson.mp3\\ 1 Ring Of Fire.mp3 & 1 Ring Of Fire.mp3\\ 2 I Walk The Line.mp3 & 10 A Thing Called Love.mp3\\ @@ -42,9 +38,7 @@ Episode 1.ogg & Episode 1.ogg\\ Episode 57.ogg & Episode 233.ogg\\ Episode 233.ogg & Episode 57.ogg\\ - \bottomrule - \end{tabularx} - \end{center} + \end{rbtabular} \end{table}