Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{scrartcl}
- \usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
- \usepackage[naustrian]{babel} %wegen deutscher Umlaute
- \usepackage[utf8]{inputenc} %wegen deutscher Umlaute
- \usepackage{fancyhdr} %eigener Seitenstil
- \usepackage{tipa} %Sonderzeichen wie | (pipe)
- \usepackage{textcomp} %Für die Textbullets einer Aufzählung
- \usepackage{color} %Für C++ Code
- \usepackage{listings} %Für C++ Code
- \usepackage{mathtools}
- \usepackage{pdfpages}
- \usepackage[singlespacing]{setspace}
- \usepackage{paralist}
- \usepackage{lastpage}
- \usepackage[hidelinks]{hyperref}
- \title{Programmablauf + Inbetriebnahme (Handbuch)} %edit
- \author{Kevin Stöckl, Thomas Ruspekhofer}
- \date {\today}
- \newcommand{\helv}{
- \fontfamily{phv}\fontsize{10}{11}\selectfont}
- \renewcommand\familydefault{\sfdefault}
- \newcommand{\fancymy}[2]{\fancyhead[#1]{\helv #2}}
- %Einrückung bei neuen Absätzen
- \setlength{\parindent}{0em}
- %Sonderzeichen:
- \newcommand{\lcb}{{\tt {\char '173}}} %left curly brace
- \newcommand{\rcb}{{\tt {\char '175}}} %Für rechte geschwungene Klammer
- \newcommand{\rbr}{\char '135} % right bracket ]
- \newcommand{\lbr}{\char '133} % left bracket [
- %Kopf -/ fußzeile
- \pagestyle{fancy} %eigener Seitenstil
- \fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
- \fancymy{L}{Kevin Stöckl, Thomas Ruspekhofer} %Kopfzeile links
- \fancymy{C}{ISE} %zentrierte Kopfzeile
- \fancymy{R}{\today} %Kopfzeile rechts
- \renewcommand{\headrulewidth}{0.4pt} %obere Trennlinie
- \fancyfoot[R] {Seite {\thepage \space von \pageref{LastPage}}} %Seitennummer
- \renewcommand{\footrulewidth}{0.4pt} %untere Trennlinie
- % C Source code
- \definecolor{dkgreen}{rgb}{0,0.6,0}
- \definecolor{gray}{rgb}{0.5,0.5,0.5}
- \definecolor{mauve}{rgb}{0.64,0.08,0.08}
- \lstset{ %
- language=C, % choose the language of the code
- basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
- numbers=left, % where to put the line-numbers
- numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
- stepnumber=1, % the step between two line-numbers. If it is 1 each line will be numbered
- numbersep=5pt, % how far the line-numbers are from the code
- backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
- showspaces=false, % show spaces adding particular underscores
- showstringspaces=false, % underline spaces within strings
- showtabs=false, % show tabs within strings adding particular underscores
- frame=single, % adds a frame around the code
- tabsize=4, % sets default tabsize to 2 spaces
- captionpos=b, % sets the caption-position to bottom
- breaklines=true, % sets automatic line breaking
- breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
- keywordstyle=\color{blue}, % keyword style
- commentstyle=\color{dkgreen}, % comment style
- stringstyle=\color{mauve} % string literal style
- %escapeinside={\%*}{*)} % if you want to add a comment within your code
- }
- %Gegen den UNICODE Error
- \lstset{
- literate={ö}{{\"o}}1
- {ä}{{\"a}}1
- {ü}{{\"u}}1
- {ß}{{\ss}}1
- {é}{{\'e}}1,
- inputencoding=ansinew,
- extendedchars=true
- }
- \begin{document}
- \maketitle
- \tableofcontents
- \newpage
- \let\origitem\item
- \renewcommand{\item}{\normalfont\origitem}
- \newcommand{\bolditem}{\normalfont\origitem\bfseries}
- \newcommand{\sourceCode}[1]{\lstinputlisting[style=customcpp]{#1}}
- \section{TODO}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment