docs/diploma

diff thesis/foo.tex @ 11:32cfe2127cb1

customized listings and code env
author meillo@marmaro.de
date Fri, 19 Sep 2008 10:43:38 +0200
parents 8ac9b9fda474
children
line diff
     1.1 --- a/thesis/foo.tex	Fri Sep 19 10:43:22 2008 +0200
     1.2 +++ b/thesis/foo.tex	Fri Sep 19 10:43:38 2008 +0200
     1.3 @@ -7,25 +7,7 @@
     1.4  
     1.5  hallo \path{/usr/local/share/man1234} blubb \name{masqmail} laber bla \NAME{ANSI} laber \NAME{RFCs} laber 
     1.6  
     1.7 -\lstset{
     1.8 -	basicstyle=\ttfamily\footnotesize,
     1.9 -	numberstyle=\tiny,
    1.10 -	basewidth=0.45em,
    1.11 -	numbers=left,
    1.12 -	stepnumber=1,
    1.13 -	numbersep=2em,
    1.14 -	showstringspaces=true,
    1.15 -	showtabs=true,
    1.16 -	tab=\rightarrowfill,
    1.17 -	frame=lines,
    1.18 -	tabsize=4,
    1.19 -	captionpos=b,
    1.20 -	breaklines=false,
    1.21 -	breakatwhitespace=true
    1.22 -}
    1.23 -\lstset{caption=Descriptive Caption Text, label=DescriptiveLabel}
    1.24 -\begin{center}
    1.25 -\begin{minipage}{0.9\textwidth}
    1.26 +\begin{code}{label}{caption}
    1.27  \begin{lstlisting}
    1.28  127.0.0.1       pantheon.schnalke.local localhost.localdomain
    1.29  127.0.0.1       localhost pantheon
    1.30 @@ -40,8 +22,7 @@
    1.31  # The following lines are desirable for IPv6 capable hosts
    1.32  ::1     ip6-localhost ip6-loopback
    1.33  \end{lstlisting}
    1.34 -\end{minipage}
    1.35 -\end{center}
    1.36 +\end{code}
    1.37  
    1.38  \section{blubb}
    1.39  
    1.40 @@ -49,6 +30,14 @@
    1.41  incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
    1.42  nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    1.43  
    1.44 +\begin{code}{}{}
    1.45 +\begin{verbatim}
    1.46 +$ make clean
    1.47 +latexmk -c
    1.48 +This is latexmk, John Collins, 2 June 2004, version: 3.07a.
    1.49 +**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
    1.50 +\end{verbatim}
    1.51 +\end{code}
    1.52  
    1.53  \section{blah}
    1.54