forked from len0rd/rockbox
Make table headers look like the original booktabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22550 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f62125bb72
commit
876cce1fbe
1 changed files with 5 additions and 3 deletions
|
|
@ -106,6 +106,8 @@
|
||||||
\setlength{\belowrulesep}{0pt}
|
\setlength{\belowrulesep}{0pt}
|
||||||
\setlength{\aboverulesep}{0pt}
|
\setlength{\aboverulesep}{0pt}
|
||||||
}{}
|
}{}
|
||||||
|
\newcommand{\tblhdrstrut}{\rule[-1.3ex]{0mm}{4.0ex}}
|
||||||
|
|
||||||
|
|
||||||
%% \newenvironment{example}
|
%% \newenvironment{example}
|
||||||
%% {\stepcounter{example}\paragraph{Example \theexample:}}
|
%% {\stepcounter{example}\paragraph{Example \theexample:}}
|
||||||
|
|
@ -238,7 +240,7 @@
|
||||||
}
|
}
|
||||||
\center
|
\center
|
||||||
\tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor}
|
\tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor}
|
||||||
\rule{0pt}{2.9ex}#3\\\midrule
|
\tblhdrstrut#3\\\midrule
|
||||||
}{%
|
}{%
|
||||||
\endtabularx
|
\endtabularx
|
||||||
}
|
}
|
||||||
|
|
@ -247,7 +249,7 @@
|
||||||
|
|
||||||
|
|
||||||
% command to set the default table heading for button lists
|
% 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)
|
% environment intended to be used with tag maps (for wps)
|
||||||
% usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap}
|
% usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap}
|
||||||
|
|
@ -384,7 +386,7 @@
|
||||||
% here is the table width defined for 2 columns
|
% here is the table width defined for 2 columns
|
||||||
\tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}
|
\tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}
|
||||||
}
|
}
|
||||||
\rule{0pt}{2.9ex}\btnhead
|
\tblhdrstrut\btnhead
|
||||||
}{%
|
}{%
|
||||||
\endtabularx
|
\endtabularx
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue