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

Ajout du modèle de présentation Irstea

parent 9da1a15e
\mode<presentation>
% Settings
%\setbeamercolor{headline}{fg=tabutter,bg=black}
%\setbeamercolor{headline}{fg=marine,bg=white}
\setbeamercolor{headline}{fg=black,bg=white}
%\setbeamercolor{headline}{fg=black,bg=gris!8}
\setbeamercolor{footline}{fg=marine, bg=white}
\setbeamerfont{footline}{size=\large,series=\tt}
\setbeamercolor{separation line}{bg=white}
\setbeamercolor{title in headline}{fg=gris}
\setbeamercolor{author in headline}{fg=ocean}
\setbeamercolor{institute in headline}{fg=acier}
\setbeamercolor{frametitle}{fg=gris}
\setbeamercolor{framesubtitle}{fg=ocean}
\setbeamercolor{author in head/foot}{fg=ocean, bg=white}
\setbeamercolor{title in head/foot}{fg=ocean, bg=white}
\setbeamercolor*{normal text}{fg=marine, bg=white}
%\setbeamercolor*{block body}{bg=white,fg=black}
\setbeamercolor*{block body}{bg=gris!10,fg=black}
%\setbeamercolor*{block title}{fg=bleufonce,bg=white}
\setbeamercolor*{block title}{fg=bleufonce,bg=gris!22}
\setbeamerfont{block title}{size=\large,series=\bf}
\setbeamercolor{upper separation line head}{fg=white}
\setbeamercolor*{example body}{fg=prairie,bg=white}
\setbeamercolor*{example text}{fg=prairie,bg=white}
\setbeamercolor*{example title}{bg=ocean,fg=white}
%\setbeamercolor{alerted text}{fg=ta3gray}
%\setbeamercolor{example text}{fg=taorange}
\setbeamercolor{structure}{fg=blue!50}
\mode
<all>
\ No newline at end of file
\mode<presentation>
% Settings
\setbeamercolor*{title page header}{fg=white}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
\mode
<all>
\ No newline at end of file
\mode<presentation>
% Title page
\defbeamertemplate*{title page}{irstea}[1][]
{
\begin{overpic}[width=4cm,height=4cm,keepaspectratio]{presentation_irstea/CouvCadreMarineGH}
\put(0,0){
\begin{minipage}{\linewidth}
\hspace{0.1\linewidth}
\begin{minipage}{0.90\linewidth}
\begin{flushleft}
\usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]}
\end{flushleft}
\end{minipage}
\hspace*{0.4\linewidth}
\begin{minipage}{0.6\linewidth}
\vspace{4ex}
\begin{flushleft}
\usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]}
\usebeamercolor{institute in headline}{\color{fg}\large{\insertdate}\\[1ex]}
\end{flushleft}
\end{minipage}
\end{minipage}
}
\end{overpic}
\vspace{3cm}
\begin{minipage}{0.49\linewidth}
\includegraphics[height=1.5cm,keepaspectratio]{presentation_irstea/logo_irstea_rvb}
\end{minipage}
\begin{minipage}{0.49\linewidth}
\begin{flushright}
\includegraphics[height=1cm,keepaspectratio]{\logopartenaire}
\end{flushright}
\end{minipage}
}
\mode
<all>
\ No newline at end of file
\mode<presentation>
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=brown] (0,2) rectangle (\the\paperwidth,\the\paperheight);
\fill[color=orange] (0,0) rectangle(2.95,1.9);
\fill[color=blue!50!cyan!80] (3.05,0) rectangle(\the\paperwidth,1.9);
\ifnum\thepage>1\relax%
\fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{texsx}[1][]
{
\vskip6cm%
\begin{beamercolorbox}[wd=12cm,leftskip=3cm,sep=8pt,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\vskip0.75cm%
\begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{author}
\usebeamerfont{author}\insertauthor%
\end{beamercolorbox}
\vskip0.2cm%
\begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{date}
\usebeamerfont{author}\insertdate%
\end{beamercolorbox}
\vfill
}
\mode
<all>
\ No newline at end of file
\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}
}
\mode<all>
\ No newline at end of file
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{texsx}[1][]
{
\vskip1cm%
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,1.2);
\fill[orange] (0,0) rectangle(2.95,1.2);
\fill[blue!50!cyan!80] (3.05,0) rectangle(\the\paperwidth,1.2);
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, white,font=\large] at (3.2,0.61){\insertframetitle};}
\else%
{\node[anchor= west, white,font=\large] at (3.2,0.81){\insertframetitle};%
\node[anchor= west, white,font=\small] at (3.2,0.41){\insertframesubtitle};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
\mode<all>
\ No newline at end of file
\usepackage{overpic} % For header page
% Définition de la police du document http://stackoverflow.com/q/877597
\usepackage{times}
\renewcommand{\familydefault}{\sfdefault}
\urlstyle{sf} % font of url links http://tex.stackexchange.com/a/668
\mode<presentation>
% Requirement
\RequirePackage{tikz}
\RequirePackage{rapport_irstea/irsteacolors}
% Settings
\selectcolormodel{rgb}
% Theme definition
\useinnertheme{irstea}
\useoutertheme{irstea}
\usecolortheme{irstea}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{footline}[frame number]
\setbeamerfont{footline}{size=\fontsize{9}{11}\selectfont} %https://tex.stackexchange.com/a/26899/124910
\setbeamercolor{section in toc}{fg=marine}
\setbeamercolor{subsection in toc}{fg=ocean}
\setbeamercolor{itemize item}{fg=ocean}
\setbeamercolor{enumerate item}{fg=ocean}
\mode<all>
\ No newline at end of file
\mode<presentation>
% Requirement
\RequirePackage{tikz}
% Settings
\useinnertheme{texsx}
\useoutertheme{texsx}
\usecolortheme{texsx}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\mode<all>
\ No newline at end of file
\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_irstea}
\usetheme{irstea}
% 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
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