I'm following the advice in the Beamer user guide to produce slides and printed material from the same source using the beamerarticle package. The user guide recommends using the class option ignorenonframetext
, so that text living outside of a frame environment will be rendered only in the article format but not in the slideshow -- a way to include notes in handouts that you don't want to show onscreen.
I've also been using this to divide the presentation visibly into sections:
\AtBeginSection[] % Do nothing for \section*
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
}
The trouble is, \AtBeginSection[]
and its associated curly braces are outside of a frame environment, so they are ignored, and I don't get the table of contents at the beginning of every section (with highlighting).
Is there any way to get these to work together?
I don't want to reproduce the whole preamble and contents, but here's where the \AtBeginSection
bit is stuffed in:
\begin{document}
\begin{frame}\maketitle\end{frame}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\AtBeginSection[] % Do nothing for \section*
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\section{Introduction}
.... blah blah ......
Thanks! hjh
\AtBeginSection ...
be considered only in presentations and not in handouts, use\mode<beamer>{\AtBeginSection...}
. Look at section "21.3 Details on Modes" in beameruserguide\documentclass
and finish with\end{document}
. Include only a minimal subset of packages which you need to clearly reproduce the problem. It will be easy to help you.\AtBeginSection
declaration to preamble (before\begin{document}
) and see if this solves your problem.