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 @@ ...@@ -20,9 +20,7 @@
\newcommand\dept[1]{\gdef\insertdept{#1}} \newcommand\dept[1]{\gdef\insertdept{#1}}
\dept{} \dept{}
\pgfdeclareimage[width=2.156cm]{LogoFirst}{logo.pdf}
\pgfdeclareimage[width=\paperwidth,height=\paperheight]{BgdFirst}{fond.pdf}
% le logo fait 1cm de haut soit 7.8% des 12.8cm de large d'un beamer 4/3 standard % le logo fait 1cm de haut soit 7.8% des 12.8cm de large d'un beamer 4/3 standard
\newcommand\logoheight{.07812\paperwidth} \newcommand\logoheight{.07812\paperwidth}
...@@ -79,32 +77,50 @@ ...@@ -79,32 +77,50 @@
% %
\defbeamertemplate*{title page}{tpt default}% \defbeamertemplate*{title page}{tpt default}%
{% {%
\hfill% \begin{columns}
\begin{minipage}[t][.55\paperheight][t]{.62\textwidth} \begin{column}{.4\paperwidth}
\vspace{3.5cm}% \@tempdima=\textwidth%
\usebeamercolor[fg]{title}\usebeamerfont{title}\raggedright{\inserttitle}\par% \advance\@tempdima by - 13mm%
\ifx\insertsubtitle\@empty% \hspace{13mm}%
\else% \begin{minipage}[t][\paperheight][t]{.3\@tempdima}%
{% \vspace{13mm}%
\vspace{1em}% \pgfuseimage{LogoFirst}%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\raggedright{\insertsubtitle}\par \end{minipage}
\vfill \end{column}
}% \begin{column}{.6\paperwidth}
\fi% \hspace{.03\textwidth}%
\end{minipage}% \begin{minipage}[t][.55\paperheight][t]{.9\textwidth}
\vspace{.1\paperheight}\par% \vspace{3.5cm}%
\hfill% \usebeamercolor[fg]{title}\usebeamerfont{title}\raggedright{\inserttitle}\par%
\begin{minipage}[b][.1\paperheight][b]{.62\textwidth} \ifx\insertsubtitle\@empty%
\usebeamercolor[fg]{author in title frame}\usebeamerfont{author in title frame}\insertauthor\par% \else%
\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% \vspace{1ex}%
\end{minipage}% \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\raggedright{\insertsubtitle}\par
\vspace{.25\paperheight}% \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{% \def\maketitle{%
{ {
\usebackgroundtemplate{\pgfuseimage{BgdFirst}}
\ifbeamer@inframe \ifbeamer@inframe
\titlepage \titlepage
\else \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