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
89
90
91
92
93
94
95
96
97
|
% article1.tex
% Patrick Simianer <p@simianer.de>
% YYYY-MM-DD
\documentclass[paper=A4,
pagesize,
DIV=calc,
BCOR=1cm,
smallheadings,
ngerman,
11pt]{scrartcl}
\typearea{12}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amssymb, latexsym}
\usepackage{hyperref, color}
\usepackage[pdftex]{graphicx}
\usepackage{listings}
\usepackage{totpages}
\usepackage{ulem}
\usepackage{lmodern,eulervm}
\usepackage[tracking=TRUE]{microtype}
\usepackage{babel}
\usepackage{fixltx2e}
\usepackage{ellipsis, ragged2e, marginnote}
\DeclareMicrotypeSet*[tracking]{my}
{ font = */*/*/sc/* }
\SetTracking{ encoding = *, shape = sc }{ 45 }
\usepackage{tikz}
\usepackage{tikz-qtree}
\definecolor{darkblue}{rgb}{0,0,.5}
\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue}
\definecolor{gray}{rgb}{.5,.5,.5}
\lstset{basicstyle=\small\ttfamily, commentstyle=\color{gray}, emphstyle=\sffamily\bfseries}
\lstset{keywordstyle=\sffamily\bfseries, commentstyle=\color{gray}, stringstyle=\color{black}}
\lstset{numbers=left, numberstyle=\tiny}
%\parindent0pt
\date{\textsf{\small{\today}}}
\author{Patrick Simianer}
{\title{\textbf{Titel}}}
\usepackage[]{scrpage2}
\pagestyle{scrheadings}
\ihead[]{Patrick Simianer}
\chead[]{}
\ohead[]{kurzer Titel}
\ifoot[]{}
\cfoot[]{}
\clearscrplain % page numbers of all pages
\ofoot[\pagemark]{\textit{\pagemark} \tiny{\textit{\ref{TotPages}}}}
\begin{document}
\maketitle
\section*{Aufgabe 1}
\begin{equation}
\sum\limits_{k=1}^n k = 1+2+\hdots+n = \frac{n(n+1)}{2}
\end{equation}
\subsection*{Programm: Hello, World!}
\lstset{language=C++, emph={main}}
\begin{lstlisting}{Hello, World!}
/* Ein Kommentar */
#include <iostream>
int main (int argc, char * const argv[]) {
// und noch einer!
std::cout << "Hello, World!\n";
return 0;
}
\end{lstlisting}
\begin{tikzpicture}
\Tree [.S
[.NP
[.Det \textit{The} ]
[.N \textit{studio} ]
]
[.VP
[.V \textit{offers} ]
[.N \textit{sound effects} ]
]
]
\end{tikzpicture}
\end{document}
|