-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherlang.tex
51 lines (46 loc) · 1.26 KB
/
erlang.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
\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{erlang}{
morekeywords={case,catch,def,do,else,false,%
use,alias,receive,timeout,defmacro,defp,%
for,if,import,defmodule,defprotocol,%
nil,defmacrop,defoverridable,defimpl,%
super,fn,raise,true,try,end,with,%
unless},
otherkeywords={<-,->},
morecomment=[l]{\%},
morecomment=[n]{/*}{*/},
morestring=[b]",
morestring=[b]',
morestring=[b]""",
sensitive=true,
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,
showstringspaces=false
}
\begin{document}
\begin{multicols}{2}
\lstinputlisting[language=erlang]{erlang.erl}
\vspace*{17cm}
\end{multicols}
\end{document}