update templates

This commit is contained in:
2025-11-12 17:13:43 +01:00
parent 63f66fbf02
commit 3202ab8096
114 changed files with 1178 additions and 2034 deletions

View File

@@ -9,9 +9,12 @@
\ProvidesClass{bredelebeamer}[17/02/2015, v1.0]
\PassOptionsToPackage{svgnames}{xcolor}
\LoadClass[compress,8pt]{beamer}
\LoadClass[aspectratio=1610,compress,8pt]{beamer}
\setbeamersize{text margin left=5mm, text margin right=5mm}
\usepackage[french]{babel}
% \usepackage[french]{babel}
\usepackage[export]{adjustbox}
\usepackage[english,french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{helvet}
@@ -19,7 +22,21 @@
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage[footnotesize,hang]{caption} % réduire la taille des légendes des images
\usepackage{hyperref}
\usepackage{refcount}
\usepackage{tikz}
\usepackage{qrcode}
\usepackage[overridenote]{pdfpc}
%% Setup for bibliography
\usepackage{csquotes}
\usepackage{microtype}
\usepackage[backend=biber,natbib=true,style=authoryear,uniquelist=false,uniquename=false,giveninits=false,isbn=false,url=false,doi=false,maxcitenames=3,maxbibnames=6,sorting=nyvt]{biblatex}
\addbibresource[glob]{biblio.bib}
\BiblatexSplitbibDefernumbersWarningOff
\DeclareFieldFormat{labelnumberwidth}{}
\setbeamertemplate{bibliography item}{}
\emergencystretch=1em
\renewcommand{\footcite}[2][]{\footnote[#1]{\citet{#2}}}
\usepackage{appendixnumberbeamer}% ne compte pas les slides backups dans le nombre total
\long\def\beamer@@ssection*#1{\beamer@section[]{}}% retire les sections invisibles de la barre de navigation
@@ -47,6 +64,7 @@
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{array}
\usepackage{booktabs}
\usepackage{colortbl}
\tcbuselibrary{skins}
@@ -152,38 +170,39 @@ coltitle=white,center title}}
\beamer@compresstrue
\defbeamertemplate*{headline}{smoothbars theme}
{%
\begin{beamercolorbox}[ht=2.125ex,dp=3.150ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
% Commenter les 4 lignes suivantes si vous ne voulez pas la barre des sous-sections.
\begin{beamercolorbox}[ht=2.125ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.125ex,dp=3.150ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
% Comment next block to hide subsection bar
\ifnum\c@subsection>0{%
\begin{beamercolorbox}[ht=2.125ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}%
\usebeamerfont{subsection in head/foot}\insertsubsectionhead%
\ifnum\c@subsubsection>0{\;-\;\insertsubsubsectionhead}\fi%
\end{beamercolorbox}%
}\fi%
}
\setbeamercolor{author in head/foot}{bg=leftFootlineColor, fg=authorColor}
\setbeamercolor{title in head/foot}{bg=middleFootlineColor, fg=footlineTitleColor}
\setbeamercolor{institute in head/foot}{fg=instituteColor}
\setbeamercolor{date in head/foot}{bg=rightFootlineColor, fg=dateColor}
\defbeamertemplate*{footline}{infolines theme}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~
\insertshortinstitute
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}
\defbeamertemplate*{footline}{infolines theme}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~%
\insertshortinstitute%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}%
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}%
\end{beamercolorbox}%
}%
\vskip0pt%
}%
\vskip0pt%
}
\mode
<all>
@@ -196,76 +215,125 @@ leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usepackage{etoolbox}
\AtBeginEnvironment{exampleblock}{%
\setbeamercolor{itemize item}{fg=exampleTitleBlockColor!70}
\setbeamercolor{itemize item}{fg=exampleTitleBlockColor!70}
}
\AtBeginEnvironment{alertblock}{%
\setbeamercolor{itemize item}{fg=alertTitleBlockColor!70}
\setbeamercolor{itemize item}{fg=alertTitleBlockColor!70}
}
\AtBeginEnvironment{block}{%
\setbeamercolor{itemize item}{fg=normalTitleBlockColor!70}
\setbeamercolor{itemize item}{fg=normalTitleBlockColor!70}
}
\newcommand{\boitejaune}[1]{
\begin{center}
\fcolorbox{Framajaune}{Framajaunelight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
\begin{center}
\fcolorbox{Framajaune}{Framajaunelight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
}
\newcommand{\boiteviolette}[1]{
\begin{center}
\fcolorbox{Framaviolet}{Framavioletlight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
\begin{center}
\fcolorbox{Framaviolet}{Framavioletlight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
}
\newcommand{\boiteorange}[1]{
\begin{center}
\fcolorbox{Framaorange}{Framaorangelight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
\begin{center}
\fcolorbox{Framaorange}{Framaorangelight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
}
\newcommand{\boitemarron}[1]{
\begin{center}
\fcolorbox{Framamarron}{Framamarronlight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
\begin{center}
\fcolorbox{Framamarron}{Framamarronlight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
}
\newcommand{\boitegrise}[1]{
\begin{center}
\fcolorbox{Framagris}{Framagrislight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
\begin{center}
\fcolorbox{Framagris}{Framagrislight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
}
\newcommand{\boitebleue}[1]{
\begin{center}
\fcolorbox{Framableu}{Framableulight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
\begin{center}
\fcolorbox{Framableu}{Framableulight}{
\begin{minipage}{0.5\textwidth}
#1
\end{minipage}
}
\end{center}
}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Code Listings
% Default fixed font does not support bold face
\DeclareFixedFont{\ttb}{T1}{txtt}{bx}{n}{9} % for bold
\DeclareFixedFont{\ttm}{T1}{txtt}{m}{n}{9} % for normal
% Custom colors
\usepackage{color}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{orange}{rgb}{1.0,0.49,0.0}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{HTML}{C42043}
\definecolor{backcolour}{HTML}{F2F2F2}
\definecolor{bookColor}{cmyk}{0,0,0,0.90}
\color{bookColor}
\usepackage{listings}
% Python style for highlighting
\newcommand\pythonstyle{\lstset{
language=Python,
basicstyle=\scriptsize\ttfamily,
morekeywords={self}, % Add keywords here
keywordstyle=\bf\color{deepblue},
emph={MyClass,__init__}, % Custom highlighting
emphstyle=\bf\color{deepred}, % Custom highlighting style
stringstyle=\color{deepgreen},
commentstyle=\bf\color{codegray},
frame=single, % Any extra options here
showstringspaces=false,
breaklines=true,
}}
% Python environment
\lstnewenvironment{python}[1][]
{
\pythonstyle
\lstset{#1}
}
{}
% Python for external files
\newcommand\pythonexternal[2][]{{
\pythonstyle
\lstinputlisting[#1]{#2}
}}