summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-08-29 21:38:49 +0000
committerAlexander Levin <al.le@rockbox.org>2009-08-29 21:38:49 +0000
commit876cce1fbe0a06ac7d0a4e129f09f695cae1a84b (patch)
tree680ac98056c2cac680bf30b9858a51f2487edd73
parentf62125bb722209d4e6a9d4aad8753e867ab768ba (diff)
Make table headers look like the original booktabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22550 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--manual/preamble.tex8
1 files changed, 5 insertions, 3 deletions
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
}