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
\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}