Added automatically inserted toc

This commit is contained in:
Lukas Pietzschmann
2022-12-25 11:29:54 +01:00
parent 0e76fd945f
commit 422549f8eb
3 changed files with 8 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ Just copy and paste `beamerthemeawesome.sty` into your project, add `\usetheme{a
This theme provides some settings you can tweak: This theme provides some settings you can tweak:
- Language: Possible values are `english` or `german`. This changes the value passed to babel and csquotes. If none of both is selected, `german` is used. - Language: Possible values are `english` or `german`. This changes the value passed to babel and csquotes. If none of both is selected, `german` is used.
- Extra slides: For each section and subsection an extra slide containing the title can be inserted. This is controlled by passing `secslide` or/and `subsecslide`. The absence of `secslide` indicates that you don't want an extra slide for every section. Analog for `subsecslide`. - Extra slides: For each section and subsection an extra slide containing the title can be inserted. This is controlled by passing `secslide` or/and `subsecslide`. The absence of `secslide` indicates that you don't want an extra slide for every section. Analog for `subsecslide`.
- Automatic toc: A table of contents is automatically inserted with the `\maketitle` command (After the title slide). If you want to disable this behavior, you have to set the `notoc` option.
If you wanna set one (or more) of those values, you have to pass it to `\usetheme`. Look at ![example.tex](https://github.com/LukasPietzschmann/awesome-beamer/blob/master/example.tex) for, well, an example. If you wanna set one (or more) of those values, you have to pass it to `\usetheme`. Look at ![example.tex](https://github.com/LukasPietzschmann/awesome-beamer/blob/master/example.tex) for, well, an example.

View File

@@ -18,6 +18,7 @@
\awesome@english@false \awesome@english@false
} }
\DeclareBoolOption{notoc}
\DeclareBoolOption{secslide} \DeclareBoolOption{secslide}
\DeclareBoolOption{subsecslide} \DeclareBoolOption{subsecslide}
@@ -111,6 +112,12 @@
\begin{frame}[noframenumbering, plain] \begin{frame}[noframenumbering, plain]
\titlepage \titlepage
\end{frame} \end{frame}
\ifawesome@notoc\else
\begin{frame}{Agenda}
\tableofcontents
\end{frame}
\fi
} }
\renewcommand{\ULdepth}{1.8pt} \renewcommand{\ULdepth}{1.8pt}

View File

@@ -18,10 +18,6 @@
\maketitle \maketitle
\begin{frame}{Agenda}
\tableofcontents
\end{frame}
\section{Section 1} \section{Section 1}
\begin{frame}{Example Slide}{With a subtitle} \begin{frame}{Example Slide}{With a subtitle}
\begin{columns}[t] \begin{columns}[t]