summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2006-06-06 17:42:27 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2006-06-06 17:42:27 +0000
commit89a2a28ef3ec8301eb00a3dad01e8046701626d7 (patch)
treea6c30bf3b78c173d6651c7074f9817d14671bc51 /manual/preamble.tex
parentba53a26088414fbe0562acf172146e34c7bb2103 (diff)
Fix commands display in ipod installation instructions by introducing a new code environment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10077 a1c6a512-1295-4272-9138-f99709370657
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 @@
% with "WebHome" being the wiki page name
\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/twiki/bin/view/Main/#1}}
+% define environment "code" based on fancyvrb.
+% use it to set 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 code environment you need to use optv instead of opt!
+\DefineVerbatimEnvironment{code}{Verbatim}%
+ {numbers=left,frame=lines,%
+ gobble=4,fontsize=\footnotesize,xleftmargin=10pt,%
+ label=\textnormal{\textsc{Code}},%
+ commandchars=\\\{\}%
+ }
+