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

Makes footline blocks proportionals to the page size

parent 22b7ec00
No related branches found
No related tags found
No related merge requests found
......@@ -22,10 +22,16 @@
\pgfdeclareimage[width=\paperwidth,height=\paperheight]{BgdFirst}{fond.pdf}
\newcommand\logoheight{1cm}
% le logo fait 1cm de haut soit 7.8% des 12.8cm de large d'un beamer 4/3 standard
\newcommand\logoheight{.07812\paperwidth}
\pgfdeclareimage[width=\logoheight]{logoTPT}{tpt}
\logo{\pgfuseimage{logoTPT}}
% .3 cm pour un beamer standard de 9.6cm de haut
\newcommand\footlineheight{0.03125\paperheight}
% 1mm pour un beamer standard de 12.8cm de large
\newcommand\footlinespacing{0.0078125\paperwidth}
%
% Fonts and colors.
......@@ -124,26 +130,26 @@
\end{beamercolorbox}
\vskip -14pt%
\hbox{%
\begin{beamercolorbox}[left,wd=.15\paperwidth,ht=.3cm,dp=1.5ex]{page in head/foot}%
\begin{beamercolorbox}[left,wd=.15\paperwidth,ht=\footlineheight,dp=1.5ex]{page in head/foot}%
\hspace*{3ex}%
\usebeamerfont{author in head/foot}\insertframenumber{}/\inserttotalframenumber%
\hfill{}%
\end{beamercolorbox}%
\hspace*{1ex}%
\hspace*{\footlinespacing}%
\hfill{}%
\begin{beamercolorbox}[wd=.27\paperwidth,ht=.3cm,dp=1.5ex,leftskip=1em,rightskip=1em]{dept in head/foot}%
\begin{beamercolorbox}[wd=.27\paperwidth,ht=\footlineheight,dp=1.5ex,leftskip=1em,rightskip=1em]{dept in head/foot}%
\hfill{}%
\usebeamerfont{dept in head/foot}\insertdept%
\hfill{}\hfill{}%
\end{beamercolorbox}%
\hspace*{1ex}%
\hspace*{\footlinespacing}%
\hfill{}%
\begin{beamercolorbox}[wd=.45\paperwidth,ht=.3cm,dp=1.5ex,leftskip=.3cm,rightskip=1ex]{title in head/foot}%
\begin{beamercolorbox}[wd=.46\paperwidth,ht=\footlineheight,dp=1.5ex,leftskip=.3cm,rightskip=1ex]{title in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor%
\hfill{}%
\usebeamerfont{date in head/foot}\insertshortdate%
\end{beamercolorbox}
\hspace*{1ex}%
\hspace*{\footlinespacing}%
\hfill{}%
\raisebox{-1.5ex}{\insertlogo}% le logo
}%
......
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