\documentclass[11pt, oneside]{scrartcl}
\usepackage{a4,fancyhdr}
\usepackage[a4paper,right=2cm,left=2.5cm,top=3.5cm,bottom=3.5c m]{geometry}
\usepackage[ngerman]{babel}
\usepackage{array}
\usepackage{color}
\usepackage{lastpage}
\usepackage{tocloft}
\usepackage[refpage,german]{nomencl}
\usepackage{listings} \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt} \lstset{language=Perl}
\usepackage[pdftex,colorlinks=false]{hyperref}
\pagestyle{fancy}
\fancyhf{} % Kopf- und Fußzeile löschen
% Header
\fancyhead[LO]{\slshape\nouppercase{\rightmark}}
\fancyhead[OC]{\rhead{\includegraphics[width=1cm]{Bilder/lsv}}}
% Footer
\fancyfoot[LO]{Dokumentation}
\fancyfoot[C]{Seite \thepage~von \pageref{LastPage}}
\fancyfoot[OR]{dingens}
% Punkte im Inhaltsverzeichnis
\renewcommand{\cftsecdotsep}{\cftdotsep}
% Definition Abkürzungsverzeichnis
\let\abbrev\nomenclature
\setlength{\nomlabelwidth}{.25\hsize}
\renewcommand{\nomlabel}[1]{#1 \dotfill}
\makeglossary
\renewcommand{\headrulewidth}{0.7pt}
\renewcommand{\footrulewidth}{0.7pt}
\setlength{\headheight}{15pt}
%% this makes images possible both in latex and pdftex
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi
\ifpdf
\usepackage[pdftex]{graphicx}
\pdfinfo {
/Title (Abschlussprüfung)
/Subject (Dokumentation)
/Author (dingens)
/Keywords (Fax-Viewer)
}
\else
\usepackage{graphicx}
\fi
% our own colors :>
\definecolor{front}{rgb}{0.93,1,0.94}
\definecolor{back}{rgb}{0.55,0.84,0.93}
\definecolor{comment}{rgb}{0.54,0.58,0.78}
% language definition
\lstdefinelanguage{csharp}
{morekeywords={this,foreach, if, else, else if, try, catch, finally, void, public, private, partial, string, int, bool, return,
class, static, new, using, namespace},
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
morestring=[d]’}
% makes listing beautiful ;-)
\lstset{emph={square}, emphstyle=\color{red},
emph={[2]root,base},emphstyle={[2]\color{blue}},
framexleftmargin=5mm, frame=shadowbox,
backgroundcolor=\color{front}, rulesepcolor=\color{back},
basicstyle=\tiny,
keywordstyle=\color{red}\bfseries,
identifierstyle=\color{blue},
commentstyle=\color{comment},
stringstyle=\ttfamily,
showstringspaces=false} % no special string spaces}
Lesezeichen