summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r--manual/preamble.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 2f36db54f7..020a91f9ed 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -213,3 +213,16 @@
213% with "WebHome" being the wiki page name 213% with "WebHome" being the wiki page name
214\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/twiki/bin/view/Main/#1}} 214\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/twiki/bin/view/Main/#1}}
215 215
216% define environment "code" based on fancyvrb.
217% use it to set code the user should type / see on his screen.
218% Note: the first 4 characters of each line will be stripped,
219% requiring everything to be indendet by exactly _4_ spaces!
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!
222\DefineVerbatimEnvironment{code}{Verbatim}%
223 {numbers=left,frame=lines,%
224 gobble=4,fontsize=\footnotesize,xleftmargin=10pt,%
225 label=\textnormal{\textsc{Code}},%
226 commandchars=\\\{\}%
227 }
228