Source code for pyexlatex.presentation.beamer.templates.control.tocsection

from pyexlatex.models.template import Template
from pyexlatex.presentation import Frame
from pyexlatex.presentation.beamer.control.atbeginsection import AtBeginSection
from pyexlatex.models.toc import TableOfContents


[docs]class TableOfContentsAtBeginSection(Template):
[docs] def __init__(self): toc = TableOfContents(options=('currentsection',)) frame = Frame([toc], title='Table of Contents') at_begin = AtBeginSection(frame) self.contents = at_begin super().__init__()