hawxgamer

Untitled

Dec 16th, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. \documentclass{scrartcl}
  2. \usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
  3. \usepackage[naustrian]{babel} %wegen deutscher Umlaute
  4. \usepackage[utf8]{inputenc} %wegen deutscher Umlaute
  5. \usepackage{fancyhdr} %eigener Seitenstil
  6. \usepackage{tipa} %Sonderzeichen wie | (pipe)
  7. \usepackage{textcomp} %Für die Textbullets einer Aufzählung
  8. \usepackage{color} %Für C++ Code
  9. \usepackage{listings} %Für C++ Code
  10. \usepackage{mathtools}
  11. \usepackage{pdfpages}
  12. \usepackage[singlespacing]{setspace}
  13. \usepackage{paralist}
  14. \usepackage{lastpage}
  15. \usepackage[hidelinks]{hyperref}
  16.  
  17.  
  18. \title{Programmablauf + Inbetriebnahme (Handbuch)} %edit
  19. \author{Kevin Stöckl, Thomas Ruspekhofer}
  20. \date {\today}
  21.  
  22.  
  23. \newcommand{\helv}{
  24. \fontfamily{phv}\fontsize{10}{11}\selectfont}
  25. \renewcommand\familydefault{\sfdefault}
  26. \newcommand{\fancymy}[2]{\fancyhead[#1]{\helv #2}}
  27.  
  28. %Einrückung bei neuen Absätzen
  29. \setlength{\parindent}{0em}
  30.  
  31. %Sonderzeichen:
  32. \newcommand{\lcb}{{\tt {\char '173}}} %left curly brace
  33. \newcommand{\rcb}{{\tt {\char '175}}} %Für rechte geschwungene Klammer
  34. \newcommand{\rbr}{\char '135} % right bracket ]
  35. \newcommand{\lbr}{\char '133} % left bracket [
  36.  
  37. %Kopf -/ fußzeile
  38. \pagestyle{fancy} %eigener Seitenstil
  39. \fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
  40. \fancymy{L}{Kevin Stöckl, Thomas Ruspekhofer} %Kopfzeile links
  41. \fancymy{C}{ISE} %zentrierte Kopfzeile
  42. \fancymy{R}{\today} %Kopfzeile rechts
  43. \renewcommand{\headrulewidth}{0.4pt} %obere Trennlinie
  44. \fancyfoot[R] {Seite {\thepage \space von \pageref{LastPage}}} %Seitennummer
  45. \renewcommand{\footrulewidth}{0.4pt} %untere Trennlinie
  46.  
  47. % C Source code
  48. \definecolor{dkgreen}{rgb}{0,0.6,0}
  49. \definecolor{gray}{rgb}{0.5,0.5,0.5}
  50. \definecolor{mauve}{rgb}{0.64,0.08,0.08}
  51. \lstset{ %
  52. language=C, % choose the language of the code
  53. basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
  54. numbers=left, % where to put the line-numbers
  55. numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
  56. stepnumber=1, % the step between two line-numbers. If it is 1 each line will be numbered
  57. numbersep=5pt, % how far the line-numbers are from the code
  58. backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
  59. showspaces=false, % show spaces adding particular underscores
  60. showstringspaces=false, % underline spaces within strings
  61. showtabs=false, % show tabs within strings adding particular underscores
  62. frame=single, % adds a frame around the code
  63. tabsize=4, % sets default tabsize to 2 spaces
  64. captionpos=b, % sets the caption-position to bottom
  65. breaklines=true, % sets automatic line breaking
  66. breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
  67. keywordstyle=\color{blue}, % keyword style
  68. commentstyle=\color{dkgreen}, % comment style
  69. stringstyle=\color{mauve} % string literal style
  70. %escapeinside={\%*}{*)} % if you want to add a comment within your code
  71. }
  72.  
  73. %Gegen den UNICODE Error
  74. \lstset{
  75. literate={ö}{{\"o}}1
  76. {ä}{{\"a}}1
  77. {ü}{{\"u}}1
  78. {ß}{{\ss}}1
  79. {é}{{\'e}}1,
  80. inputencoding=ansinew,
  81. extendedchars=true
  82. }
  83.  
  84. \begin{document}
  85. \maketitle
  86. \tableofcontents
  87. \newpage
  88.  
  89. \let\origitem\item
  90. \renewcommand{\item}{\normalfont\origitem}
  91. \newcommand{\bolditem}{\normalfont\origitem\bfseries}
  92. \newcommand{\sourceCode}[1]{\lstinputlisting[style=customcpp]{#1}}
  93.  
  94.  
  95. \section{TODO}
  96.  
  97. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment