summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r--manual/preamble.tex11
1 files changed, 4 insertions, 7 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 3eef5eb3b8..9223fee406 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -354,10 +354,9 @@
354\newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{% 354\newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{%
355 & \textbf{Remote Key}} & \textbf{Action} \\\midrule} 355 & \textbf{Remote Key}} & \textbf{Action} \\\midrule}
356% environment intended to be used with button maps 356% environment intended to be used with button maps
357% usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap} 357% usage: \begin{btnmap} Button & ButtonAction \\ \end{btnmap}
358% Note: this automatically sets the table lines. 358% Note: this automatically sets the table lines.
359% Note: you *need* to terminate the last line with a linebreak \\ 359% Note: you *need* to terminate the last line with a linebreak \\
360% Note: you still need to enclose this with \begin{table} / \end{table}
361% Cheers for the usenet helping me building this up :) 360% Cheers for the usenet helping me building this up :)
362 361
363% tabularx is set to be either two or three columns wide depending on whether 362% tabularx is set to be either two or three columns wide depending on whether
@@ -365,17 +364,15 @@
365% If it is, then every button table has three columns of the form 364% If it is, then every button table has three columns of the form
366% Main Unit Key & Remote Key & Description \\ 365% Main Unit Key & Remote Key & Description \\
367 366
368\newenvironment{btnmap}[2]{% 367\newenvironment{btnmap}{%
369 \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} 368 \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
370 \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname 369 \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
371 \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% 370 \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
372 \bottomrule 371 \bottomrule
373 \SavedEndTab% 372 \SavedEndTab%
374 \if\given{#1}\caption{#1}\fi% 373 \endcenter\vspace{2ex}%
375 \if\given{#2}\label{#2}\fi%
376 \endcenter%
377 } 374 }
378 \center 375 \vspace{2ex}\center
379 \opt{HAVEREMOTEKEYMAP}{ 376 \opt{HAVEREMOTEKEYMAP}{
380 % here is the table width defined for 3 columns 377 % here is the table width defined for 3 columns
381 \tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule\rowcolor{tblhdrbgcolor} 378 \tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}