Commit fa2097de authored by Léo Grange's avatar Léo Grange

initial beamer template and example slides

Some hour of useless work, but quite correct results...
Please, do not blame me if the theme is ugly : the goal was to result with
similar look than the existing PowerPoint template...
parents
\mode<presentation>
% Requirement
\RequirePackage{tikz}
\RequirePackage{graphicx}
% Settings
%\useinnertheme{texsx}
%\useoutertheme{texsx}
%\usecolortheme{texsx}
\usetikzlibrary{positioning}
% some of the theme colors...
\definecolor{neocampusOrangeDark}{HTML}{E46C0A}
\definecolor{neocampusOrangeLight}{HTML}{F79646}
\definecolor{neocampusGrayDark}{HTML}{404040}
\setbeamercolor*{title page header}{fg=white}
\setbeamercolor*{title page title}{fg=neocampusGrayDark,bg=neocampusOrangeDark}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
\setbeamercolor*{frame title}{fg=neocampusOrangeLight,bg=white}
\setbeamerfont{title}{family=\sffamily,series=\bfseries,size={\fontsize{18}{22}}}
\setbeamerfont{author title}{family=\rmfamily,series=\bfseries,size={\fontsize{9}{11}}}
\setbeamerfont{frame title}{family=\sffamily,series=\bfseries,size={\fontsize{18}{22}}}
\def\supervisorlist{}
\newcommand{\supervisor}[1]{%
\edef\supervisorlist{
\unexpanded\expandafter{\supervisorlist}%
\ifdefempty{\supervisorlist}{}{\noexpand\\}%
~- {#1}} %
}
\def\teamlogocontent{}
\newcommand{\teamlogo}[1]{%
\def\teamlogocontent{#1}
}
\def\illustrationpicture{}
\newcommand{\illustration}[1]{%
\def\illustrationpicture{#1}
}
% background and title slides
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=white] (0,0) 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%
\node[inner sep=0pt, anchor=north west, name=logoups] at (0, \the\paperheight)
{ \includegraphics[width=4cm]{ups_logo}};
\node[inner sep=0pt, anchor=north, below = 0cm of logoups.south] (logo_neocampus)
{ \includegraphics[width=3.5cm]{neocampus_logo}};
\fi
\end{tikzpicture}
}
\defbeamertemplate*{title page}{Neocampus}[1][]
{
\makeatletter
\newlength\beamerleftmargin
\setlength\beamerleftmargin{\Gm@lmargin}
\makeatother
%\includegraphics[width=0.48\paperwidth]{base_neocampus}
\begin{tikzpicture}
\useasboundingbox (\the\beamerleftmargin,0) rectangle(\the\paperwidth,\the\paperheight);
%\fill[color=neocampusOrangeLight] (0,0) rectangle (\the\paperwidth,\the\paperheight);
\node[inner sep=0pt, anchor=north west] (baseneo) at (0,\the\paperheight)
{ \includegraphics[width=0.48\paperwidth]{base_neocampus}};
\ifdefempty{\illustrationpicture}{}{
\node[inner sep=0pt, anchor=north east] (illustration) at (\the\paperwidth,\the\paperheight)
{ \includegraphics[width=0.48\paperwidth]{\illustrationpicture}};
}
\usebeamercolor{title page title}
\fill[color=bg](0, 1.2cm) rectangle(\the\paperwidth, 2.7cm)
%node[align=center, pos=0.5, color=fg] {\usebeamerfont{title}TITRE israern eirastr aei eisrt aeir e eirst \\ \usebeamerfont{title} eaiusei arstrei anei rneisarntrnei anr eia};
node[align=center, pos=0.5, color=fg] {
\begin{minipage}{0.95\paperwidth}
\centering%
\usebeamerfont{title} \inserttitle\par
\end{minipage}
};
% logos...
\node[inner sep=0pt, anchor=south west] (logo_ups) at (0, 0)
{ \includegraphics[height=1.2cm]{ups_logo}};
\node[inner sep=0pt, anchor=south east] (logo_neocampus) at (\the\paperwidth - 0.2cm, 0.2cm)
{ \includegraphics[height=0.7cm]{neocampus_logo}};
\node[inner sep=0pt, anchor=south west] (custom_logos) at (3.4cm, 0cm)
{\begin{minipage}[t][1.2cm]{4.9cm}\centering\teamlogocontent\par\end{minipage}};
% \node[inner sep=0pt, anchor=south east] (logo_neocampus) at (6cm, 0.1cm)
% { \includegraphics[height=1cm]{logo_sepia}};
% \node[inner sep=0pt, anchor=south east] (logo_neocampus) at (7.8cm, 0.0cm)
% { \includegraphics[height=1.1cm]{logo_datazero}};
% stupid content...
\node[anchor=north west] at (7cm, 5cm) {
\begin{minipage}{1.0\linewidth}
\usebeamerfont{author title}
Réalisé par~:\\
\insertauthor
\end{minipage}
};
\node[anchor=north west] at (0.2cm, 5cm) {
\begin{minipage}{1.0\linewidth}
\usebeamerfont{author title}
Proposé et encadré par~:\\
\supervisorlist \par
\end{minipage}
};
\end{tikzpicture}
}
\defbeamertemplate*{frametitle}{Neocampus}[1][]
{
\vskip1cm%
\begin{beamercolorbox}[wd=\paperwidth,ht=.1cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox(0,0) rectangle(\the\paperwidth,1.2);
%\usebeamercolor{title page title}
%\fill[bg] (0,0) rectangle(4.05,1.2);
\usebeamercolor{frame title}
\fill[bg] (4.1cm,0) rectangle(\the\paperwidth,1.2);
%\usebeamercolor{header text}
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, color=fg] at (4.3cm,0.61){\usebeamerfont{frame title}\insertframetitle};}
\else%
{\node[anchor= west, color=fg] at (4.3,0.81){\usebeamerfont{frame title}\insertframetitle};%
\node[anchor= west, color=fg,font=\large] at (4.4,0.41){$\hookrightarrow$\hskip3pt\insertframesubtitle};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\mode<all>
\documentclass[frenchb]{beamer}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usetheme{Neocampus}
\title{Création de template as a service}
\author{Léo Grange}
\supervisor{Georges Da Costa}
\supervisor{Patricia Stolf}
\illustration{to_change_dc_solar}
\teamlogo{
\includegraphics[height=1cm]{logo_sepia}\quad
\includegraphics[height=1.1cm]{logo_datazero}
}
\begin{document}
\frame[plain]{\maketitle}
\begin{frame}
\frametitle{This is a title which is long}
%\framesubtitle{... and a subtitle}
\begin{block}{And a block}
Content...
\begin{itemize}
\item first
\item second
\end{itemize}
\end{block}
Content...
\end{frame}
\end{document}
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