-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
89 lines (83 loc) · 2.19 KB
/
preamble.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
89
% rounded boxes and colors
\usepackage{scalerel}
\usepackage[most]{tcolorbox}
\usepackage{booktabs}
\usepackage{enumitem}
\usepackage{subcaption}
\usepackage{xspace}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{mathtools}
\usepackage{mathpartir}
\usepackage{stmaryrd}
\usepackage{bm}
\usepackage{relsize}
\usepackage{centernot}
\usepackage{natbib}
\usepackage{multicol}
\usepackage{listings}
\usepackage{tikz}
\usepackage{booktabs}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{microtype}
\usepackage{mdframed}
\usepackage{colortab}
\usepackage{mathpartir}
\usepackage{enumitem}
\usepackage{bbm}
\usepackage{stmaryrd}
\usepackage{mathtools}
\usepackage{leftidx}
\usepackage{xspace}
\usepackage{wrapfig}
\usepackage{extarrows}
\usepackage{listings}
\usepackage{caption}
\usepackage[capitalize]{cleveref}
\lstloadlanguages{ML}
\lstset{tabsize=2,
basicstyle=\footnotesize\ttfamily,
% keywordstyle=\sffamily,
commentstyle=\itshape\ttfamily\color{gray},
stringstyle=\ttfamily\color{purple},
mathescape=false,escapechar=\#,
numbers=left, numberstyle=\scriptsize\color{gray}\ttfamily, language=ML, showspaces=false,showstringspaces=false,xleftmargin=15pt,
morekeywords={string, float, int, bool},
classoffset=0,belowskip=\smallskipamount, aboveskip=\smallskipamount,
moredelim=**[is][\color{red}]{SSTR}{ESTR}
}
\lstdefinestyle{mystyle}{
otherkeywords = {match,Some,None,substitute,postpone,to, runtime,type, checking,unification, fails},
}
\lstset{style=mystyle}
\newcommand{\li}[1]{\lstinline[basicstyle=\ttfamily\fontsize{9pt}{1em}\selectfont]{#1}}
\newcommand{\lismall}[1]{\lstinline[basicstyle=\ttfamily\fontsize{9pt}{1em}\selectfont]{#1}}
% A macro for the name of the system being described by ``this paper''
\newcommand{\HazelnutLive}{\textsf{Hazelnut Live}\xspace}
\newcommand{\Hazelnut}{\textsf{Hazelnut}\xspace}
% The mockup, work-in-progress system.
\newcommand{\Hazel}{\textsf{Hazel}\xspace}
\newtcolorbox{mybox}[2][]
{
on line,
hbox,
boxsep=0pt,
left=1pt,
right=1pt,
top=1pt,
bottom=1pt,
colframe=white,
colback=#2
#1,
}
\newcommand\goodcolor[2]{%
\protect\leavevmode
\begingroup
\color{#1}%
#2%
\endgroup
}