changeset 11:32cfe2127cb1

customized listings and code env
author meillo@marmaro.de
date Fri, 19 Sep 2008 10:43:38 +0200 (2008-09-19)
parents 558301bfa9b5
children 26ff7cb0cc12
files thesis/foo.tex
diffstat 1 files changed, 10 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/thesis/foo.tex	Fri Sep 19 10:43:22 2008 +0200
+++ b/thesis/foo.tex	Fri Sep 19 10:43:38 2008 +0200
@@ -7,25 +7,7 @@
 
 hallo \path{/usr/local/share/man1234} blubb \name{masqmail} laber bla \NAME{ANSI} laber \NAME{RFCs} laber 
 
-\lstset{
-	basicstyle=\ttfamily\footnotesize,
-	numberstyle=\tiny,
-	basewidth=0.45em,
-	numbers=left,
-	stepnumber=1,
-	numbersep=2em,
-	showstringspaces=true,
-	showtabs=true,
-	tab=\rightarrowfill,
-	frame=lines,
-	tabsize=4,
-	captionpos=b,
-	breaklines=false,
-	breakatwhitespace=true
-}
-\lstset{caption=Descriptive Caption Text, label=DescriptiveLabel}
-\begin{center}
-\begin{minipage}{0.9\textwidth}
+\begin{code}{label}{caption}
 \begin{lstlisting}
 127.0.0.1       pantheon.schnalke.local localhost.localdomain
 127.0.0.1       localhost pantheon
@@ -40,8 +22,7 @@
 # The following lines are desirable for IPv6 capable hosts
 ::1     ip6-localhost ip6-loopback
 \end{lstlisting}
-\end{minipage}
-\end{center}
+\end{code}
 
 \section{blubb}
 
@@ -49,6 +30,14 @@
 incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
 nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
 
+\begin{code}{}{}
+\begin{verbatim}
+$ make clean
+latexmk -c
+This is latexmk, John Collins, 2 June 2004, version: 3.07a.
+**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
+\end{verbatim}
+\end{code}
 
 \section{blah}