Commit b871664b authored by Dorchies David's avatar Dorchies David
Browse files

Présentation Irstea : Amélioration titre frame et TOC

parent 92718252
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{irstea}[1][]
{
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\node[anchor=south west] (gimmick_irstea) at (1,0)
{\includegraphics[width=1cm,keepaspectratio]{presentation_irstea/CouvCadreMarineGH}};
\useasboundingbox(0,0) rectangle(\the\paperwidth,1.2);
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, gris,font=\Large] at (1.5,0.41){\insertframetitle};}
\else%
{\node[anchor= west, gris,font=\Large] at (1.5,0.61){\insertframetitle};%
\node[anchor= west, ocean,font=\large] at (1.5,0.11){\textsc{\insertframesubtitle}};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
\defbeamertemplate*{frametitle}{irstea}[1][]{\IrsteaFrameTitle{\insertframetitle}{\insertframesubtitle}}
\mode<all>
\ No newline at end of file
......@@ -28,6 +28,12 @@
\usefolder{presentation_irstea}
\usetheme{irstea}
% 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
......@@ -40,3 +46,20 @@
%\renewcommand*\beamer@checkframetitle{\global\let\beamer@frametitle\relax\@ifnextchar\bgroup\beamer@inlineframetitle{}}
\makeatother
% Definition of custom Frame Title for Irstea
\newcommand{\IrsteaFrameTitle}[2]{
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\node[anchor=south west] (gimmick_irstea) at (1,0)
{\includegraphics[width=1cm,keepaspectratio]{presentation_irstea/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, ocean,font=\large] at (1.5,0.11){\textcolor{ocean}{\textsc{#2}}};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment