Commit c41461e8 authored by Tarik Graba's avatar Tarik Graba 😷
Browse files

Adds commands to choose affiliations logos

parent 245862be
......@@ -20,13 +20,17 @@
% pour ne pas mettre l'extension des images
\DeclareGraphicsExtensions{.fig,.pdf,.png,.jpg}
% beamer theme
\mode<presentation>
% If you want headline with section list
%\usetheme[infolines]{tptnew}
% If you want to add "Université Paris Saclay" logos
%\usetheme[logosaclay]{tptnew}
\usetheme{tptnew}
% If you want to add affiltation logos
\usetheme[tptaffiliation]{tptnew}
%\usetheme{tptnew}
% If tpt is affiliated to a new entity, just give the new logos
\affiliationlogoinfooter{IPP-small}
\affiliationlogointitle{IPP-small-red}
%%------------------------------------------------------------------------------
......@@ -55,7 +59,8 @@
\author{Graba Tarik}
\institute{COMELEC--SEN}
\extralogo{\includegraphics[width=2cm]{logo-cnrs}}
% Additional logo in the title page
\extralogo{\includegraphics[width=2.5cm]{IPP-large}}
\date{}
%------------------------------------------------------------------------------
\begin{document}
......
......@@ -10,8 +10,8 @@
\DeclareOption{infolines}{\tpt@infolinestrue}
\newif\iftpt@navsymbols\tpt@navsymbolstrue
\DeclareOption{nonavsymbols}{\tpt@navsymbolsfalse}
\newif\iftpt@logosaclay\tpt@logosaclayfalse
\DeclareOption{logosaclay}{\tpt@logosaclaytrue}
\newif\iftpt@tptaffiliation\tpt@tptaffiliationfalse
\DeclareOption{tptaffiliation}{\tpt@tptaffiliationtrue}
\ProcessOptions
%
......@@ -22,9 +22,10 @@
\newcommand\dept[1]{\gdef\insertdept{#1}}
\dept{}
\newlength{\titlelogowidth}
\setlength{\titlelogowidth}{2cm}
% le logo de la page de titre
\pgfdeclareimage[width=2cm]{LogoFirst}{logo-gray.pdf}
\pgfdeclareimage[width=2cm]{LogoFirstSaclay}{logo-upsay-violet.pdf}
\pgfdeclareimage[width=\titlelogowidth]{LogoFirst}{logo-gray.pdf}
% pour positionner ce logo par rapport au coin sup. gauche
\newcommand\logoskipv{.12\paperheight}
\newcommand\logoskiph{.10\paperwidth}
......@@ -32,25 +33,46 @@
\newcommand\extralogo[1]{\gdef\insertextralogo{#1}}
\extralogo{}
\newlength{\logoheight}
\newlength{\footerlogoheight}
\newlength{\brownblockwidth}
\iftpt@logosaclay
% Quand le logo de Saclay est utilisé, il faut réduire la taille à 5% de la largeur de la slide
\setlength{\logoheight}{.05118\paperwidth}
% Pour Modifier les logos des affiliations
% Au cas où le nom du ficgier contiendrait des _ on passe par une macro pour modifier
% son interprétation
\def\affiliationlogoinfooter{\begingroup\catcode`\_=12 \REALaffiliationlogoinfooter}
\newcommand\REALaffiliationlogoinfooter[1]{%
\pgfdeclareimage[height=\footerlogoheight]{footerAffiliation}{#1}%
\endgroup%
}
\def\affiliationlogointitle{\begingroup\catcode`\_=12 \REALaffiliationlogointitle}
\newcommand\REALaffiliationlogointitle[1]{%
\pgfdeclareimage[width=\titlelogowidth]{titleAffiliation}{#1}%
\endgroup%
}
% Affiliation par défaut l'upsay
\affiliationlogoinfooter{logo-upsay-e}
\affiliationlogointitle{logo-upsay-violet}
\iftpt@tptaffiliation
% Quand le logo des affiliations est utilisé, il faut réduire la taille à 5% de la largeur de la slide
\setlength{\footerlogoheight}{.05118\paperwidth}
\setlength{\brownblockwidth}{.42\paperwidth}
\newcommand\insertFirstLogoSaclay{\hspace{\logoskiph}\pgfuseimage{LogoFirstSaclay}\vspace{.18\paperheight}}
\newcommand\insertLogoSaclay{\hspace{1em}\raisebox{-1.5ex}{\pgfuseimage{logoUPSay}}\hspace{1em}}
\newcommand\insertFirstLogoSaclay{\hspace{\logoskiph}\pgfuseimage{titleAffiliation}\vspace{.18\paperheight}}
\newcommand\insertAffLogo{\hspace{1em}\raisebox{-1.5ex}{\pgfuseimage{footerAffiliation}}\hspace{1em}}
\else
% le logo fait 1cm de haut soit 7.8% des 12.8cm de large d'un beamer 4/3 standard
\setlength{\logoheight}{.07812\paperwidth}
\setlength{\footerlogoheight}{.07812\paperwidth}
\setlength{\brownblockwidth}{.44\paperwidth}
\newcommand\insertFirstLogoSaclay{}
\newcommand\insertLogoSaclay{}
\newcommand\insertAffLogo{}
\fi
\pgfdeclareimage[width=\logoheight]{logoTPT}{tpt}
\pgfdeclareimage[width=\footerlogoheight]{logoTPT}{tpt}
\logo{\pgfuseimage{logoTPT}}
% pour l'upsay
\pgfdeclareimage[height=\logoheight]{logoUPSay}{logo-upsay-e}
% .3 cm pour un beamer standard de 9.6cm de haut
\newcommand\footlineheight{0.03125\paperheight}
......@@ -197,7 +219,7 @@
\hspace*{\footlinespacing}%
\hfill{}%
\raisebox{-1.5ex}{\insertlogo}% le logo
\insertLogoSaclay%
\insertAffLogo%
}%
\vskip3pt%
}
......
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