changeset 9:8ac9b9fda474

some config and an example for listings
author meillo@marmaro.de
date Fri, 19 Sep 2008 01:15:26 +0200 (2008-09-18)
parents 1d35768e1643
children 558301bfa9b5
files thesis/foo.tex
diffstat 1 files changed, 33 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/thesis/foo.tex	Thu Sep 18 23:50:57 2008 +0200
+++ b/thesis/foo.tex	Fri Sep 19 01:15:26 2008 +0200
@@ -5,22 +5,43 @@
 incididunt ut labore et dolore magna aliqua. \url{http://marmaro.de/docs} Ut enim ad minim veniam, quis
 nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
 
-hallo \path{/usr/local/share} blubb \name{masqmail} laber bla \NAME{ANSI} laber \NAME{RFCs} laber 
+hallo \path{/usr/local/share/man1234} blubb \name{masqmail} laber bla \NAME{ANSI} laber \NAME{RFCs} laber 
 
-\begin{verbatim}
-	127.0.0.1       pantheon.schnalke.local localhost.localdomain
-	127.0.0.1       localhost pantheon
-	192.168.0.100   serveme intranet deb deb.marmaro.de deb.prog.marmaro.de
-	192.168.0.100   hg hg.marmaro.de hg.prog.marmaro.de
+\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{lstlisting}
+127.0.0.1       pantheon.schnalke.local localhost.localdomain
+127.0.0.1       localhost pantheon
+192.168.0.100   serveme intranet deb deb.marmaro.de deb.prog.marmaro.de
+192.168.0.100   hg hg.marmaro.de hg.prog.marmaro.de
 	192.168.0.40    kugel
-	192.168.0.102   karton
-	192.168.0.103   milk
-	192.168.0.74    dream
+192.168.0.102   karton
+192.168.0.103   milk
+192.168.0.74    dream
 
 
-	# The following lines are desirable for IPv6 capable hosts
-	::1     ip6-localhost ip6-loopback
-\end{verbatim}
+# The following lines are desirable for IPv6 capable hosts
+::1     ip6-localhost ip6-loopback
+\end{lstlisting}
+\end{minipage}
+\end{center}
 
 \section{blubb}