Skip to content
Snippets Groups Projects
Commit a11c7470 authored by Tarik Graba's avatar Tarik Graba :scream_cat:
Browse files

Modifies the titlepage to support the aspectratio option

 - it's not a pdf image anymore
 - only the logo (with its text) is an image
 - the color blocs use the beamercolorbox env.
 - Uses the column env. to align the logo
parent 041ec47e
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,7 @@
\newcommand\dept[1]{\gdef\insertdept{#1}}
\dept{}
\pgfdeclareimage[width=\paperwidth,height=\paperheight]{BgdFirst}{fond.pdf}
\pgfdeclareimage[width=2.156cm]{LogoFirst}{logo.pdf}
% le logo fait 1cm de haut soit 7.8% des 12.8cm de large d'un beamer 4/3 standard
\newcommand\logoheight{.07812\paperwidth}
......@@ -79,32 +77,50 @@
%
\defbeamertemplate*{title page}{tpt default}%
{%
\hfill%
\begin{minipage}[t][.55\paperheight][t]{.62\textwidth}
\vspace{3.5cm}%
\usebeamercolor[fg]{title}\usebeamerfont{title}\raggedright{\inserttitle}\par%
\ifx\insertsubtitle\@empty%
\else%
{%
\vspace{1em}%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\raggedright{\insertsubtitle}\par
\vfill
}%
\fi%
\end{minipage}%
\vspace{.1\paperheight}\par%
\hfill%
\begin{minipage}[b][.1\paperheight][b]{.62\textwidth}
\usebeamercolor[fg]{author in title frame}\usebeamerfont{author in title frame}\insertauthor\par%
\usebeamercolor[fg]{email in title frame}\usebeamerfont{email in title frame}\insertemail\par%
\usebeamercolor[fg]{date in title frame}\usebeamerfont{date in title frame}\insertdate\par%
\end{minipage}%
\vspace{.25\paperheight}%
\begin{columns}
\begin{column}{.4\paperwidth}
\@tempdima=\textwidth%
\advance\@tempdima by - 13mm%
\hspace{13mm}%
\begin{minipage}[t][\paperheight][t]{.3\@tempdima}%
\vspace{13mm}%
\pgfuseimage{LogoFirst}%
\end{minipage}
\end{column}
\begin{column}{.6\paperwidth}
\hspace{.03\textwidth}%
\begin{minipage}[t][.55\paperheight][t]{.9\textwidth}
\vspace{3.5cm}%
\usebeamercolor[fg]{title}\usebeamerfont{title}\raggedright{\inserttitle}\par%
\ifx\insertsubtitle\@empty%
\else%
{%
\vspace{1ex}%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\raggedright{\insertsubtitle}\par
\vfill
}%
\fi%
\end{minipage}%
\vspace{.1\paperheight}\par%
\hspace{.03\textwidth}%
\begin{minipage}[b][.1\paperheight][b]{.9\textwidth}
\usebeamercolor[fg]{author in title frame}\usebeamerfont{author in title frame}\insertauthor\par%
\usebeamercolor[fg]{email in title frame}\usebeamerfont{email in title frame}\insertemail\par%
\usebeamercolor[fg]{date in title frame}\usebeamerfont{date in title frame}\insertdate\par%
\end{minipage}%
\vspace{.03\paperheight}\par%
\begin{beamercolorbox}[sep=0cm,wd=.6\paperwidth]{title}
\begin{beamercolorbox}[sep=0pt,wd=.2\paperwidth,ht=.4cm]{page in head/foot}\hfill{}\end{beamercolorbox}%
\begin{beamercolorbox}[sep=0pt,wd=.2\paperwidth,ht=.4cm]{dept in head/foot}\hfill{}\end{beamercolorbox}%
\begin{beamercolorbox}[sep=0pt,wd=.2\paperwidth,ht=.4cm]{author in head/foot}\hfill{}\end{beamercolorbox}%
\end{beamercolorbox}%
\vspace{.20\paperheight}%
\end{column}
\end{columns}
}%
\def\maketitle{%
{
\usebackgroundtemplate{\pgfuseimage{BgdFirst}}
\ifbeamer@inframe
\titlepage
\else
......
File deleted
File added
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment