From 47ea9065350e8399018b62a57839debaab6c5212 Mon Sep 17 00:00:00 2001 From: Martin Arver Date: Wed, 7 Jun 2006 12:15:46 +0000 Subject: 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 --- manual/preamble.tex | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'manual/preamble.tex') 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=\\\{\}% + } + -- cgit v1.2.3