use tex-fmt

This commit is contained in:
Mylloon 2024-10-09 16:42:00 +02:00
parent 7ddf3b6e7d
commit f8c04ff560
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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