Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132932 views
License: OTHER
1
\documentclass[a4paper,12pt]{article}
2
\usepackage{amssymb} % needed for math
3
\usepackage{amsmath} % needed for math
4
\usepackage[utf8]{inputenc} % this is needed for german umlauts
5
\usepackage[ngerman]{babel} % this is needed for german umlauts
6
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
7
\usepackage[margin=2cm]{geometry} %layout
8
\usepackage{minted} % needed for the inclusion of source code
9
10
\usepackage{fancyhdr}
11
\pagestyle{fancy}
12
\lhead{Martin Thoma, Tutorium 4}
13
\rhead{Programmierparadigmen, Blatt 1}
14
15
\begin{document}
16
\renewcommand{\theFancyVerbLine}{
17
\sffamily\textcolor[rgb]{0.5,0.5,0.5}{\scriptsize\arabic{FancyVerbLine}}}
18
\inputminted[linenos,
19
numbersep=7pt,
20
gobble=0,
21
frame=lines,
22
framesep=2mm,
23
label=Arithmetik.hs,
24
fontsize=\footnotesize, tabsize=4]{haskell}{Arithmetik.hs}
25
\clearpage
26
\inputminted[linenos,
27
numbersep=7pt,
28
gobble=0,
29
frame=lines,
30
framesep=2mm,
31
label=ColorClassification.java,
32
fontsize=\footnotesize, tabsize=4]{haskell}{Sort.hs}
33
34
\end{document}
35
36