forked from emanuelduss/HSR_WrStat_Zusammenfassung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.tex
88 lines (76 loc) · 2.8 KB
/
header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% header.tex
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dokument
\documentclass[11pt,oneside,a4paper,parskip]{scrartcl}
\usepackage[inner=2.5cm,outer=2.5cm,top=2.5cm,bottom=2.5cm,includeheadfoot]{geometry}
\usepackage[sc]{mathpazo} % Palatino Schriftart
\renewcommand\sfdefault{ppl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ngerman}
\usepackage{graphicx}
\usepackage{color}
\usepackage{ccicons}
\usepackage[colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue]{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{makeidx} % Index
\makeindex
\usepackage{fancybox}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Jede Überschrift 1 auf neuer Seite
\let\stdsection\section
\renewcommand\section{\newpage\stdsection}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Angaben zum Dokument
\subject{\SUBJECT}
\title{\TITLE}
\author{\AUTHOR \\ \EMAIL}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PDF-Metainformationen
\hypersetup{
pdftitle = {\TITLE},
pdfsubject = {\SUBJECT},
pdfauthor = {\AUTHOR, \EMAIL},
pdfkeywords = {\KEYWORDS} ,
pdfcreator = {pdflatex},
pdfproducer = {LaTeX with hyperref}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Kopf- und Fusszeile
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0.5pt}
\fancyhead[L]{\nouppercase{\SUBJECT}}
\fancyhead[R]{\nouppercase{\leftmark}}
\renewcommand{\footrulewidth}{0.5pt}
\fancyfoot[L]{\AUTHOR}
\fancyfoot[R]{\thepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Code-Listing
\definecolor{light-gray}{gray}{0.95}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\usepackage{listings}
\lstset{numbers=left,
numbersep=10pt,
xleftmargin=.25in,
xrightmargin=.25in ,
numberstyle=\tiny,
language=Java, % oder C++, Pascal, {[77]Fortran}, ...
basicstyle=\ttfamily, % Textgröße des Standardtexts
keywordstyle=\ttfamily\color{red}, % Formattierung Schlüsselwörter
commentstyle=\ttfamily\color{green}, % Formattierung Kommentar
stringstyle=\ttfamily\color{blue}, % Formattierung Strings
captionpos=b, % Position der Überschrift
xleftmargin=0pt, % Linke Einrückung
tabsize=2,
breaklines=true, % Umbruch langer Zeilen
backgroundcolor=\color{light-gray},
showstringspaces=false, % Spezielles Zeichen für Leerzeichen
}
% EOF