1
0
Fork 0
forked from len0rd/rockbox

Fix html manuals for targets with remote keymaps. For some reason using an \opt in preamble.tex with an underscore in the name breaks html manuals (but not pdf).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21566 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alex Parker 2009-06-29 18:33:44 +00:00
parent 8839f18cc8
commit c5d3857715
3 changed files with 11 additions and 11 deletions

View file

@ -8,7 +8,7 @@
\edef\UseOption{\UseOption,HAVE_CAR_ADAPTER_MODE} \edef\UseOption{\UseOption,HAVE_CAR_ADAPTER_MODE}
\edef\UseOption{\UseOption,iriver} \edef\UseOption{\UseOption,iriver}
\edef\UseOption{\UseOption,IRIVER_RC_H100_PAD} \edef\UseOption{\UseOption,IRIVER_RC_H100_PAD}
\edef\UseOption{\UseOption,HAVE_REMOTE_KEYMAP} \edef\UseOption{\UseOption,HAVEREMOTEKEYMAP}
\newcommand{\playerman}{Iriver} \newcommand{\playerman}{Iriver}
\newcommand{\playertype}{H100} \newcommand{\playertype}{H100}

View file

@ -302,7 +302,7 @@
% command to set the default table heading for button lists % command to set the default table heading for button lists
\newcommand{\btnhead}{\textbf{Key} \opt{HAVE_REMOTE_KEYMAP}{% \newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{%
& \textbf{Remote Key}} & \textbf{Action} \\\midrule} & \textbf{Remote Key}} & \textbf{Action} \\\midrule}
% environment intended to be used with button maps % environment intended to be used with button maps
% usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap} % usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap}
@ -312,7 +312,7 @@
% Cheers for the usenet helping me building this up :) % Cheers for the usenet helping me building this up :)
% tabularx is set to be either two or three columns wide depending on whether % tabularx is set to be either two or three columns wide depending on whether
% HAVE_REMOTE_KEYMAP is defined in the platform file for the target in question. % HAVEREMOTEKEYMAP is defined in the platform file for the target in question.
% If it is, then every button table has three columns of the form % If it is, then every button table has three columns of the form
% Main Unit Key & Remote Key & Description \\ % Main Unit Key & Remote Key & Description \\
@ -326,11 +326,11 @@
\endcenter% \endcenter%
} }
\center \center
\opt{HAVE_REMOTE_KEYMAP}{ \opt{HAVEREMOTEKEYMAP}{
% here is the table width defined for 3 columns % here is the table width defined for 3 columns
\tabularx{.9\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule \tabularx{.9\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule
} }
\nopt{HAVE_REMOTE_KEYMAP}{ \nopt{HAVEREMOTEKEYMAP}{
% 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 \tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule
} }

View file

@ -58,28 +58,28 @@ your WPS (While Playing Screen).
\begin{table} \begin{table}
\begin{btnmap}{}{} \begin{btnmap}{}{}
\ActionWpsVolUp{} / \ActionWpsVolDown \ActionWpsVolUp{} / \ActionWpsVolDown
\opt{HAVE_REMOTE_KEYMAP}{& \ActionRCWpsVolUp{} / \ActionRCWpsVolDown} \opt{IRIVER_RC_H100_PAD}{& \ActionRCWpsVolUp{} / \ActionRCWpsVolDown}
& Volume up/down.\\ & Volume up/down.\\
% %
\ActionWpsSkipPrev \ActionWpsSkipPrev
\opt{HAVE_REMOTE_KEYMAP}{& \ActionRCWpsSkipPrev} \opt{IRIVER_RC_H100_PAD}{& \ActionRCWpsSkipPrev}
& Go to beginning of track, or if pressed while in the & Go to beginning of track, or if pressed while in the
first seconds of a track, go to previous track.\\ first seconds of a track, go to previous track.\\
% %
\ActionWpsSeekBack \ActionWpsSeekBack
\opt{HAVE_REMOTE_KEYMAP}{& \ActionRCWpsSeekBack} \opt{IRIVER_RC_H100_PAD}{& \ActionRCWpsSeekBack}
& Rewind in track.\\ & Rewind in track.\\
% %
\ActionWpsSkipNext \ActionWpsSkipNext
\opt{HAVE_REMOTE_KEYMAP}{& \ActionRCWpsSkipNext} \opt{IRIVER_RC_H100_PAD}{& \ActionRCWpsSkipNext}
& Go to next track.\\ & Go to next track.\\
% %
\ActionWpsSeekFwd \ActionWpsSeekFwd
\opt{HAVE_REMOTE_KEYMAP}{& \ActionRCWpsSeekFwd} \opt{IRIVER_RC_H100_PAD}{& \ActionRCWpsSeekFwd}
& Fast forward in track.\\ & Fast forward in track.\\
% %
\ActionWpsPlay \ActionWpsPlay
\opt{HAVE_REMOTE_KEYMAP}{& \ActionRCWpsPlay} \opt{IRIVER_RC_H100_PAD}{& \ActionRCWpsPlay}
& Toggle play/pause.\\ & Toggle play/pause.\\
% %
\ActionWpsStop \ActionWpsStop