-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscheme.tex
53 lines (48 loc) · 1.52 KB
/
scheme.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
\documentclass[10pt,landscape]{article}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage[landscape]{geometry}
\usepackage{listings}
\usepackage{color}
\usepackage{textcomp}
\usepackage{lastpage}
\usepackage{fancyhdr}
\geometry{top=.5in,left=.5in,right=.5in,bottom=.5in,headsep=0in}
\pagenumbering{arabic}
\pagestyle{fancy}
\fancyhead[R]{Page \thepage{} of \pageref{LastPage}}
\fancyhead[L]{}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\lstdefinelanguage{Scheme}{
morekeywords=[1]{define, define-syntax, define-macro, lambda, define-stream, stream-lambda},
morekeywords=[2]{begin, call-with-current-continuation, call/cc,
call-with-input-file, call-with-output-file, case, cond,
do, else, for-each, if,
let*, let, let-syntax, letrec, letrec-syntax,
let-values, let*-values,
and, or, not, delay, force,
quasiquote, quote, unquote, unquote-splicing,
map, fold, syntax, syntax-rules, eval, environment, query },
morekeywords=[3]{import, export},
alsodigit=!\$\%&*+-./:<=>?@^_~,
sensitive=true,
morecomment=[l]{;},
morecomment=[s]{\#|}{|\#},
morestring=[b]",
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bf\ttfamily\color[rgb]{0,.3,.7},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle={\color[rgb]{0.75,0.49,0.07}},
upquote=true,
breaklines=true,
breakatwhitespace=true,
literate=*{`}{{`}}{1},
showstringspaces=false
}
\begin{document}
\begin{multicols}{3}
\lstinputlisting[language=Scheme]{scheme.rkt}
\end{multicols}
\end{document}