From 876cce1fbe0a06ac7d0a4e129f09f695cae1a84b Mon Sep 17 00:00:00 2001
From: Alexander Levin <al.le@rockbox.org>
Date: Sat, 29 Aug 2009 21:38:49 +0000
Subject: Make table headers look like the original booktabs

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

(limited to 'manual/preamble.tex')

diff --git a/manual/preamble.tex b/manual/preamble.tex
index 4a4ac98ee8..cb48a4b907 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -106,6 +106,8 @@
   \setlength{\belowrulesep}{0pt}
   \setlength{\aboverulesep}{0pt}
   }{}
+\newcommand{\tblhdrstrut}{\rule[-1.3ex]{0mm}{4.0ex}}
+
 
 %% \newenvironment{example}
 %%     {\stepcounter{example}\paragraph{Example \theexample:}}
@@ -238,7 +240,7 @@
   }
   \center
   \tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor}
-  \rule{0pt}{2.9ex}#3\\\midrule
+  \tblhdrstrut#3\\\midrule
 }{%
   \endtabularx
 }
@@ -247,7 +249,7 @@
 
 
 % command to set the default table heading for button lists
-\newcommand{\taghead}{\rule{0pt}{2.9ex}\textbf{Tag} & \textbf{Description} \\\midrule}
+\newcommand{\taghead}{\tblhdrstrut\textbf{Tag} & \textbf{Description} \\\midrule}
 
 % environment intended to be used with tag maps (for wps)
 % usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap}
@@ -384,7 +386,7 @@
     % here is the table width defined for 2 columns
     \tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}
   }
-  \rule{0pt}{2.9ex}\btnhead
+  \tblhdrstrut\btnhead
 }{%
   \endtabularx
 }
-- 
cgit v1.2.3

