0

I have a problem with the following code:

\documentclass{beamer}

\usetheme{boxes}


\AtBeginSection[]
{
  \begin{frame}<beamer>
    \frametitle{Structure}
    \tableofcontents[currentsection]
  \end{frame}
}

\title{Title}
\author{Author}
\institute{Institute}
\date{date}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Structure}
\tableofcontents[hideallsubsections]
\end{frame}


\section{Section}

\begin{frame}
\frametitle{Frame}
\end{frame}

\section{Section}

\begin{frame}
\frametitle{Frame}
\end{frame}

\section{Section}

\begin{frame}
\frametitle{Frame}
\end{frame}

\end{document}

My problem is that, when we start the section immediately after the "structure" slide, there is more space between the items. Is there a way to avoid this?

Thanks a lot in advance for your time.

4
  • Please make a compilable minimal working example which allows us to reproduce your problem. Sep 5 at 13:48
  • Updated (incidentally, it also made me realize that the problem is partly with the code right before the title).
    – Kolmin
    Sep 5 at 14:26
  • 1
    You can use \tableofcontents[currentsection,hideallsubsections] to get the same spacing in your structure slides as in the outline Sep 5 at 14:28
  • Thanks a lot. Much appreciated!
    – Kolmin
    Sep 5 at 14:35

1 Answer 1

1

You can use \tableofcontents[currentsection,hideallsubsections] to get the same spacing in your structure slides as in the outline:

\documentclass{beamer}

\usetheme{boxes}


\AtBeginSection[]
{
  \begin{frame}<beamer>
    \frametitle{Structure}
    \tableofcontents[currentsection,hideallsubsections]
  \end{frame}
}

\title{Title}
\author{Author}
\institute{Institute}
\date{date}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Outline}
\tableofcontents[hideallsubsections]
\end{frame}


\section{Section}

\begin{frame}
\frametitle{Frame}
\end{frame}

\section{Section}

\begin{frame}
\frametitle{Frame}
\end{frame}

\section{Section}

\begin{frame}
\frametitle{Frame}
\end{frame}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.