\usepackage{amsmath}
\usepackage{color}
\usepackage{verbatim}% needed for cfragment environment

\makeatletter
\def\url@itstyle{%
\@ifundefined{selectfont}{\def\UrlFont{\rm}}{\def\UrlFont{\rmfamily\itshape}}\Url@do}
\makeatother
\urlstyle{it}

\newenvironment{course}
	{\hrulefill\fontsize{7}{8.4}\selectfont\vspace{-4pt}\verbatim}
	{\endverbatim\rm\normalsize\vskip-20pt\hrulefill\\}

\newenvironment{example}
	{\fontsize{10}{11}\selectfont\verbatim}
	{\endverbatim\rm\normalsize}

\title{Gathering context data}
\subtitle{}
\email{mika.raento@cs.helsinki.fi}
\author{Mika Raento}
\date{2003-02-26}
\institution{Helsinki Institute for Information Technology}
\department{Basic Research Unit}

\newcommand{\lit}[1]{'\texttt{#1}'}
\newcommand{\ulit}[1]{\texttt{#1}}

\newcommand{\colorEffect}[3]{%
\onlySlide*{#1}{#2}{#3}\onlySlide*{#1}{\black}}%

\def\wlec{\openlec\immediate\write\lectures}

\newwrite\lectures % allocate an output stream

% First time \openres is called, it will open the output stream; after
% that it becomes a no-op.
\def\openlec{%
  \immediate\openout\lectures=\jobname.lec
  \global\let\openlec=\relax
}

% Making sure to close the file is not strictly necessary but good to
% keep in mind.
\AtEndDocument{\immediate\closeout\lectures}


\newcommand{\lecture}[1]{\wlec{lect#1 \thepage}}

\newrgbcolor{purple}{.58 .27 .66}
\definecolor{LightGray}{rgb}{0.9,0.9,0.9}

\newcommand{\bi}[1]{\slidesmall{#1}\itemize}
\newcommand{\ei}{\enditemize\endslidesmall}

\newcommand{\picpage}[3]{\slidesmall{#1}\center
\includegraphics[width=#2]{#3}
\endcenter\endslidesmall}
\newcommand{\picpagel}[3]{\slidesmall{#1}\center
\includegraphics[width=#2,angle=-90]{#3}
\endcenter\endslidesmall}


\begin{document}

\slidepagestyle{HYPageStyle}	% select page style with author-title-date footer

\input{contents.tex}

\end{document}
