From f8c04ff56097653aa1031cd634f8ee852810dd7e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 9 Oct 2024 16:42:00 +0200 Subject: [PATCH] use tex-fmt --- projektor.sty | 90 +++++++++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/projektor.sty b/projektor.sty index 53b7758..0bdcdc5 100644 --- a/projektor.sty +++ b/projektor.sty @@ -16,70 +16,70 @@ \ProcessOptions \ifoption@code - % Intégration code - \RequirePackage{minted} - \usemintedstyle{emacs} +% Intégration code +\RequirePackage{minted} +\usemintedstyle{emacs} \fi \ifoption@fr - % Langue - \RequirePackage[french]{babel} - \RequirePackage{csquotes} - \MakeOuterQuote{"} +% Langue +\RequirePackage[french]{babel} +\RequirePackage{csquotes} +\MakeOuterQuote{"} \fi % Moloch avec barre de progression \usetheme[ - progressbar=frametitle, - block=fill, + progressbar=frametitle, + block=fill, ]{moloch} % Renomme la table des matières \AtBeginDocument{ - \renewcommand{\contentsname}{Plan} + \renewcommand{\contentsname}{Plan} } % Table des matières comme frame de nouvelle partie \ifoption@sec - \AtBeginSection[]{ - \begin{frame}[plain, noframenumbering]{\contentsname} - \tableofcontents[ - currentsection, - subsectionstyle=shaded, - ] - \end{frame} - } +\AtBeginSection[]{ + \begin{frame}[plain, noframenumbering]{\contentsname} + \tableofcontents[ + currentsection, + subsectionstyle=shaded, + ] + \end{frame} +} \fi % Table des matières comme frame de nouvelle sous-partie \ifoption@subsec - \AtBeginSubsection[]{ - \begin{frame}[plain, noframenumbering]{\contentsname} - \tableofcontents[ - currentsubsection, - sectionstyle=show/shaded, - subsectionstyle=show/shaded, - ] - \end{frame} - } +\AtBeginSubsection[]{ + \begin{frame}[plain, noframenumbering]{\contentsname} + \tableofcontents[ + currentsubsection, + sectionstyle=show/shaded, + subsectionstyle=show/shaded, + ] + \end{frame} +} \fi \ifoption@dark - % Thème sombre - \setbeamercolor{normal text}{fg=white,bg=black!90} - \setbeamercolor{alerted text}{fg=orange!65!white} - \setbeamercolor{progress bar}{bg=alerted text.fg!20!black!90} - \setbeamercolor{frametitle}{bg=black!92} - \setbeamercolor{palette primary}{use=structure,fg=structure.fg} +% Thème sombre +\setbeamercolor{normal text}{fg=white,bg=black!90} +\setbeamercolor{alerted text}{fg=orange!65!white} +\setbeamercolor{progress bar}{bg=alerted text.fg!20!black!90} +\setbeamercolor{frametitle}{bg=black!92} +\setbeamercolor{palette primary}{use=structure,fg=structure.fg} \else - % Augmente l'épaisseur de la barre de progression sur les diapos - \setlength{\moloch@progressinheadfoot@linewidth}{0.8pt} +% Augmente l'épaisseur de la barre de progression sur les diapos +\setlength{\moloch@progressinheadfoot@linewidth}{0.8pt} - % Couleur de la police - \setbeamercolor{normal text}{fg=black} +% Couleur de la police +\setbeamercolor{normal text}{fg=black} - % Ne change pas les autres couleurs - \definecolor{mDarkTeal}{HTML}{23373b} - \setbeamercolor{palette primary}{bg=mDarkTeal} +% Ne change pas les autres couleurs +\definecolor{mDarkTeal}{HTML}{23373b} +\setbeamercolor{palette primary}{bg=mDarkTeal} \fi % Point au lieu de carré dans les listes @@ -90,15 +90,15 @@ % Métadonnées \hypersetup{ - pdfsubject={Présentation}, - pdfkeywords={presentation}, - pdfcreator={LaTeX with Beamer class and projektor template} + pdfsubject={Présentation}, + pdfkeywords={presentation}, + pdfcreator={LaTeX with Beamer class and projektor template} } % Bas de page \setbeamertemplate{frame footer}{ - \makebox[0pt][l]{\insertsection} \hfill - \makebox[0pt][c]{\insertshorttitle} + \makebox[0pt][l]{\insertsection} \hfill + \makebox[0pt][c]{\insertshorttitle} } \setbeamerfont{page number in head/foot}{size=\tiny} \setbeamercolor{footline}{fg=gray}