diff options
| author | Alexander Levin <al.le@rockbox.org> | 2010-05-20 17:38:38 +0000 |
|---|---|---|
| committer | Alexander Levin <al.le@rockbox.org> | 2010-05-20 17:38:38 +0000 |
| commit | 97365803d390e44155fc41657bd03a7b121956aa (patch) | |
| tree | 1cad7d63df2fd72a0dfd3726720a6689b401b04d /manual/preamble.tex | |
| parent | 0a21ffabbe63f8dd5c893266bdd39bebc2231adc (diff) | |
| download | rockbox-97365803d390e44155fc41657bd03a7b121956aa.zip rockbox-97365803d390e44155fc41657bd03a7b121956aa.tar.gz rockbox-97365803d390e44155fc41657bd03a7b121956aa.tar.bz2 rockbox-97365803d390e44155fc41657bd03a7b121956aa.tar.xz | |
Get rid of unnecessary 'table' environment and the never used parameters for button maps (FS#11088)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26201 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/preamble.tex')
| -rw-r--r-- | manual/preamble.tex | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex index 3eef5eb..9223fee 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex @@ -354,10 +354,9 @@ \newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{% & \textbf{Remote Key}} & \textbf{Action} \\\midrule} % environment intended to be used with button maps -% usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap} +% usage: \begin{btnmap} Button & ButtonAction \\ \end{btnmap} % Note: this automatically sets the table lines. % Note: you *need* to terminate the last line with a linebreak \\ -% Note: you still need to enclose this with \begin{table} / \end{table} % Cheers for the usenet helping me building this up :) % tabularx is set to be either two or three columns wide depending on whether @@ -365,17 +364,15 @@ % If it is, then every button table has three columns of the form % Main Unit Key & Remote Key & Description \\ -\newenvironment{btnmap}[2]{% +\newenvironment{btnmap}{% \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% \bottomrule \SavedEndTab% - \if\given{#1}\caption{#1}\fi% - \if\given{#2}\label{#2}\fi% - \endcenter% + \endcenter\vspace{2ex}% } - \center + \vspace{2ex}\center \opt{HAVEREMOTEKEYMAP}{ % here is the table width defined for 3 columns \tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule\rowcolor{tblhdrbgcolor} |