Re: Beamer: \tableofcontents of parts

#54818
Up
0
Down
::

vedi al punto 2c come creare un esempio minimo compilabile.
http://www.guit.sssup.it/latex/newsgroup.php

Risolto con il divide et impera… grazie!!

Riporto il codice compilabile che include anche un tableofcontents per ogni parte.
`\documentclass[10pt]{beamer}
\makeatletter
\AtBeginPart{%
\addtocontents{toc}{\protect\beamer@partintoc{\the\c@part}{\beamer@partnameshort}{\the\c@page}}%
\begin{frame}[plain]
\partpage
\end{frame}
\begin{frame}
\frametitle{Outline: \insertpart}
\tableofcontents
\end{frame}
}%
\AtBeginSection[\subsection*{}]{\subsection*{}
\begin{frame}
%
\frametitle{Outline: \insertpart}%
\tableofcontents[currentsection]%
\end{frame}%
}
%% number, shortname, page.
\providecommand\beamer@partintoc[3]{%
\ifnum\c@tocdepth=-1\relax
% requesting onlyparts.
\makebox[6em]{PART #1:} #2
\par
\fi
}
\define@key{beamertoc}{onlyparts}[]{%
\c@tocdepth=-1\relax
}
\makeatother%

\begin{document}
\begin{frame}
\tableofcontents[onlyparts]
\end{frame}
\part{1}
\section{11}
\part{2}
\section{21}
\section{22}
\end{document}

`

Go to top