-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpop.cls
executable file
·63 lines (56 loc) · 1.93 KB
/
pop.cls
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
%% Class file to documents for the course POP
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{pop}[2017/12/10 LaTeX document class for POP]
%% Based on the article class
\LoadClass[11pt,a4paper]{article}
%% Used packages
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{listings}
\usepackage{listingsutf8}
\usepackage{color}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage[danish]{babel}
\usepackage[colorlinks=true, linkcolor=red, urlcolor=blue, filecolor=cyan,%
citecolor=green, anchorcolor=magenta]{hyperref} %% hyperlinks from TOC/ref/url to whatever
\usepackage[all]{hypcap}
\usepackage{geometry}
\usepackage[danish]{datetime2}
\usepackage{amsmath, amsfonts, amssymb}
\definecolor{bluekeywords}{rgb}{0.13,0.13,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{turqusnumbers}{rgb}{0.17,0.57,0.69}
\definecolor{redstrings}{rgb}{0.5,0,0}
\definecolor{lightgray}{gray}{0.97}
\lstdefinelanguage{FSharp}
{morekeywords={let, new, match, with, rec, open, module, namespace, type, of, member, and, for, in, do, begin, end, fun, function, try, mutable, if, then, else},
keywordstyle=\color{bluekeywords},
sensitive=false,
morecomment=[l][\color{greencomments}]{///},
morecomment=[l][\color{greencomments}]{//},
morecomment=[s][\color{greencomments}]{{(*}{*)}},
morestring=[b]",
stringstyle=\color{redstrings}
}
\lstset{language=FSharp,
basicstyle=\footnotesize\ttfamily,
linewidth=\linewidth,
backgroundcolor=\color{lightgray},
numbers=left,
frame=single,
breaklines=true,
breakatwhitespace=true,
showstringspaces=false,
captionpos=tb, %% filnavn i top OG bund
keepspaces=true,
title=\lstname,
inputencoding=utf8/latin1 %% nødvendig for UTF8
}
\lstdefinestyle{snippet} {
title= (\lstname), captionpos=b,
}
% For at kunne printe med VerbatimInput
\usepackage{fancyvrb}
% Bruger-definerede kommandoer
\newcommand{\ty}[1]{\texttt{#1}}