summaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorAlex Parker <rockbox@aeparker.com>2009-08-28 20:42:43 +0000
committerAlex Parker <rockbox@aeparker.com>2009-08-28 20:42:43 +0000
commitbd946c255d8891107824bb58599023b364b82790 (patch)
tree9004e496d23b8c4a67529d66d10b1b80299484e7 /manual
parentec70340eb69de63d6b3d21aafed72531e5c79e0a (diff)
downloadrockbox-bd946c255d8891107824bb58599023b364b82790.tar.gz
rockbox-bd946c255d8891107824bb58599023b364b82790.tar.bz2
rockbox-bd946c255d8891107824bb58599023b364b82790.zip
Fix building the html manual broken by the new top, mid, and bottom rules introduced in r22516
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual')
-rw-r--r--manual/preamble.tex32
1 files changed, 20 insertions, 12 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index a9ace76d12..5177616ddd 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -239,15 +239,17 @@
\rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
- \rbbottomrule%
+ \ifpdfoutput{\rbbottomrule}{\bottomrule}
\SavedEndTab%
\if\given{#4}\caption{#4}\fi%
\if\given{#5}\label{#5}\fi%
\endcenter%
}
\center
- \tabularx{#1}{#2}\rbtoprule\rowcolor{tblhdrbgcolor}
- #3\\\rbmidrule
+ \ifpdfoutput{\tabularx{#1}{#2}\rbtoprule\rowcolor{tblhdrbgcolor}
+ #3\\\rbmidrule}
+ {\tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor}
+ \rule{0pt}{2.9ex}#3\\\midrule}
}{%
\endtabularx
}
@@ -256,7 +258,8 @@
% command to set the default table heading for button lists
-\newcommand{\taghead}{\textbf{Tag} & \textbf{Description} \\\rbmidrule}
+\ifpdfoutput{\newcommand{\taghead}{\textbf{Tag} & \textbf{Description} \\\rbmidrule}}
+ {\newcommand{\taghead}{\rule{0pt}{2.9ex}\textbf{Tag} & \textbf{Description} \\\midrule}}
% environment intended to be used with tag maps (for wps)
% usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap}
@@ -268,14 +271,15 @@
\rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
- \rbbottomrule%
+ \ifpdfoutput{\rbbottomrule}{\bottomrule}%
\SavedEndTab%
\if\given{#1}\caption{#1}\fi%
\if\given{#2}\label{#2}\fi%
\endcenter%
}
\center
-\tabularx{\textwidth}{lX}\rbtoprule\rowcolor{tblhdrbgcolor} % here is the table width defined
+\ifpdfoutput{\tabularx{\textwidth}{lX}\rbtoprule\rowcolor{tblhdrbgcolor}} % here is the table width defined
+ {\tabularx{\textwidth}{lX}\toprule\rowcolor{tblhdrbgcolor}} % here is the table width defined
\taghead
}{%
\endtabularx
@@ -359,8 +363,10 @@
\makeindex
% command to set the default table heading for button lists
-\newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{%
- & \textbf{Remote Key}} & \textbf{Action} \\\rbmidrule}
+\ifpdfoutput{\newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{%
+ & \textbf{Remote Key}} & \textbf{Action} \\\rbmidrule}}
+ {\newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{%
+ & \textbf{Remote Key}} & \textbf{Action} \\\midrule}}
% environment intended to be used with button maps
% usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap}
% Note: this automatically sets the table lines.
@@ -377,7 +383,7 @@
\rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
- \rbbottomrule%
+ \ifpdfoutput{\rbbottomrule}{\bottomrule}%
\SavedEndTab%
\if\given{#1}\caption{#1}\fi%
\if\given{#2}\label{#2}\fi%
@@ -386,13 +392,15 @@
\center
\opt{HAVEREMOTEKEYMAP}{
% here is the table width defined for 3 columns
- \tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\rbtoprule\rowcolor{tblhdrbgcolor}
+ \ifpdfoutput{\tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\rbtoprule\rowcolor{tblhdrbgcolor}}
+ {\tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}}
}
\nopt{HAVEREMOTEKEYMAP}{
% here is the table width defined for 2 columns
- \tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\rbtoprule\rowcolor{tblhdrbgcolor}
+ \ifpdfoutput{\tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\rbtoprule\rowcolor{tblhdrbgcolor}}
+ {\tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}}
}
- \btnhead
+ \ifpdfoutput{\btnhead}{\rule{0pt}{2.9ex}\btnhead}
}{%
\endtabularx
}