1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 % Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 % Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 % Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
12 % Copyright (C) 2006 The Rockbox Manual Team
14 % All files in this archive are subject to the GNU Free Documentation License
15 % See the file COPYING-MANUAL in the source tree docs/ folder for full license
18 % Contributors are listed in the file docs/CREDITS-MANUAL
20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22 \documentclass[a4paper,
11pt
]{scrreprt
}
23 \usepackage[utf8x
]{inputenc}
37 \input{platform/
\platform.tex
}
39 \newcommand{\playername}{\playerman\
\playerlongtype}
41 \hypersetup{% add some values to the pdf properties
47 pdftitle =
{Rockbox user manual
},
48 pdfauthor =
{The Rockbox Team
},
49 pdfsubject =
{Rockbox user manual for
\playername}
52 \newcommand{\fname}[1]{\texttt{#1}}
53 \newcommand{\tabeltc}[1]{{\centering #1 \par}}
54 \newcommand{\tabelth}[1]{{\centering \textbf{\textit{#1}} \par}}
56 \newcommand{\fixme}[1]{\textbf{\textcolor{red
}{#1}}}
63 \usepackage{enumerate
}
65 \ifpdfoutput{\usepackage{booktabs
}}%
67 \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}%
69 \usepackage{longtable
}
76 % mark this ad draft version (only for pdflatex) -- comment this out at release
78 \usepackage{pdfdraftcopy
}
79 \draftstring{DRAFT VERSION
}
83 % pdf output: try pdf first, then png and jpg as file format
84 % html output: try png first, then jpg. Ignore pdf files
85 % this only applies if no file extension is given!
86 \ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg
}}%
87 {\DeclareGraphicsExtensions{.png,.jpg
}}
89 % fancy header style adjustments
92 \fancyhead[L
]{{\nouppercase{\textsc{\leftmark}}}}
93 \fancyhead[R
]{\iffloatpage{}{\thepage}}
94 \fancyfoot[L
]{\textsc{The Rockbox manual
}}
95 \fancyfoot[R
]{\textsc{\playerman{} \playertype}}
96 \fancypagestyle{plain
}{}
98 \renewcommand{\headrulewidth}{\iffloatpage{0pt
}{0.4pt
}}
99 \renewcommand{\footrulewidth}{\iffloatpage{0pt
}{0.4pt
}}
100 \setlength{\headheight}{18.5pt
}
101 \newcounter{example
}[chapter
]
103 %% \newenvironment{example}
104 %% {\stepcounter{example}\paragraph{Example \theexample:}}
110 % found on the internet, posting by Donald Arseneau
111 % I may as well include my robust expandable definions, which can be
112 % used in \edef or \write where the \def would not be executed:
114 % \if\blank --- checks if parameter is blank (Spaces count as blank)
115 % \if\given --- checks if parameter is not blank: like \if\blank{#1}\else
116 % \if\nil --- checks if parameter is null (spaces are NOT null)
117 % use \if\given{ } ... \else ... \fi etc.
119 {\catcode`\!=
8 % funny catcode so ! will be a delimiter
120 \catcode`
\Q=
3 % funny catcode so Q will be a delimiter
121 \long\gdef\given#1{88\fi\Ifbl@nk
#1QQQ
\empty!
}
122 \long\gdef\blank#1{88\fi\Ifbl@nk
#1QQ..!
}% if null or spaces
123 \long\gdef\nil#1{\IfN@Ught
#1*
{#1}!
}% if null
124 \long\gdef\IfN@Ught
#1 #2!
{\blank{#2}}
125 \long\gdef\Ifbl@nk
#1#2Q
#3!
{\ifx#3}% same as above
128 % add screenshot image.
129 % Usage: \screenshot{filename}{caption}{label}
130 % By using the 'H' (HERE) placement, the screenshots are placed where
132 % Note: use this only for screenshots!
133 % Note: leave caption empty to supress it.
134 \newcommand{\screenshot}[3]{
137 \IfFileExists{#1-
\genericimg-
\specimg.png
}
138 {\includegraphics[width=
\screenshotsize]{#1-
\genericimg-
\specimg.png
}
139 \typeout{Note: device specific image used
}}
140 {\IfFileExists{#1-
\genericimg.png
}
141 {\includegraphics[width=
\screenshotsize]{#1-
\genericimg.png
}}
143 {\includegraphics[width=
\screenshotsize]{#1}
144 \typeout{Warning: deprecated plain image name used
}}%
145 {\typeout{Missing image:
#1 (
\genericimg) (
\specimg)
}%
146 \color{red
}{\textbf{WARNING!
} Image not found
}%
150 \if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{%
156 % command to display a note.
157 % Usage: \note{text of your note}
158 % Note: do NOT use \textbf or similar to emphasize text, use \emph!
160 \newcommand{\note}[1]{
161 \ifinner\else\par\noindent\fi
163 \ifinner#1\else\marginpar{\raisebox{-
6pt
}{\Huge\Writinghand}}#1\par\fi%
165 {\newcommand{\note}[1]{\ifinner\else\par\noindent\fi\textbf{Note:
{} }#1\par}}
167 % command to display a warning.
168 % Usage: \warn{text of your warning}
169 % Note: do NOT use \textbf or similar to emphasize text!
171 \newcommand{\warn}[1]{
172 \ifinner\else\par\noindent\fi
174 \ifinner#1\else\marginpar{\raisebox{-
6pt
}{\Huge\Stopsign}}#1\par\fi%
176 {\newcommand{\warn}[1]{\ifinner\else\par\noindent\fi\textbf{Warning:
{} }#1}}
178 % command to mark a text block as intended especially for blind people
179 % Usage: \blind{text}
181 \newcommand{\blind}[1]{
182 \ifinner\else\par\noindent\fi
183 \ifinner#1\else\marginpar{\raisebox{-
6pt
}{\Huge\ForwardToEnd}}#1\par\fi%
185 {\newcommand{\blind}[1]{\ifinner\else\par\noindent\fi#1}}
187 % make table floats use "H" (as for screenshots) as default positioning
188 \makeatletter\renewcommand{\fps@table
}{H
}\makeatother
189 % change defaults for floats on a page as we have a lot of small images
190 \setcounter{topnumber
}{3} % default: 2
191 \setcounter{bottomnumber
}{2} % default: 1
192 \setcounter{totalnumber
}{5} % default: 3
194 % command to set the default table heading for button lists
195 \newcommand{\btnhead}{\textbf{Key
} &
\textbf{Action
} \\
\midrule}
197 % environment intended to be used with button maps
198 % usage: \begin{btnmap}{caption}{label} Button & ButtonAction \\ \end{btnmap}
199 % Note: this automatically sets the table lines.
200 % Note: you *need* to terminate the last line with a linebreak \\
201 % Note: you still need to enclose this with \begin{table} / \end{table}
202 % Cheers for the usenet helping me building this up :)
203 \newenvironment{btnmap
}[2]{%
204 \expandafter\let\expandafter\SavedEndTab\csname endtabular*
\endcsname
205 \expandafter\renewcommand\expandafter*
\csname endtabular*
\endcsname{%
208 \if\given{#1}\caption{#1}\fi%
209 \if\given{#2}\label{#2}\fi%
213 \tabularx{.75\textwidth}{lX
}\toprule % here is the table width defined
219 % command to set the default table heading for button lists
220 \newcommand{\taghead}{\textbf{Tag
} &
\textbf{Description
} \\
\midrule}
222 % environment intended to be used with tag maps (for wps)
223 % usage: \begin{tagmap}{caption}{label} Tag & Description \\ \end{btnmap}
224 % Note: this automatically sets the table lines.
225 % Note: you *need* to terminate the last line with a linebreak \\
226 % Note: you still need to enclose this with \begin{table} / \end{table}
227 % Cheers for the usenet helping me building this up :)
228 \newenvironment{tagmap
}[2]{%
229 \expandafter\let\expandafter\SavedEndTab\csname endtabular*
\endcsname
230 \expandafter\renewcommand\expandafter*
\csname endtabular*
\endcsname{%
233 \if\given{#1}\caption{#1}\fi%
234 \if\given{#2}\label{#2}\fi%
238 \tabularx{\textwidth}{lX
}\toprule % here is the table width defined
244 \newcommand{\setting}[1]{\textsc{#1}}
246 \newcommand{\config}[1]{\texttt{#1}}
248 % set link to download server
249 % Usage: \download{bootloader/bootloader-ipodnano.ipod}
251 % "http://download.rockbox.org/bootloader/bootloader-ipodnano.ipod"
252 \newcommand{\download}[1]{\url{http://download.rockbox.org/
#1}}
254 % set link to the wiki.
255 % Usage: \wikilink{WebHome}
256 % with "WebHome" being the wiki page name
257 \newcommand{\wikilink}[1]{\url{http://www.rockbox.org/twiki/bin/view/Main/
#1}}
259 % define environment "code" based on fancyvrb.
260 % use it to set code the user should type / see on his screen.
261 % Note: the first 4 characters of each line will be stripped,
262 % requiring everything to be indendet by exactly _4_ spaces!
263 % This is intended to make the LaTeX sources more readable.
264 % Note: when using the code environment you need to use optv instead of opt!
265 \DefineVerbatimEnvironment{code
}{Verbatim
}%
266 {framerule=
0.4pt, framesep=
1ex,frame=lines,
%numbers=left,stepnumber=5,%
267 gobble=
4,fontsize=
\footnotesize,xleftmargin=
10pt,xrightmargin=
10pt,
%
268 label=
\textnormal{\textsc{Code
}},
%
272 % define environment "example" based on fancyvrb.
273 % use it to set example code the user should type / see on his screen.
274 % Note: the first 4 characters of each line will be stripped,
275 % requiring everything to be indendet by exactly _4_ spaces!
276 % This is intended to make the LaTeX sources more readable.
277 % Note: when using the example environment you need to use optv instead of opt!
278 \DefineVerbatimEnvironment{example
}{Verbatim
}%
279 {commentchar=!,framerule=
0.4pt, framesep=
1ex,frame=lines,
%
280 gobble=
4,fontsize=
\footnotesize,xleftmargin=
10pt,xrightmargin=
10pt,
%
281 label=
\textnormal{\textsc{Example
}},
%
285 % Use the nopt command to exclude a certain defined feature from a sectio
287 % \nopt{ondio}{This text will be excluded for ondios}
288 \newcommand{\optnvalue}{0}
289 \newcommand{\nopt}[2]{%
290 \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}%
291 \ifthenelse{\optnvalue >
0}{}{#2}%
294 % Use the reference to handle get a flexible reference command
295 % usage \reference{ref_section}
297 \newcommand{\reference}[1]{%
298 section~
\ref{#1} (page~
\pageref{#1})
%
300 {\newcommand{\reference}[1]{section~
\ref{#1}}}
302 % special HTML output adjustments
303 \ifpdfoutput{}{\setlength{\parindent}{0mm
}}
304 \ifpdfoutput{}{\renewcommand{\Forward}[1]{$
\triangleright$
{}#1}}
306 \newcommand{\btnfnt}[1]{\textbf{#1}}