# HG changeset patch # User meillo@marmaro.de # Date 1221813818 -7200 # Node ID 32cfe2127cb1be6712cc2b20dd477787086d6f10 # Parent 558301bfa9b5ac5e41c447fe4b6d81cca55ebaff customized listings and code env diff -r 558301bfa9b5 -r 32cfe2127cb1 thesis/foo.tex --- 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 . **** +\end{verbatim} +\end{code} \section{blah}