# HG changeset patch # User meillo@marmaro.de # Date 1221779726 -7200 # Node ID 8ac9b9fda474c6d86e09739872086fda270f5a5b # Parent 1d35768e1643cd325a619b01f9e7d908be8a245d some config and an example for listings diff -r 1d35768e1643 -r 8ac9b9fda474 thesis/foo.tex --- 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}