1

I need to do tableofcontents ,where the was only one section on frame,other section on next frame ,but only one section at slide, like this

enter image description here

not like this

enter image description here

and not like this

enter image description here

How can I do it ,help me ,please. MWE:

\documentclass{beamer}


\begin{document}
\frame{\tableofcontents} 
\section{ap1}
\subsection{ap1.1}
\subsection{ap1.2}
\subsection{ap1.3}
 \begin{frame}



    \end{frame}
\section{ap2}
\subsection{ap2.1}
\subsection{ap2.2}
\subsection{ap2.3}
\begin{frame}



\end{frame}
\section{ap3}
\subsection{ap3.1}
\subsection{ap3.2}
\subsection{ap3.3}
\begin{frame}



\end{frame}
\end{document}

1 Answer 1

2
\documentclass{beamer}

\usepackage{pgffor}

\begin{document}

    \foreach \i in {1,...,3}{
       \frame{
         \tableofcontents[
          sections=\i] }
                            }

 \section{ap1}
    \subsection{ap1.1}
    \subsection{ap1.2}
    \subsection{ap1.3}

 \section{ap2}
     \subsection{ap2.1}
     \subsection{ap2.2}
     \subsection{ap2.3}

 \section{ap3}
    \subsection{ap3.1}
    \subsection{ap3.2}
    \subsection{ap3.3}

\begin{frame}

\end{frame}
\end{document}
7
  • Ok , but where is second section ? I need that it will be at diffrent frames , only one section at frame , but all section in presentation
    – re1nex
    May 16, 2019 at 7:50
  • But if i have frames before another section , I have parts of tableofcontents in another parts of presentation , how can i fix it ?
    – re1nex
    May 16, 2019 at 16:37
  • I edit MWE ,when I use your method ,I have slides of presentation in tableofcontents
    – re1nex
    May 16, 2019 at 18:28
  • ok, i edit the text
    – re1nex
    May 16, 2019 at 18:51
  • When I use your code in my MWE , i have empty slide between first and second section in table-of-contents , but I need that table-of-contents continuous and will be before all presentation
    – re1nex
    May 16, 2019 at 19:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .