diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/preamble.tex | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex index fa2ef73ae8..a9ace76d12 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex | |||
@@ -65,6 +65,20 @@ | |||
65 | \colorlet{tbloddrowbgcolor}{blue!10} % Background color for odd rows (headers not included) | 65 | \colorlet{tbloddrowbgcolor}{blue!10} % Background color for odd rows (headers not included) |
66 | \colorlet{tblevenrowbgcolor}{white} % Background color for even rows (headers not included) | 66 | \colorlet{tblevenrowbgcolor}{white} % Background color for even rows (headers not included) |
67 | 67 | ||
68 | % We use or own rules to typeset tables since we want the headers to | ||
69 | % be fully filled with colors | ||
70 | \newcommand{\rbtoprule}{\specialrule{\heavyrulewidth}{\abovetopsep}{0pt}% | ||
71 | \arrayrulecolor{tblhdrbgcolor}\specialrule{\belowrulesep}{0pt}{0pt}% | ||
72 | \arrayrulecolor{black}} | ||
73 | \newcommand{\rbmidrule}{\arrayrulecolor{tblhdrbgcolor}\specialrule{\aboverulesep}{0pt}{0pt}% | ||
74 | \arrayrulecolor{black}\specialrule{\lightrulewidth}{0pt}{0pt}% | ||
75 | \arrayrulecolor{tblevenrowbgcolor}\specialrule{\belowrulesep}{0pt}{0pt}% | ||
76 | \arrayrulecolor{black}} | ||
77 | \newcommand{\rbbottomrule}{\specialrule{\heavyrulewidth}{\aboverulesep}{0pt}% | ||
78 | \arrayrulecolor{white}\specialrule{\belowbottomsep}{0pt}{0pt}% | ||
79 | \arrayrulecolor{black}} | ||
80 | |||
81 | |||
68 | \usepackage{fancyhdr} | 82 | \usepackage{fancyhdr} |
69 | \usepackage{graphicx} | 83 | \usepackage{graphicx} |
70 | \usepackage{verbatim} | 84 | \usepackage{verbatim} |
@@ -102,9 +116,6 @@ | |||
102 | \setlength{\headheight}{18.5pt} | 116 | \setlength{\headheight}{18.5pt} |
103 | \newcounter{example}[chapter] | 117 | \newcounter{example}[chapter] |
104 | 118 | ||
105 | \setlength{\belowrulesep}{0pt} | ||
106 | \setlength{\aboverulesep}{0pt} | ||
107 | |||
108 | %% \newenvironment{example} | 119 | %% \newenvironment{example} |
109 | %% {\stepcounter{example}\paragraph{Example \theexample:}} | 120 | %% {\stepcounter{example}\paragraph{Example \theexample:}} |
110 | %% {\hfill$\Box$ | 121 | %% {\hfill$\Box$ |
@@ -228,15 +239,15 @@ | |||
228 | \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} | 239 | \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} |
229 | \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname | 240 | \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname |
230 | \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% | 241 | \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% |
231 | \bottomrule | 242 | \rbbottomrule% |
232 | \SavedEndTab% | 243 | \SavedEndTab% |
233 | \if\given{#4}\caption{#4}\fi% | 244 | \if\given{#4}\caption{#4}\fi% |
234 | \if\given{#5}\label{#5}\fi% | 245 | \if\given{#5}\label{#5}\fi% |
235 | \endcenter% | 246 | \endcenter% |
236 | } | 247 | } |
237 | \center | 248 | \center |
238 | \tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor} | 249 | \tabularx{#1}{#2}\rbtoprule\rowcolor{tblhdrbgcolor} |
239 | \rule{0pt}{2.9ex}#3\\\midrule | 250 | #3\\\rbmidrule |
240 | }{% | 251 | }{% |
241 | \endtabularx | 252 | \endtabularx |
242 | } | 253 | } |
@@ -245,7 +256,7 @@ | |||
245 | 256 | ||
246 | 257 | ||
247 | % command to set the default table heading for button lists | 258 | % command to set the default table heading for button lists |
248 | \newcommand{\taghead}{\rule{0pt}{2.9ex}\textbf{Tag} & \textbf{Description} \\\midrule} | 259 | \newcommand{\taghead}{\textbf{Tag} & \textbf{Description} \\\rbmidrule} |
249 | 260 | ||
250 | % environment intended to be used with tag maps (for wps) | 261 | % environment intended to be used with tag maps (for wps) |
251 | % usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap} | 262 | % usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap} |
@@ -257,14 +268,14 @@ | |||
257 | \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} | 268 | \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} |
258 | \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname | 269 | \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname |
259 | \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% | 270 | \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% |
260 | \bottomrule | 271 | \rbbottomrule% |
261 | \SavedEndTab% | 272 | \SavedEndTab% |
262 | \if\given{#1}\caption{#1}\fi% | 273 | \if\given{#1}\caption{#1}\fi% |
263 | \if\given{#2}\label{#2}\fi% | 274 | \if\given{#2}\label{#2}\fi% |
264 | \endcenter% | 275 | \endcenter% |
265 | } | 276 | } |
266 | \center | 277 | \center |
267 | \tabularx{\textwidth}{lX}\toprule\rowcolor{tblhdrbgcolor} % here is the table width defined | 278 | \tabularx{\textwidth}{lX}\rbtoprule\rowcolor{tblhdrbgcolor} % here is the table width defined |
268 | \taghead | 279 | \taghead |
269 | }{% | 280 | }{% |
270 | \endtabularx | 281 | \endtabularx |
@@ -347,10 +358,9 @@ | |||
347 | \usepackage{makeidx} | 358 | \usepackage{makeidx} |
348 | \makeindex | 359 | \makeindex |
349 | 360 | ||
350 | |||
351 | % command to set the default table heading for button lists | 361 | % command to set the default table heading for button lists |
352 | \newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{% | 362 | \newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{% |
353 | & \textbf{Remote Key}} & \textbf{Action} \\\midrule} | 363 | & \textbf{Remote Key}} & \textbf{Action} \\\rbmidrule} |
354 | % environment intended to be used with button maps | 364 | % environment intended to be used with button maps |
355 | % usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap} | 365 | % usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap} |
356 | % Note: this automatically sets the table lines. | 366 | % Note: this automatically sets the table lines. |
@@ -367,7 +377,7 @@ | |||
367 | \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} | 377 | \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} |
368 | \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname | 378 | \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname |
369 | \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% | 379 | \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{% |
370 | \bottomrule | 380 | \rbbottomrule% |
371 | \SavedEndTab% | 381 | \SavedEndTab% |
372 | \if\given{#1}\caption{#1}\fi% | 382 | \if\given{#1}\caption{#1}\fi% |
373 | \if\given{#2}\label{#2}\fi% | 383 | \if\given{#2}\label{#2}\fi% |
@@ -376,13 +386,13 @@ | |||
376 | \center | 386 | \center |
377 | \opt{HAVEREMOTEKEYMAP}{ | 387 | \opt{HAVEREMOTEKEYMAP}{ |
378 | % here is the table width defined for 3 columns | 388 | % here is the table width defined for 3 columns |
379 | \tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule\rowcolor{tblhdrbgcolor} | 389 | \tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\rbtoprule\rowcolor{tblhdrbgcolor} |
380 | } | 390 | } |
381 | \nopt{HAVEREMOTEKEYMAP}{ | 391 | \nopt{HAVEREMOTEKEYMAP}{ |
382 | % here is the table width defined for 2 columns | 392 | % here is the table width defined for 2 columns |
383 | \tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule\rowcolor{tblhdrbgcolor} | 393 | \tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\rbtoprule\rowcolor{tblhdrbgcolor} |
384 | } | 394 | } |
385 | \rule{0pt}{2.9ex}\btnhead | 395 | \btnhead |
386 | }{% | 396 | }{% |
387 | \endtabularx | 397 | \endtabularx |
388 | } | 398 | } |