2007-01-02 20:50:03 +00:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
% __________ __ ___.
|
|
|
|
% Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
% Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
% Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
% Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
% \/ \/ \/ \/ \/
|
|
|
|
% - M A N U A L -
|
|
|
|
%
|
|
|
|
% $Id$
|
|
|
|
%
|
|
|
|
% Copyright (C) 2006 The Rockbox Manual Team
|
|
|
|
%
|
|
|
|
% All files in this archive are subject to the GNU Free Documentation License
|
2007-12-14 02:03:58 +00:00
|
|
|
% See the file COPYING-MANUAL in the source tree docs/ directory for full license
|
2007-01-02 20:50:03 +00:00
|
|
|
% agreement.
|
|
|
|
%
|
|
|
|
% Contributors are listed in the file docs/CREDITS-MANUAL
|
|
|
|
%
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
2006-03-29 18:48:52 +00:00
|
|
|
\documentclass[a4paper,11pt]{scrreprt}
|
2008-12-02 23:12:39 +00:00
|
|
|
\usepackage[utf8]{inputenc}
|
2008-12-01 21:21:42 +00:00
|
|
|
% This manual used to use Palatino as font. This caused issues with small caps
|
|
|
|
% (textsc), so do not use that font as default one anymore.
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-03-29 18:40:42 +00:00
|
|
|
\usepackage{tabularx}
|
2006-04-02 13:50:01 +00:00
|
|
|
\usepackage{multirow}
|
2006-06-05 10:08:54 +00:00
|
|
|
\usepackage{multicol}
|
2006-03-24 11:53:07 +00:00
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{float}
|
|
|
|
\floatstyle{ruled}
|
|
|
|
|
2006-04-08 21:00:22 +00:00
|
|
|
\usepackage{hyperref}
|
2008-09-23 20:27:39 +00:00
|
|
|
\usepackage{enumitem}
|
2006-04-08 21:00:22 +00:00
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{optional}
|
|
|
|
|
2009-08-23 22:23:33 +00:00
|
|
|
\usepackage[table]{xcolor}
|
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\input{platform/\platform.tex}
|
2008-02-13 16:40:57 +00:00
|
|
|
\input{features.tex}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-06-07 18:48:56 +00:00
|
|
|
\newcommand{\playername}{\playerman\ \playerlongtype}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-04-08 21:00:22 +00:00
|
|
|
\hypersetup{% add some values to the pdf properties
|
|
|
|
colorlinks = true,
|
|
|
|
pdfstartview = FitV,
|
|
|
|
linkcolor = blue,
|
|
|
|
citecolor = blue,
|
|
|
|
urlcolor = blue,
|
|
|
|
pdftitle = {Rockbox user manual},
|
|
|
|
pdfauthor = {The Rockbox Team},
|
|
|
|
pdfsubject = {Rockbox user manual for \playername}
|
|
|
|
}
|
|
|
|
|
2006-06-07 12:15:46 +00:00
|
|
|
\newcommand{\fname}[1]{\texttt{#1}}
|
2006-02-06 07:25:25 +00:00
|
|
|
\newcommand{\tabeltc}[1]{{\centering #1 \par}}
|
|
|
|
\newcommand{\tabelth}[1]{{\centering \textbf{\textit{#1}} \par}}
|
|
|
|
|
2006-03-31 12:25:22 +00:00
|
|
|
\newcommand{\fixme}[1]{\textbf{\textcolor{red}{#1}}}
|
|
|
|
|
2009-08-24 18:08:00 +00:00
|
|
|
% Colors used to typeset table headers and alternating table rows
|
2009-08-24 22:50:45 +00:00
|
|
|
\colorlet{tblhdrbgcolor}{blue!30} % Background color for headers
|
|
|
|
\colorlet{tbloddrowbgcolor}{blue!10} % Background color for odd rows (headers not included)
|
|
|
|
\colorlet{tblevenrowbgcolor}{white} % Background color for even rows (headers not included)
|
2009-08-24 18:08:00 +00:00
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{fancyhdr}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage{verbatim}
|
|
|
|
\usepackage{makeidx}
|
|
|
|
\usepackage{fancyvrb}
|
|
|
|
\usepackage{color}
|
2006-09-17 20:34:10 +00:00
|
|
|
\ifpdfoutput{\usepackage{booktabs}}%
|
|
|
|
{\newcommand{%
|
|
|
|
\toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}%
|
|
|
|
}
|
2006-03-15 10:56:14 +00:00
|
|
|
\usepackage{longtable}
|
2006-03-31 11:50:33 +00:00
|
|
|
\usepackage{url}
|
|
|
|
\urlstyle{sf}
|
2006-03-31 13:29:27 +00:00
|
|
|
\usepackage{marvosym}
|
2007-01-07 17:10:44 +00:00
|
|
|
\usepackage{rotating}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-09-17 20:34:10 +00:00
|
|
|
% pdf output: try pdf first, then png and jpg as file format
|
|
|
|
% html output: try png first, then jpg. Ignore pdf files
|
|
|
|
% this only applies if no file extension is given!
|
|
|
|
\ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg}}%
|
|
|
|
{\DeclareGraphicsExtensions{.png,.jpg}}
|
|
|
|
|
2006-03-30 22:03:46 +00:00
|
|
|
% fancy header style adjustments
|
2006-02-06 07:25:25 +00:00
|
|
|
\fancyhead{}
|
|
|
|
\fancyfoot{}
|
2006-08-13 18:55:59 +00:00
|
|
|
\fancyhead[L]{{\nouppercase{\textsc{\leftmark}}}}
|
2006-03-30 22:03:46 +00:00
|
|
|
\fancyhead[R]{\iffloatpage{}{\thepage}}
|
2006-06-05 16:31:34 +00:00
|
|
|
\fancyfoot[L]{\textsc{The Rockbox manual}}
|
2006-06-13 16:39:07 +00:00
|
|
|
\fancyfoot[R]{\textsc{\playerman{} \playertype}}
|
2006-08-13 18:55:59 +00:00
|
|
|
\fancypagestyle{plain}{}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
|
|
|
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
|
|
|
|
\renewcommand{\footrulewidth}{\iffloatpage{0pt}{0.4pt}}
|
|
|
|
\setlength{\headheight}{18.5pt}
|
|
|
|
\newcounter{example}[chapter]
|
2006-03-24 11:53:07 +00:00
|
|
|
|
2009-08-29 18:28:50 +00:00
|
|
|
\ifpdfoutput{%
|
2009-08-29 22:29:22 +00:00
|
|
|
\renewcommand{\toprule}{\specialrule{\heavyrulewidth}{\abovetopsep}{0pt}}
|
|
|
|
\renewcommand{\midrule}{\specialrule{\lightrulewidth}{0pt}{\belowrulesep}}
|
2009-08-29 18:28:50 +00:00
|
|
|
}{}
|
2009-08-29 21:38:49 +00:00
|
|
|
\newcommand{\tblhdrstrut}{\rule[-1.3ex]{0mm}{4.0ex}}
|
|
|
|
|
2009-08-29 18:28:50 +00:00
|
|
|
|
2006-06-07 12:15:46 +00:00
|
|
|
%% \newenvironment{example}
|
|
|
|
%% {\stepcounter{example}\paragraph{Example \theexample:}}
|
|
|
|
%% {\hfill$\Box$
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-06-07 12:15:46 +00:00
|
|
|
%% \bigskip
|
|
|
|
%% \noindent}
|
2006-03-24 11:53:07 +00:00
|
|
|
|
2006-03-30 15:54:47 +00:00
|
|
|
% found on the internet, posting by Donald Arseneau
|
|
|
|
% I may as well include my robust expandable definions, which can be
|
|
|
|
% used in \edef or \write where the \def would not be executed:
|
|
|
|
%
|
|
|
|
% \if\blank --- checks if parameter is blank (Spaces count as blank)
|
|
|
|
% \if\given --- checks if parameter is not blank: like \if\blank{#1}\else
|
|
|
|
% \if\nil --- checks if parameter is null (spaces are NOT null)
|
|
|
|
% use \if\given{ } ... \else ... \fi etc.
|
|
|
|
%
|
|
|
|
{\catcode`\!=8 % funny catcode so ! will be a delimiter
|
|
|
|
\catcode`\Q=3 % funny catcode so Q will be a delimiter
|
|
|
|
\long\gdef\given#1{88\fi\Ifbl@nk#1QQQ\empty!}
|
|
|
|
\long\gdef\blank#1{88\fi\Ifbl@nk#1QQ..!}% if null or spaces
|
|
|
|
\long\gdef\nil#1{\IfN@Ught#1* {#1}!}% if null
|
|
|
|
\long\gdef\IfN@Ught#1 #2!{\blank{#2}}
|
|
|
|
\long\gdef\Ifbl@nk#1#2Q#3!{\ifx#3}% same as above
|
|
|
|
}
|
|
|
|
|
2008-09-23 20:27:39 +00:00
|
|
|
% environment for setting the changelog.
|
|
|
|
\newenvironment{changelog}%
|
|
|
|
{\renewcommand{\labelitemi}{$\star$}\setitemize{noitemsep,topsep=0pt}%
|
|
|
|
\begin{itemize}}%
|
|
|
|
{\end{itemize}}
|
|
|
|
|
|
|
|
|
2010-05-20 16:20:58 +00:00
|
|
|
\newcommand{\dapdisplaysize}{\dapdisplaywidth$\times$\dapdisplayheight$\times$\dapdisplaydepth}
|
|
|
|
\newcommand{\genericimg}{\dapdisplaywidth x\dapdisplayheight x\dapdisplaydepth}
|
|
|
|
|
2006-03-30 15:54:47 +00:00
|
|
|
% add screenshot image.
|
|
|
|
% Usage: \screenshot{filename}{caption}{label}
|
2006-04-26 11:06:45 +00:00
|
|
|
% By using the 'H' (HERE) placement, the screenshots are placed where
|
|
|
|
% we want them.
|
2006-03-30 15:54:47 +00:00
|
|
|
% Note: use this only for screenshots!
|
|
|
|
% Note: leave caption empty to supress it.
|
|
|
|
\newcommand{\screenshot}[3]{
|
2006-04-26 11:06:45 +00:00
|
|
|
\begin{figure}[H]
|
2006-03-30 15:54:47 +00:00
|
|
|
\begin{center}
|
2006-06-04 11:20:06 +00:00
|
|
|
\IfFileExists{#1-\genericimg-\specimg.png}
|
2006-08-18 14:32:15 +00:00
|
|
|
{\includegraphics[width=\screenshotsize]{#1-\genericimg-\specimg.png}
|
2006-06-04 11:20:06 +00:00
|
|
|
\typeout{Note: device specific image used}}
|
|
|
|
{\IfFileExists{#1-\genericimg.png}
|
2006-08-18 14:32:15 +00:00
|
|
|
{\includegraphics[width=\screenshotsize]{#1-\genericimg.png}}
|
2006-06-04 11:20:06 +00:00
|
|
|
{\IfFileExists{#1}
|
2006-08-18 14:32:15 +00:00
|
|
|
{\includegraphics[width=\screenshotsize]{#1}
|
2006-06-04 11:20:06 +00:00
|
|
|
\typeout{Warning: deprecated plain image name used}}%
|
|
|
|
{\typeout{Missing image: #1 (\genericimg) (\specimg)}%
|
|
|
|
\color{red}{\textbf{WARNING!} Image not found}%
|
|
|
|
}
|
2006-04-02 17:29:44 +00:00
|
|
|
}
|
|
|
|
}
|
2006-04-01 19:16:12 +00:00
|
|
|
\if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%
|
2006-03-30 15:54:47 +00:00
|
|
|
\caption{#2}}\fi
|
|
|
|
\end{center}
|
|
|
|
\end{figure}
|
|
|
|
}
|
2006-03-24 11:53:07 +00:00
|
|
|
|
2006-03-31 13:29:27 +00:00
|
|
|
% command to display a note.
|
|
|
|
% Usage: \note{text of your note}
|
|
|
|
% Note: do NOT use \textbf or similar to emphasize text, use \emph!
|
2006-07-17 19:10:31 +00:00
|
|
|
\ifpdfoutput{
|
2006-03-31 13:29:27 +00:00
|
|
|
\newcommand{\note}[1]{
|
2010-05-08 11:56:28 +00:00
|
|
|
\ifinner\else\vspace{1ex}\par\noindent\fi
|
2006-04-01 15:35:30 +00:00
|
|
|
\textbf{Note:}\ %
|
2010-05-08 11:56:28 +00:00
|
|
|
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}#1\par\vspace{1ex}\fi%
|
2006-07-17 19:10:31 +00:00
|
|
|
}}
|
|
|
|
{\newcommand{\note}[1]{\ifinner\else\par\noindent\fi\textbf{Note:{} }#1\par}}
|
2006-03-31 13:29:27 +00:00
|
|
|
|
|
|
|
% command to display a warning.
|
|
|
|
% Usage: \warn{text of your warning}
|
|
|
|
% Note: do NOT use \textbf or similar to emphasize text!
|
2006-07-17 19:10:31 +00:00
|
|
|
\ifpdfoutput{
|
2006-03-31 13:29:27 +00:00
|
|
|
\newcommand{\warn}[1]{
|
2006-04-01 15:35:30 +00:00
|
|
|
\ifinner\else\par\noindent\fi
|
|
|
|
\textbf{Warning:\ }%
|
|
|
|
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}#1\par\fi%
|
2006-07-17 19:10:31 +00:00
|
|
|
}}
|
|
|
|
{\newcommand{\warn}[1]{\ifinner\else\par\noindent\fi\textbf{Warning:{} }#1}}
|
2006-04-01 15:35:30 +00:00
|
|
|
|
2006-07-19 16:06:37 +00:00
|
|
|
% command to mark a text block as intended especially for blind people
|
|
|
|
% Usage: \blind{text}
|
|
|
|
\ifpdfoutput{
|
|
|
|
\newcommand{\blind}[1]{
|
|
|
|
\ifinner\else\par\noindent\fi
|
|
|
|
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\ForwardToEnd}}#1\par\fi%
|
|
|
|
}}
|
|
|
|
{\newcommand{\blind}[1]{\ifinner\else\par\noindent\fi#1}}
|
|
|
|
|
2006-04-26 11:06:45 +00:00
|
|
|
% make table floats use "H" (as for screenshots) as default positioning
|
|
|
|
\makeatletter\renewcommand{\fps@table}{H}\makeatother
|
2006-04-03 18:14:25 +00:00
|
|
|
% change defaults for floats on a page as we have a lot of small images
|
|
|
|
\setcounter{topnumber}{3} % default: 2
|
|
|
|
\setcounter{bottomnumber}{2} % default: 1
|
|
|
|
\setcounter{totalnumber}{5} % default: 3
|
|
|
|
|
2006-04-03 22:45:01 +00:00
|
|
|
|
2009-08-24 21:22:18 +00:00
|
|
|
% Environment for typesetting tables in a consistent way. The header has
|
|
|
|
% a darker background; rows are white and light gray (alternating). Top,
|
|
|
|
% middle and bottom rules are automatically set.
|
|
|
|
%
|
|
|
|
% Params:
|
|
|
|
% #1 -- table width
|
|
|
|
% #2 -- column specification (as used in the package tabularx)
|
|
|
|
% #3 -- contents of the header row. The number of items must
|
|
|
|
% match the number of specs in #2
|
|
|
|
% #4 -- caption (optional). If used then this must be inside a floating
|
|
|
|
% environment, e.g. table
|
|
|
|
% #5 -- label (optional)
|
|
|
|
%
|
|
|
|
% Example:
|
|
|
|
% \begin{rbtabular}{0.9\textwidth}{lX}{Col1 & Col2}{}{}
|
|
|
|
% A1 & A2\\
|
|
|
|
% B1 & B2\\
|
|
|
|
% C1 & C2\\
|
|
|
|
% \end{rbtabular}
|
|
|
|
%
|
|
|
|
\newenvironment{rbtabular}[5]{%
|
2009-08-24 22:03:30 +00:00
|
|
|
\rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
|
2009-08-24 21:22:18 +00:00
|
|
|
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
|
|
|
|
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
|
2009-08-29 18:28:50 +00:00
|
|
|
\bottomrule
|
2009-08-24 21:22:18 +00:00
|
|
|
\SavedEndTab%
|
|
|
|
\if\given{#4}\caption{#4}\fi%
|
|
|
|
\if\given{#5}\label{#5}\fi%
|
|
|
|
\endcenter%
|
|
|
|
}
|
|
|
|
\center
|
2009-08-29 18:28:50 +00:00
|
|
|
\tabularx{#1}{#2}\toprule\rowcolor{tblhdrbgcolor}
|
2009-08-29 21:38:49 +00:00
|
|
|
\tblhdrstrut#3\\\midrule
|
2009-08-24 21:22:18 +00:00
|
|
|
}{%
|
|
|
|
\endtabularx
|
|
|
|
}
|
|
|
|
|
2009-06-20 19:17:06 +00:00
|
|
|
|
|
|
|
|
2006-04-03 22:45:01 +00:00
|
|
|
|
2006-04-09 21:22:42 +00:00
|
|
|
% command to set the default table heading for button lists
|
2009-08-29 21:38:49 +00:00
|
|
|
\newcommand{\taghead}{\tblhdrstrut\textbf{Tag} & \textbf{Description} \\\midrule}
|
2006-04-09 21:22:42 +00:00
|
|
|
|
|
|
|
% environment intended to be used with tag maps (for wps)
|
2009-06-20 22:15:49 +00:00
|
|
|
% usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{tagmap}
|
2006-04-09 21:22:42 +00:00
|
|
|
% Note: this automatically sets the table lines.
|
|
|
|
% Note: you *need* to terminate the last line with a linebreak \\
|
|
|
|
% Cheers for the usenet helping me building this up :)
|
2010-03-07 22:12:16 +00:00
|
|
|
\newenvironment{tagmap}{%
|
2009-08-24 22:12:45 +00:00
|
|
|
\rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
|
2006-04-09 21:22:42 +00:00
|
|
|
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
|
|
|
|
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
|
2009-08-29 18:28:50 +00:00
|
|
|
\bottomrule
|
2006-04-09 21:22:42 +00:00
|
|
|
\SavedEndTab%
|
|
|
|
\endcenter%
|
|
|
|
}
|
|
|
|
\center
|
2009-08-29 18:28:50 +00:00
|
|
|
\tabularx{\textwidth}{lX}\toprule\rowcolor{tblhdrbgcolor} % here is the table width defined
|
2006-04-09 21:22:42 +00:00
|
|
|
\taghead
|
|
|
|
}{%
|
|
|
|
\endtabularx
|
|
|
|
}
|
|
|
|
|
2008-12-01 21:21:42 +00:00
|
|
|
% When creating HTML, use the soul package.
|
|
|
|
% This produces much nicer HTML code (textsc results in each character being
|
|
|
|
% put in a separate <span>).
|
|
|
|
\ifpdfoutput{\newcommand{\caps}[1]{\textsc{#1}}}{\usepackage{soul}}
|
|
|
|
\newcommand{\setting}[1]{\caps{#1}}
|
2006-04-09 21:22:42 +00:00
|
|
|
|
2006-05-28 15:49:17 +00:00
|
|
|
\newcommand{\config}[1]{\texttt{#1}}
|
|
|
|
|
2007-01-02 20:50:03 +00:00
|
|
|
% set link to download server
|
|
|
|
% Usage: \download{bootloader/bootloader-ipodnano.ipod}
|
|
|
|
% gets expanded to
|
|
|
|
% "http://download.rockbox.org/bootloader/bootloader-ipodnano.ipod"
|
|
|
|
\newcommand{\download}[1]{\url{http://download.rockbox.org/#1}}
|
|
|
|
|
2006-05-28 15:49:17 +00:00
|
|
|
% set link to the wiki.
|
|
|
|
% Usage: \wikilink{WebHome}
|
|
|
|
% with "WebHome" being the wiki page name
|
2007-09-24 22:39:24 +00:00
|
|
|
\newcommand{\wikibaseurl}{http://www.rockbox.org/wiki/}
|
|
|
|
\ifpdfoutput{\newcommand{\wikiicon}{\Pointinghand}}
|
|
|
|
{\newcommand{\wikiicon}{}}
|
|
|
|
\newcommand{\wikilink}[1]{\wikiicon{}\href{\wikibaseurl#1}{#1}}
|
|
|
|
%\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/wiki/#1}}
|
2006-05-28 15:49:17 +00:00
|
|
|
|
2006-06-06 17:42:27 +00:00
|
|
|
% define environment "code" based on fancyvrb.
|
|
|
|
% use it to set code the user should type / see on his screen.
|
|
|
|
% Note: the first 4 characters of each line will be stripped,
|
|
|
|
% requiring everything to be indendet by exactly _4_ spaces!
|
|
|
|
% This is intended to make the LaTeX sources more readable.
|
|
|
|
% Note: when using the code environment you need to use optv instead of opt!
|
|
|
|
\DefineVerbatimEnvironment{code}{Verbatim}%
|
2007-01-07 17:10:44 +00:00
|
|
|
{framerule=0.4pt, framesep=1ex,frame=lines,%numbers=left,stepnumber=5,%
|
|
|
|
gobble=4,fontsize=\footnotesize,xleftmargin=10pt,xrightmargin=10pt,%
|
2006-06-06 17:42:27 +00:00
|
|
|
label=\textnormal{\textsc{Code}},%
|
|
|
|
commandchars=\\\{\}%
|
|
|
|
}
|
|
|
|
|
2006-06-07 12:15:46 +00:00
|
|
|
% define environment "example" based on fancyvrb.
|
|
|
|
% use it to set example code the user should type / see on his screen.
|
|
|
|
% Note: the first 4 characters of each line will be stripped,
|
|
|
|
% requiring everything to be indendet by exactly _4_ spaces!
|
|
|
|
% This is intended to make the LaTeX sources more readable.
|
|
|
|
% Note: when using the example environment you need to use optv instead of opt!
|
|
|
|
\DefineVerbatimEnvironment{example}{Verbatim}%
|
|
|
|
{commentchar=!,framerule=0.4pt, framesep=1ex,frame=lines,%
|
2007-01-07 17:10:44 +00:00
|
|
|
gobble=4,fontsize=\footnotesize,xleftmargin=10pt,xrightmargin=10pt,%
|
2006-06-07 12:15:46 +00:00
|
|
|
label=\textnormal{\textsc{Example}},%
|
|
|
|
commandchars=\\\{\}%
|
|
|
|
}
|
|
|
|
|
2010-03-27 13:14:14 +00:00
|
|
|
% Use the nopt command to exclude a certain defined feature from a section
|
2006-06-07 20:01:27 +00:00
|
|
|
% Example:
|
|
|
|
% \nopt{ondio}{This text will be excluded for ondios}
|
2010-03-27 13:14:14 +00:00
|
|
|
\makeatletter
|
|
|
|
\newcommand*\nopt[1]{\if\Opl@notlisted{#1}\expandafter\@firstofone
|
|
|
|
\else \expandafter\@gobble \fi}
|
|
|
|
\makeatother
|
2006-07-31 12:21:57 +00:00
|
|
|
|
2006-08-01 11:57:38 +00:00
|
|
|
% Use the reference to handle get a flexible reference command
|
|
|
|
% usage \reference{ref_section}
|
2006-08-13 18:55:59 +00:00
|
|
|
\ifpdfoutput{%
|
2006-08-01 11:57:38 +00:00
|
|
|
\newcommand{\reference}[1]{%
|
2006-08-22 16:34:41 +00:00
|
|
|
section~\ref{#1} (page~\pageref{#1})%
|
2006-07-31 12:21:57 +00:00
|
|
|
}}
|
2006-08-22 16:34:41 +00:00
|
|
|
{\newcommand{\reference}[1]{section~\ref{#1}}}
|
2006-08-07 20:46:26 +00:00
|
|
|
|
|
|
|
% special HTML output adjustments
|
|
|
|
\ifpdfoutput{}{\setlength{\parindent}{0mm}}
|
|
|
|
\ifpdfoutput{}{\renewcommand{\Forward}[1]{$\triangleright${}#1}}
|
2006-08-18 14:32:15 +00:00
|
|
|
|
2006-08-24 15:09:34 +00:00
|
|
|
\newcommand{\btnfnt}[1]{\textbf{#1}}
|
2006-10-05 16:47:17 +00:00
|
|
|
%\hfuzz=2pt
|
|
|
|
|
|
|
|
% generate index
|
|
|
|
\usepackage{makeidx}
|
|
|
|
\makeindex
|
2009-06-20 19:17:06 +00:00
|
|
|
|
2009-08-29 18:28:50 +00:00
|
|
|
|
2009-06-20 19:17:06 +00:00
|
|
|
% command to set the default table heading for button lists
|
2009-08-29 18:28:50 +00:00
|
|
|
\newcommand{\btnhead}{\textbf{Key} \opt{HAVEREMOTEKEYMAP}{%
|
|
|
|
& \textbf{Remote Key}} & \textbf{Action} \\\midrule}
|
2009-06-20 19:17:06 +00:00
|
|
|
% environment intended to be used with button maps
|
2010-05-20 17:38:38 +00:00
|
|
|
% usage: \begin{btnmap} Button & ButtonAction \\ \end{btnmap}
|
2009-06-20 19:17:06 +00:00
|
|
|
% Note: this automatically sets the table lines.
|
|
|
|
% Note: you *need* to terminate the last line with a linebreak \\
|
|
|
|
% Cheers for the usenet helping me building this up :)
|
|
|
|
|
2009-06-20 22:00:47 +00:00
|
|
|
% tabularx is set to be either two or three columns wide depending on whether
|
2009-06-29 18:33:44 +00:00
|
|
|
% HAVEREMOTEKEYMAP is defined in the platform file for the target in question.
|
2009-06-20 22:00:47 +00:00
|
|
|
% If it is, then every button table has three columns of the form
|
2009-06-20 19:17:06 +00:00
|
|
|
% Main Unit Key & Remote Key & Description \\
|
|
|
|
|
2010-05-20 17:38:38 +00:00
|
|
|
\newenvironment{btnmap}{%
|
2009-08-24 22:12:45 +00:00
|
|
|
\rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor}
|
2009-06-20 19:17:06 +00:00
|
|
|
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
|
|
|
|
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
|
2009-08-29 18:28:50 +00:00
|
|
|
\bottomrule
|
2009-06-20 19:17:06 +00:00
|
|
|
\SavedEndTab%
|
2010-05-20 17:38:38 +00:00
|
|
|
\endcenter\vspace{2ex}%
|
2009-06-20 19:17:06 +00:00
|
|
|
}
|
2010-05-20 17:38:38 +00:00
|
|
|
\vspace{2ex}\center
|
2009-06-29 18:33:44 +00:00
|
|
|
\opt{HAVEREMOTEKEYMAP}{
|
2009-06-20 22:00:47 +00:00
|
|
|
% here is the table width defined for 3 columns
|
2009-08-29 18:28:50 +00:00
|
|
|
\tabularx{.95\textwidth}{>{\raggedright\arraybackslash}p{.2\textwidth}>{\raggedright\arraybackslash}p{.2\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}
|
2009-06-20 22:00:47 +00:00
|
|
|
}
|
2009-06-29 18:33:44 +00:00
|
|
|
\nopt{HAVEREMOTEKEYMAP}{
|
2009-06-20 22:00:47 +00:00
|
|
|
% here is the table width defined for 2 columns
|
2009-08-29 18:28:50 +00:00
|
|
|
\tabularx{.75\textwidth}{>{\raggedright\arraybackslash}p{.22\textwidth}X}\toprule\rowcolor{tblhdrbgcolor}
|
2009-06-20 19:17:06 +00:00
|
|
|
}
|
2009-08-29 21:38:49 +00:00
|
|
|
\tblhdrstrut\btnhead
|
2009-06-20 19:17:06 +00:00
|
|
|
}{%
|
|
|
|
\endtabularx
|
|
|
|
}
|