\begin{section}{First Section}
  \begin{frame}\frametitle{Title}
    \begin{itemize}
    \item first item
    \item second item
    \end{itemize}
  \end{frame}
\end{section}

%%% Local Variables:
%%% TeX-command-extra-options: "-shell-escape"
%%% TeX-master: "document.tex"
%%% End:
