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 | | 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 % Styled ToC on new section
\ifoption@sec \ifoption@sec
\AtBeginSection[]{% \AtBeginSection[]{
\frame{ \begin{frame}[plain, noframenumbering]{\contentsname}
\frametitle{\contentsname}
\tableofcontents[ \tableofcontents[
currentsection, currentsection,
subsectionstyle=shaded, subsectionstyle=shaded,
] ]
} \end{frame}
\addtocounter{framenumber}{-1}
} }
\fi \fi
% Styled ToC on new subsection % Styled ToC on new subsection
\ifoption@subsec \ifoption@subsec
\AtBeginSubsection[]{ \AtBeginSubsection[]{
\frame{ \begin{frame}[plain, noframenumbering]{\contentsname}
\frametitle{\contentsname}
\tableofcontents[ \tableofcontents[
currentsubsection, currentsubsection,
sectionstyle=show/shaded, sectionstyle=show/shaded,
subsectionstyle=show/shaded, subsectionstyle=show/shaded,
] ]
} \end{frame}
\addtocounter{framenumber}{-1}
} }
\fi \fi