%\documentclass[utf8,bigger,handout]{beamer} % option smaller/bigger for better results
% \documentclass[utf8x,bigger,grid=5]{beamer} 
\documentclass[utf8x,grid=5,slidestop]{beamer} 

\usepackage[utf8x]{inputenc}
\usepackage[absolute,overlay]{textpos}

\setlength{\TPHorizModule}{10mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{0mm}{0mm} % start everything near the top-left corner

\usepackage{amsmath,graphicx,makeidx,listings,colortbl,helvet,ifthen,tikz,soul,pgfpages,proof,ifthen,forloop,fouridx}

\usetikzlibrary{backgrounds}
\usetikzlibrary{automata}
\usepgflibrary{decorations.pathmorphing}

% \usetheme{CambridgeUS}
% \usetheme{beamerthemeplain}

\beamersetleftmargin{3mm}
\beamersetrightmargin{3mm}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{\hfill\bf\normalsize \insertframenumber\ / \inserttotalframenumber \quad\vspace*{5pt} }

\resetcounteronoverlays{page}


% \usepackage{./pgfplots}
% \pgfplotsset{width=7cm} 

%\pgfplotsset{compat=newest}


%\usefonttheme{default} % quite nice

\usepackage{listings}
\lstdefinelanguage{pseudo}[ANSI]{C}{morekeywords={alle, wenn, dann,
    forall,let,in,function,return,new},mathescape=true}
\lstdefinelanguage{assem}[ANSI]{C}{morekeywords={FP},ndkeywords={R1,R4},mathescape=true}


% \usepackage{soul}

\input{defs}

\makeindex

%\setbeamersize{sidebar width left = 0cm}
%\setbeamersize{sidebar width right = 0cm}
%\setbeamersize{text margin left = 0.3cm}
%\setbeamersize{text margin right = 0.3cm}

\begin{document}
\input{slides} 
\end{document}
