main.tex 1.33 KB
Newer Older
1 2 3
\documentclass[onecolumn,11pt,nocopyrightspace]{sigplanconf}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
POTTIER Francois's avatar
POTTIER Francois committed
4
\usepackage[bookmarks=true,bookmarksopen=true,colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
5 6 7
\usepackage{listings}
\input{listings-ocaml}
\lstset{language=ocaml}
POTTIER Francois's avatar
POTTIER Francois committed
8 9
\usepackage{xcolor}
\usepackage{mdframed}
10 11
\usepackage{xspace}

POTTIER Francois's avatar
POTTIER Francois committed
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
% ------------------------------------------------------------------------------

\newenvironment{origenv}{%
  \begin{mdframed}[backgroundcolor=gray!10,linewidth=0pt]%
}{%
  \end{mdframed}%
}

\newcommand{\orig}[1]{%
\begin{origenv}
\lstinputlisting{#1.ml}
\end{origenv}
}

\newenvironment{processedenv}{%
  \begin{mdframed}[backgroundcolor=yellow!40,linewidth=0pt]%
}{%
  \end{mdframed}%
}

\newcommand{\processed}[1]{%
\begin{processedenv}
\lstinputlisting{#1.processed.ml}
\end{processedenv}
}

38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
% ------------------------------------------------------------------------------
% Headings.

\title{Visitors}

\begin{document}

\authorinfo{François Pottier}
	   {Inria Paris}
	   {francois.pottier@inria.fr}

\maketitle

% ------------------------------------------------------------------------------

\clearpage
\tableofcontents
\clearpage

% ------------------------------------------------------------------------------

Original:
60
\orig{expr00}
POTTIER Francois's avatar
POTTIER Francois committed
61

62
Processed:
63
\processed{expr00}
64 65

\end{document}