better section frame

This commit is contained in:
Mylloon 2023-12-05 19:22:40 +01:00
parent 68c02970e2
commit d0e9ecdca6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 6 additions and 10 deletions

View file

@ -46,4 +46,4 @@ Options disponibles :
| Diapositive | Titre de la partie 1 | Titre de la sous-partie 2 |
| :----------------------------------: | :----------------------------------: | :----------------------------------: |
| ![](https://i.imgur.com/bAdX4mG.png) | ![](https://i.imgur.com/XEHqmki.png) | ![](https://i.imgur.com/kUMRMrq.png) |
| ![](https://i.imgur.com/bAdX4mG.png) | ![](https://i.imgur.com/Qx0RT4Q.png) | ![](https://i.imgur.com/bL6BQo3.png) |

View file

@ -39,30 +39,26 @@
% Styled ToC on new section
\ifoption@sec
\AtBeginSection[]{%
\frame{
\frametitle{\contentsname}
\AtBeginSection[]{
\begin{frame}[plain, noframenumbering]{\contentsname}
\tableofcontents[
currentsection,
subsectionstyle=shaded,
]
}
\addtocounter{framenumber}{-1}
\end{frame}
}
\fi
% Styled ToC on new subsection
\ifoption@subsec
\AtBeginSubsection[]{
\frame{
\frametitle{\contentsname}
\begin{frame}[plain, noframenumbering]{\contentsname}
\tableofcontents[
currentsubsection,
sectionstyle=show/shaded,
subsectionstyle=show/shaded,
]
}
\addtocounter{framenumber}{-1}
\end{frame}
}
\fi