Issue #64 open

Add tableofcontents styles that display frame numbers

Nicolas M. Thiéry
created an issue

Add tableofcontents styles that display frame numbers:

{{{ A. Généralités . . . . . . . . . . . . . . . . . . . . . . . . . 4 B. Produit Cartésien . . . . . . . . . . . . . . . . . . . . . . 7 C. Parties d'un ensemble . . . . . . . . . . . . . . . . . . . . 9 }}}

For the moment, I hacked this for sections in my lecture notes by changing a bit \beamer@sectionintoc to record the frame number in a new macro \inserttocsectionstartpage{#3} (see below).

{{{ \def\beamer@sectionintoc#1#2#3#4#5{% \ifnum\c@tocdepth>0% \ifnum#4=\beamer@showpartnumber% { \beamer@saveanother% \gdef\beamer@todo{}% \beamer@slideinframe=#1\relax% \expandafter\only\beamer@tocsections{\gdef\beamer@todo{% \beamer@tempcount=#5\relax% \advance\beamer@tempcount by\beamer@sectionadjust% \edef\inserttocsectionnumber{\Alpha\beamer@tempcount}% \def\inserttocsection{\hyperlink{Navigation#3}{#2}}% % New macro defined here!!! \def\inserttocsectionstartpage{#3}% \beamer@tocifnothide{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}% { \ifbeamer@pausesections\pause\fi% \ifx\beamer@toc@ooss\beamer@hidetext \vskip1.5em \else \vfill \fi {% \hbox{\vbox{% \def\beamer@breakhere{\}% \beamer@tocact{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}{section in toc}}}% \par% }% }% } }% \beamer@restoreanother% } \beamer@todo% \fi\fi% }

\setbeamertemplate{section in toc} {\leavevmode\inserttocsectionnumber. \inserttocsection \ \dotfill \ \inserttocsectionstartpage \par} }}}

Comments (1)

  1. Log in to comment