2006-03-29 18:48:52 +00:00
|
|
|
\documentclass[a4paper,11pt]{scrreprt}
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage[latin1]{inputenc}
|
2006-03-22 23:26:30 +00:00
|
|
|
\usepackage{palatino}
|
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}
|
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{optional}
|
|
|
|
|
|
|
|
\input{platform/\platform.tex}
|
|
|
|
|
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}}}
|
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{fancyhdr}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage{verbatim}
|
|
|
|
\usepackage{makeidx}
|
|
|
|
\usepackage{amsmath}
|
|
|
|
\usepackage{amssymb}
|
|
|
|
\usepackage{fancyvrb}
|
|
|
|
\usepackage{enumerate}
|
|
|
|
\usepackage{subfigure}
|
|
|
|
\usepackage{color}
|
2006-03-08 15:04:36 +00:00
|
|
|
\usepackage{booktabs}
|
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}
|
2006-06-07 20:01:27 +00:00
|
|
|
\usepackage{ifthen}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-04-03 21:29:47 +00:00
|
|
|
% mark this ad draft version (only for pdflatex) -- comment this out at release
|
2006-07-17 19:10:31 +00:00
|
|
|
\ifpdfoutput{
|
2006-04-03 21:29:47 +00:00
|
|
|
\usepackage{pdfdraftcopy}
|
|
|
|
\draftstring{DRAFT VERSION}
|
|
|
|
% \draftangle{45}
|
2006-07-17 19:10:31 +00:00
|
|
|
}
|
2006-04-03 21:29:47 +00:00
|
|
|
|
2006-03-30 22:03:46 +00:00
|
|
|
% fancy header style adjustments
|
|
|
|
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
|
|
|
|
%\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
|
|
|
|
\renewcommand{\rightmark}[1]{\thechapter\ }
|
2006-02-06 07:25:25 +00:00
|
|
|
\fancyhead{}
|
|
|
|
\fancyfoot{}
|
2006-03-30 22:03:46 +00:00
|
|
|
\fancyhead[L]{{\textsc{\leftmark}}}
|
|
|
|
\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-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
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
% 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}
|
|
|
|
{\includegraphics[width=4cm]{#1-\genericimg-\specimg.png}
|
|
|
|
\typeout{Note: device specific image used}}
|
|
|
|
{\IfFileExists{#1-\genericimg.png}
|
|
|
|
{\includegraphics[width=4cm]{#1-\genericimg.png}}
|
|
|
|
{\IfFileExists{#1}
|
|
|
|
{\includegraphics[width=4cm]{#1}
|
|
|
|
\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]{
|
2006-04-01 15:35:30 +00:00
|
|
|
\ifinner\else\par\noindent\fi
|
|
|
|
\textbf{Note:}\ %
|
|
|
|
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}#1\par\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
|
|
|
% command to set the default table heading for button lists
|
|
|
|
\newcommand{\btnhead}{\textbf{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.
|
|
|
|
% Note: you *need* to terminate the last line with a linebreak \\
|
|
|
|
% Note: you still need to enclose this with \begin{table} / \end{table}
|
|
|
|
% Cheers for the usenet helping me building this up :)
|
|
|
|
\newenvironment{btnmap}[2]{%
|
|
|
|
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
|
|
|
|
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
|
|
|
|
\bottomrule
|
|
|
|
\SavedEndTab%
|
|
|
|
\if\given{#1}\caption{#1}\fi%
|
|
|
|
\if\given{#2}\label{#2}\fi%
|
|
|
|
\endcenter%
|
|
|
|
}
|
|
|
|
\center
|
|
|
|
\tabularx{.75\textwidth}{lX}\toprule % here is the table width defined
|
|
|
|
\btnhead
|
|
|
|
}{%
|
|
|
|
\endtabularx
|
|
|
|
}
|
|
|
|
|
2006-04-09 21:22:42 +00:00
|
|
|
% command to set the default table heading for button lists
|
|
|
|
\newcommand{\taghead}{\textbf{Tag} & \textbf{Description} \\\midrule}
|
|
|
|
|
|
|
|
% environment intended to be used with tag maps (for wps)
|
|
|
|
% usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{btnmap}
|
|
|
|
% Note: this automatically sets the table lines.
|
|
|
|
% Note: you *need* to terminate the last line with a linebreak \\
|
|
|
|
% Note: you still need to enclose this with \begin{table} / \end{table}
|
|
|
|
% Cheers for the usenet helping me building this up :)
|
|
|
|
\newenvironment{tagmap}[2]{%
|
|
|
|
\expandafter\let\expandafter\SavedEndTab\csname endtabular*\endcsname
|
|
|
|
\expandafter\renewcommand\expandafter*\csname endtabular*\endcsname{%
|
|
|
|
\bottomrule
|
|
|
|
\SavedEndTab%
|
|
|
|
\if\given{#1}\caption{#1}\fi%
|
|
|
|
\if\given{#2}\label{#2}\fi%
|
|
|
|
\endcenter%
|
|
|
|
}
|
|
|
|
\center
|
|
|
|
\tabularx{\textwidth}{lX}\toprule % here is the table width defined
|
|
|
|
\taghead
|
|
|
|
}{%
|
|
|
|
\endtabularx
|
|
|
|
}
|
|
|
|
|
2006-04-27 18:52:16 +00:00
|
|
|
\newcommand{\setting}[1]{\textsc{#1}}
|
2006-04-09 21:22:42 +00:00
|
|
|
|
2006-05-28 15:49:17 +00:00
|
|
|
\newcommand{\config}[1]{\texttt{#1}}
|
|
|
|
|
|
|
|
% set link to the wiki.
|
|
|
|
% Usage: \wikilink{WebHome}
|
|
|
|
% with "WebHome" being the wiki page name
|
|
|
|
\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/twiki/bin/view/Main/#1}}
|
|
|
|
|
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}%
|
2006-06-13 16:39:07 +00:00
|
|
|
{framerule=0.4pt, framesep=1ex,numbers=left,frame=lines,%stepnumber=5,%
|
2006-06-06 17:42:27 +00:00
|
|
|
gobble=4,fontsize=\footnotesize,xleftmargin=10pt,%
|
|
|
|
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,%
|
2006-06-07 13:29:52 +00:00
|
|
|
gobble=4,fontsize=\footnotesize,xleftmargin=10pt,%
|
2006-06-07 12:15:46 +00:00
|
|
|
label=\textnormal{\textsc{Example}},%
|
|
|
|
commandchars=\\\{\}%
|
|
|
|
}
|
|
|
|
|
2006-06-07 20:01:27 +00:00
|
|
|
|
|
|
|
% Use the nopt command to exclude a certain defined feature from a sectio
|
|
|
|
% Example:
|
|
|
|
% \nopt{ondio}{This text will be excluded for ondios}
|
|
|
|
\newcommand{\optnvalue}{0}
|
|
|
|
\newcommand{\nopt}[2]{%
|
|
|
|
\renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}%
|
|
|
|
\ifthenelse{\optnvalue > 0}{}{#2}
|
|
|
|
}
|
2006-07-31 12:21:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% Use the rockref to handle get a flexible reference command
|
|
|
|
% usage \rockref{ref_section}
|
|
|
|
\ifpdfoutput{
|
|
|
|
\newcommand{\rockref}[1]{%
|
|
|
|
section \ref{#1} (page \pageref{#1})
|
|
|
|
}}
|
|
|
|
{\newcommand{\rockref}[1]{section \ref{#1}}}
|