forked from FlorianX/Latex-Template-Thesis
-
Notifications
You must be signed in to change notification settings - Fork 5
/
chapter1.tex
60 lines (48 loc) · 1.19 KB
/
chapter1.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
\chapter{Chapter eins}
bla test.\footnote{http://www.fh-schmalkalden.de}
\lstsethaskell
\begin{lstlisting}[label=listinghaskell,caption=This is Haskell]
module Main where
-- this is a comment
f :: Show a => a -> Int -> String
f x i = show x ++ show i
main :: IO ()
main = do
putStrLn "Hello World"
putStrLn $ f 1.2 3
print $ sum [1..10]
\end{lstlisting}
\lstsetjava
\begin{lstlisting}[label=listingjava,caption=This is Java]
// Comment
class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
\end{lstlisting}
\lstsetscala
\begin{lstlisting}[label=listingscala,caption=This is Scala]
// Comment
class Main extends App {
println("Hello World")
}
\end{lstlisting}
\section{Formeln}
Komplette Referenz zu AMSMath siehe \\
\url{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}
\begin{align}
\int_{a}^{b} x\,dx
& = \left.\frac{1}{2} x^2\right\vert_{a}^{b}\\
& = \frac{1}{2} b^2 - \frac{1}{2} a^2 \\
\intertext{mit $a=1$ und $b=3$ folgt:}
\notag
& = \frac{1}{2} \left(3^2 - 1^2\right)\\
& = 5
\end{align}
\section{hans wurst}
one more page
\section{hans wurst2}
one more page
\section{hans wurst3}
one more page \footnote{Vgl. \cite{braun:scala}}