diff options
author | Martin Arver <martin.arver@gmail.com> | 2006-06-07 12:15:46 +0000 |
---|---|---|
committer | Martin Arver <martin.arver@gmail.com> | 2006-06-07 12:15:46 +0000 |
commit | 47ea9065350e8399018b62a57839debaab6c5212 (patch) | |
tree | 7689424193feab9717f1a706faf186c069609abb /manual/preamble.tex | |
parent | 0dd1f8ec11f28fe34c93ba97af95eb2be2fef44f (diff) |
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.tex | 27 |
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 @@ pdfsubject = {Rockbox user manual for \playername} } -\newcommand{\fname}[1]{\textbf{#1}} +\newcommand{\fname}[1]{\texttt{#1}} \newcommand{\tabeltc}[1]{{\centering #1 \par}} \newcommand{\tabelth}[1]{{\centering \textbf{\textit{#1}} \par}} @@ -76,12 +76,12 @@ \setlength{\headheight}{18.5pt} \newcounter{example}[chapter] -\newenvironment{example} - {\stepcounter{example}\paragraph{Example \theexample:}} - {\hfill$\Box$ +%% \newenvironment{example} +%% {\stepcounter{example}\paragraph{Example \theexample:}} +%% {\hfill$\Box$ - \bigskip - \noindent} +%% \bigskip +%% \noindent} % found on the internet, posting by Donald Arseneau % I may as well include my robust expandable definions, which can be @@ -220,9 +220,22 @@ % 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}% - {numbers=left,frame=lines,% + {framerule=0.4pt, framesep=1ex,numbers=left,frame=lines,% gobble=4,fontsize=\footnotesize,xleftmargin=10pt,% label=\textnormal{\textsc{Code}},% commandchars=\\\{\}% } +% 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,% + fontsize=\footnotesize,xleftmargin=10pt,% + label=\textnormal{\textsc{Example}},% + commandchars=\\\{\}% + } + |