diff options
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 @@ | |||
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 | |||