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-03-08 17:58:11 +00:00
|
|
|
%\renewcommand{\familydefault}{\sfdefault}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-03-24 11:53:07 +00:00
|
|
|
%Comment this out at release
|
2006-03-24 17:19:32 +00:00
|
|
|
\usepackage{pdfdraftcopy}
|
|
|
|
\draftstring{DRAFT VERSION}
|
2006-03-24 11:53:07 +00:00
|
|
|
%\draftangle{45}
|
2006-03-29 18:40:42 +00:00
|
|
|
\usepackage{tabularx}
|
2006-03-24 11:53:07 +00:00
|
|
|
|
|
|
|
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{float}
|
|
|
|
\floatstyle{ruled}
|
|
|
|
|
2006-03-14 09:52:20 +00:00
|
|
|
\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
|
2006-02-06 07:25:25 +00:00
|
|
|
\usepackage{xspace}
|
|
|
|
\usepackage{optional}
|
|
|
|
|
|
|
|
\input{platform/\platform.tex}
|
|
|
|
|
2006-03-21 10:28:35 +00:00
|
|
|
\newcommand{\playername}{\playerman\ \playertype}
|
2006-02-06 07:25:25 +00:00
|
|
|
|
|
|
|
\newcommand{\fname}[1]{\textbf{#1}}
|
|
|
|
\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{lscape}
|
|
|
|
\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-02-06 07:25:25 +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}}
|
|
|
|
\fancyfoot[L]{\textsc{Rockbox users manual}}
|
|
|
|
\fancyfoot[R]{\textsc{\playername}}
|
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-02-06 07:25:25 +00:00
|
|
|
\newenvironment{example}
|
|
|
|
{\stepcounter{example}\paragraph{Example \theexample:}}
|
|
|
|
{\hfill$\Box$
|
|
|
|
|
|
|
|
\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}
|
|
|
|
% Note: use this only for screenshots!
|
|
|
|
% Note: leave caption empty to supress it.
|
|
|
|
\newcommand{\screenshot}[3]{
|
|
|
|
\begin{figure}[!ht]
|
|
|
|
\begin{center}
|
|
|
|
\includegraphics[width=4cm]{#1}
|
|
|
|
\if\blank{#3}\else{\label{#3}}\fi\if\blank{#2}\else{
|
|
|
|
\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!
|
|
|
|
\newcommand{\note}[1]{
|
|
|
|
\noindent\\%
|
|
|
|
\textbf{Note:}\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}\ #1%
|
|
|
|
\newline
|
|
|
|
}
|
|
|
|
|
|
|
|
% command to display a warning.
|
|
|
|
% Usage: \warn{text of your warning}
|
|
|
|
% Note: do NOT use \textbf or similar to emphasize text!
|
|
|
|
\newcommand{\warn}[1]{
|
|
|
|
\noindent\textbf{Warning:}\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}\ #1%
|
|
|
|
\newline
|
|
|
|
}
|