From 32f677a74be2dcd8a61ec44017a6607ff2cd7f2a Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sat, 7 Sep 2019 17:06:37 +0200 Subject: [PATCH] new title page --- beamerthemeens.sty | 50 +++++++++++++++++++++++++++++++++++++++++++++- presentation.tex | 8 ++++++-- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/beamerthemeens.sty b/beamerthemeens.sty index c252f79..5e7f291 100644 --- a/beamerthemeens.sty +++ b/beamerthemeens.sty @@ -34,11 +34,58 @@ \def\swidth{2cm} + + +% +% ----------------------------- +% Title Page + +\setbeamerfont{title}{size=\Huge} +\setbeamerfont{author}{size=\large} +\setbeamerfont{institut}{size=\Large} +\setbeamerfont{subtitle}{size=\Large} +\setbeamerfont{date}{size=\Large} +\setbeamertemplate{title page}{% +\begin{tikzpicture}[remember picture,overlay] +\fill[bleuens] + (current page.north west) rectangle (current page.south east); +\node + at ([yshift=+.15\textheight]current page.center) (title) + {\usebeamerfont{title}\textcolor{white}{\inserttitle}}; + +\node[below=2em] + at(title) (subtitle) + {\usebeamerfont{subtitle}\textcolor{white}{\insertsubtitle}}; + +\node + at ([yshift=-70pt]current page.center) (institute) + {\usebeamerfont{institute}\textcolor{white}{\insertinstitute}}; + +\node + at ([yshift=-50pt]current page.center) (author) + {\usebeamerfont{author}\textcolor{white}{\insertauthor}}; + +\node[anchor=north west] + at (current page.north west) (logo) + {\usebeamercolor[fg]{titlegraphic} + \includegraphics[scale=0.3]{ENSPS-revert.png}}; + + +\end{tikzpicture} +} + + + +% +% -------------------------------------- +% Sidebar + \useoutertheme[height=0pt,width=\swidth, hideothersubsections]{sidebar} \setbeamertemplate{sidebar left} { - {\vspace{1em} + {\vspace{0.9em} +\hspace{-0.4em} \begin{minipage}{\swidth} \centering \insertlogo @@ -55,6 +102,7 @@ \vskip3pt% }% + % -------------------------------------------------------------------------- % Section as frame title \if@section diff --git a/presentation.tex b/presentation.tex index d899b2e..ec25334 100644 --- a/presentation.tex +++ b/presentation.tex @@ -23,8 +23,7 @@ \begin{document} \begin{frame} - \centering - \titlepage + \maketitle \end{frame} \begin{frame}{Sommaire} @@ -70,3 +69,8 @@ \end{frame} \end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: