docs/diploma

changeset 9:8ac9b9fda474

some config and an example for listings
author meillo@marmaro.de
date Fri, 19 Sep 2008 01:15:26 +0200
parents 1d35768e1643
children 558301bfa9b5
files thesis/foo.tex
diffstat 1 files changed, 33 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/thesis/foo.tex	Thu Sep 18 23:50:57 2008 +0200
     1.2 +++ b/thesis/foo.tex	Fri Sep 19 01:15:26 2008 +0200
     1.3 @@ -5,22 +5,43 @@
     1.4  incididunt ut labore et dolore magna aliqua. \url{http://marmaro.de/docs} Ut enim ad minim veniam, quis
     1.5  nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
     1.6  
     1.7 -hallo \path{/usr/local/share} blubb \name{masqmail} laber bla \NAME{ANSI} laber \NAME{RFCs} laber 
     1.8 +hallo \path{/usr/local/share/man1234} blubb \name{masqmail} laber bla \NAME{ANSI} laber \NAME{RFCs} laber 
     1.9  
    1.10 -\begin{verbatim}
    1.11 -	127.0.0.1       pantheon.schnalke.local localhost.localdomain
    1.12 -	127.0.0.1       localhost pantheon
    1.13 -	192.168.0.100   serveme intranet deb deb.marmaro.de deb.prog.marmaro.de
    1.14 -	192.168.0.100   hg hg.marmaro.de hg.prog.marmaro.de
    1.15 +\lstset{
    1.16 +	basicstyle=\ttfamily\footnotesize,
    1.17 +	numberstyle=\tiny,
    1.18 +	basewidth=0.45em,
    1.19 +	numbers=left,
    1.20 +	stepnumber=1,
    1.21 +	numbersep=2em,
    1.22 +	showstringspaces=true,
    1.23 +	showtabs=true,
    1.24 +	tab=\rightarrowfill,
    1.25 +	frame=lines,
    1.26 +	tabsize=4,
    1.27 +	captionpos=b,
    1.28 +	breaklines=false,
    1.29 +	breakatwhitespace=true
    1.30 +}
    1.31 +\lstset{caption=Descriptive Caption Text, label=DescriptiveLabel}
    1.32 +\begin{center}
    1.33 +\begin{minipage}{0.9\textwidth}
    1.34 +\begin{lstlisting}
    1.35 +127.0.0.1       pantheon.schnalke.local localhost.localdomain
    1.36 +127.0.0.1       localhost pantheon
    1.37 +192.168.0.100   serveme intranet deb deb.marmaro.de deb.prog.marmaro.de
    1.38 +192.168.0.100   hg hg.marmaro.de hg.prog.marmaro.de
    1.39  	192.168.0.40    kugel
    1.40 -	192.168.0.102   karton
    1.41 -	192.168.0.103   milk
    1.42 -	192.168.0.74    dream
    1.43 +192.168.0.102   karton
    1.44 +192.168.0.103   milk
    1.45 +192.168.0.74    dream
    1.46  
    1.47  
    1.48 -	# The following lines are desirable for IPv6 capable hosts
    1.49 -	::1     ip6-localhost ip6-loopback
    1.50 -\end{verbatim}
    1.51 +# The following lines are desirable for IPv6 capable hosts
    1.52 +::1     ip6-localhost ip6-loopback
    1.53 +\end{lstlisting}
    1.54 +\end{minipage}
    1.55 +\end{center}
    1.56  
    1.57  \section{blubb}
    1.58