summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
authorMartin Arver <martin.arver@gmail.com>2006-06-07 12:15:46 +0000
committerMartin Arver <martin.arver@gmail.com>2006-06-07 12:15:46 +0000
commit47ea9065350e8399018b62a57839debaab6c5212 (patch)
tree7689424193feab9717f1a706faf186c069609abb /manual/preamble.tex
parent0dd1f8ec11f28fe34c93ba97af95eb2be2fef44f (diff)
downloadrockbox-47ea9065350e8399018b62a57839debaab6c5212.tar.gz
rockbox-47ea9065350e8399018b62a57839debaab6c5212.zip
Introduce new example environment. Slight adjustment of the code env. Change fname to use texttt. Add fname to the firmwarefilename macro in the platform files. Cleanup of the advanced topics chapter. The archos flashing still needs attention.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10081 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r--manual/preamble.tex27
1 files changed, 20 insertions, 7 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 020a91f9ed..31bc596609 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -28,7 +28,7 @@
28 pdfsubject = {Rockbox user manual for \playername} 28 pdfsubject = {Rockbox user manual for \playername}
29} 29}
30 30
31\newcommand{\fname}[1]{\textbf{#1}} 31\newcommand{\fname}[1]{\texttt{#1}}
32\newcommand{\tabeltc}[1]{{\centering #1 \par}} 32\newcommand{\tabeltc}[1]{{\centering #1 \par}}
33\newcommand{\tabelth}[1]{{\centering \textbf{\textit{#1}} \par}} 33\newcommand{\tabelth}[1]{{\centering \textbf{\textit{#1}} \par}}
34 34
@@ -76,12 +76,12 @@
76\setlength{\headheight}{18.5pt} 76\setlength{\headheight}{18.5pt}
77\newcounter{example}[chapter] 77\newcounter{example}[chapter]
78 78
79\newenvironment{example} 79%% \newenvironment{example}
80 {\stepcounter{example}\paragraph{Example \theexample:}} 80%% {\stepcounter{example}\paragraph{Example \theexample:}}
81 {\hfill$\Box$ 81%% {\hfill$\Box$
82 82
83 \bigskip 83%% \bigskip
84 \noindent} 84%% \noindent}
85 85
86% found on the internet, posting by Donald Arseneau 86% found on the internet, posting by Donald Arseneau
87% I may as well include my robust expandable definions, which can be 87% I may as well include my robust expandable definions, which can be
@@ -220,9 +220,22 @@
220% This is intended to make the LaTeX sources more readable. 220% This is intended to make the LaTeX sources more readable.
221% Note: when using the code environment you need to use optv instead of opt! 221% Note: when using the code environment you need to use optv instead of opt!
222\DefineVerbatimEnvironment{code}{Verbatim}% 222\DefineVerbatimEnvironment{code}{Verbatim}%
223 {numbers=left,frame=lines,% 223 {framerule=0.4pt, framesep=1ex,numbers=left,frame=lines,%
224 gobble=4,fontsize=\footnotesize,xleftmargin=10pt,% 224 gobble=4,fontsize=\footnotesize,xleftmargin=10pt,%
225 label=\textnormal{\textsc{Code}},% 225 label=\textnormal{\textsc{Code}},%
226 commandchars=\\\{\}% 226 commandchars=\\\{\}%
227 } 227 }
228 228
229% define environment "example" based on fancyvrb.
230% use it to set example code the user should type / see on his screen.
231% Note: the first 4 characters of each line will be stripped,
232% requiring everything to be indendet by exactly _4_ spaces!
233% This is intended to make the LaTeX sources more readable.
234% Note: when using the example environment you need to use optv instead of opt!
235\DefineVerbatimEnvironment{example}{Verbatim}%
236 {commentchar=!,framerule=0.4pt, framesep=1ex,frame=lines,%
237 fontsize=\footnotesize,xleftmargin=10pt,%
238 label=\textnormal{\textsc{Example}},%
239 commandchars=\\\{\}%
240 }
241