-
Mathias Chouet authored
logos renommage couverture quatrième de couverture
10ff9665
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
% Beamer themes on custom folder
% @see https://tex.stackexchange.com/a/284157
% @usage For a theme "MYTHEME" in a subfolder named "Theme"
% \usefolder{Theme}
% \usetheme{MYTHEME}
\makeatletter
\def\beamer@calltheme#1#2#3{%
\def\beamer@themelist{#2}
\@for\beamer@themename:=\beamer@themelist\do
{\usepackage[{#1}]{\beamer@themelocation/#3\beamer@themename}}}
\def\usefolder#1{
\def\beamer@themelocation{#1}
}
\def\beamer@themelocation{}
% Choose the custom folder for beamer theme
\usefolder{presentation_inrae}
\usetheme{INRAE}
% Reduce spacing in table of contents (beamer)
% https://tex.stackexchange.com/a/51458
\usepackage{etoolbox}
\makeatletter
\patchcmd{\beamer@sectionintoc}{\vskip1.5em}{\vskip1em}{}{}
\makeatother
% Automatic frame titles and subtitles from section and subsection
% @see https://tex.stackexchange.com/a/15429
\addtobeamertemplate{frametitle}{
\let\insertframetitle\insertsectionhead}{}
\addtobeamertemplate{frametitle}{
\let\insertframesubtitle\insertsubsectionhead}{}
\makeatletter
\CheckCommand*\beamer@checkframetitle{\@ifnextchar\bgroup\beamer@inlineframetitle{}}
%\renewcommand*\beamer@checkframetitle{\global\let\beamer@frametitle\relax\@ifnextchar\bgroup\beamer@inlineframetitle{}}
\makeatother
% Definition of custom Frame Title for INRAE
\newcommand{\INRAEFrameTitle}[2]{
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\node[anchor=south west] (gimmick_inrae) at (1,0)
{\includegraphics[width=1cm,keepaspectratio]{presentation_inrae/CouvCadreMarineGH}};
\useasboundingbox(0,0) rectangle(\the\paperwidth,1.2);
\def\tempa{1#2}% Third example https://tex.stackexchange.com/a/286903/124910
\if\tempa1%
{\node[anchor=west, gris,font=\Large] at (1.5,0.41){#1};}%
\else%
{\node[anchor= west, gris,font=\Large] at (1.5,0.61){#1};%
\node[anchor= west, inrae,font=\large] at (1.5,0.11){\textcolor{inrae}{\textsc{#2}}};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
% Definition of custom frame for INRAE Frame Title
\newcommand{\INRAEFrame}[1]{
\frame{
\frametitle{~}
717273
#1
}
}