From 4acf5d35fe4061d6f88e49c59f1e74216f2558fe Mon Sep 17 00:00:00 2001
From: Alexander Levin <al.le@rockbox.org>
Date: Mon, 24 Aug 2009 18:08:00 +0000
Subject: Introduce names for header and row color in the tables so that they
 are the same throughout the manual and can be changed easily

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22501 a1c6a512-1295-4272-9138-f99709370657
---
 manual/preamble.tex | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'manual/preamble.tex')

diff --git a/manual/preamble.tex b/manual/preamble.tex
index 2495f13b88..8bbce066bd 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -60,6 +60,10 @@
 
 \newcommand{\fixme}[1]{\textbf{\textcolor{red}{#1}}}
 
+% Colors used to typeset table headers and alternating table rows
+\colorlet{tblhdrbgcolor}{gray!60} % Background color for headers
+\colorlet{tblrowbgcolor}{gray!30} % Background color for rows
+
 \usepackage{fancyhdr}
 \usepackage{graphicx}
 \usepackage{verbatim}
@@ -210,7 +214,7 @@
 % Note: you still need to enclose this with \begin{table} / \end{table}
 % Cheers for the usenet helping me building this up :)
 \newenvironment{tagmap}[2]{%
-\rowcolors{1}{}{gray!30}
+\rowcolors{1}{}{tblrowbgcolor}
   \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
   \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
     \bottomrule
@@ -320,7 +324,7 @@
 % Main Unit Key  &  Remote Key  &  Description \\
 
 \newenvironment{btnmap}[2]{%
-  \rowcolors{1}{}{gray!30}
+  \rowcolors{1}{}{tblrowbgcolor}
   \expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
   \expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
     \bottomrule
-- 
cgit v1.2.3

