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

Adds commands to choose affiliations logos

parent 245862be
No related branches found
No related tags found
No related merge requests found
...@@ -20,13 +20,17 @@ ...@@ -20,13 +20,17 @@
% pour ne pas mettre l'extension des images % pour ne pas mettre l'extension des images
\DeclareGraphicsExtensions{.fig,.pdf,.png,.jpg} \DeclareGraphicsExtensions{.fig,.pdf,.png,.jpg}
% beamer theme % beamer theme
\mode<presentation> \mode<presentation>
% If you want headline with section list % If you want headline with section list
%\usetheme[infolines]{tptnew} %\usetheme[infolines]{tptnew}
% If you want to add "Université Paris Saclay" logos % If you want to add affiltation logos
%\usetheme[logosaclay]{tptnew} \usetheme[tptaffiliation]{tptnew}
\usetheme{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 @@ ...@@ -55,7 +59,8 @@
\author{Graba Tarik} \author{Graba Tarik}
\institute{COMELEC--SEN} \institute{COMELEC--SEN}
\extralogo{\includegraphics[width=2cm]{logo-cnrs}} % Additional logo in the title page
\extralogo{\includegraphics[width=2.5cm]{IPP-large}}
\date{} \date{}
%------------------------------------------------------------------------------ %------------------------------------------------------------------------------
\begin{document} \begin{document}
......
texinputs/IPP-large.png

88.4 KiB

texinputs/IPP-small-red.png

31.8 KiB

texinputs/IPP-small.png

45.1 KiB

...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
\DeclareOption{infolines}{\tpt@infolinestrue} \DeclareOption{infolines}{\tpt@infolinestrue}
\newif\iftpt@navsymbols\tpt@navsymbolstrue \newif\iftpt@navsymbols\tpt@navsymbolstrue
\DeclareOption{nonavsymbols}{\tpt@navsymbolsfalse} \DeclareOption{nonavsymbols}{\tpt@navsymbolsfalse}
\newif\iftpt@logosaclay\tpt@logosaclayfalse \newif\iftpt@tptaffiliation\tpt@tptaffiliationfalse
\DeclareOption{logosaclay}{\tpt@logosaclaytrue} \DeclareOption{tptaffiliation}{\tpt@tptaffiliationtrue}
\ProcessOptions \ProcessOptions
% %
...@@ -22,9 +22,10 @@ ...@@ -22,9 +22,10 @@
\newcommand\dept[1]{\gdef\insertdept{#1}} \newcommand\dept[1]{\gdef\insertdept{#1}}
\dept{} \dept{}
\newlength{\titlelogowidth}
\setlength{\titlelogowidth}{2cm}
% le logo de la page de titre % le logo de la page de titre
\pgfdeclareimage[width=2cm]{LogoFirst}{logo-gray.pdf} \pgfdeclareimage[width=\titlelogowidth]{LogoFirst}{logo-gray.pdf}
\pgfdeclareimage[width=2cm]{LogoFirstSaclay}{logo-upsay-violet.pdf}
% pour positionner ce logo par rapport au coin sup. gauche % pour positionner ce logo par rapport au coin sup. gauche
\newcommand\logoskipv{.12\paperheight} \newcommand\logoskipv{.12\paperheight}
\newcommand\logoskiph{.10\paperwidth} \newcommand\logoskiph{.10\paperwidth}
...@@ -32,25 +33,46 @@ ...@@ -32,25 +33,46 @@
\newcommand\extralogo[1]{\gdef\insertextralogo{#1}} \newcommand\extralogo[1]{\gdef\insertextralogo{#1}}
\extralogo{} \extralogo{}
\newlength{\logoheight} \newlength{\footerlogoheight}
\newlength{\brownblockwidth} \newlength{\brownblockwidth}
\iftpt@logosaclay
% Quand le logo de Saclay est utilisé, il faut réduire la taille à 5% de la largeur de la slide % Pour Modifier les logos des affiliations
\setlength{\logoheight}{.05118\paperwidth} % 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} \setlength{\brownblockwidth}{.42\paperwidth}
\newcommand\insertFirstLogoSaclay{\hspace{\logoskiph}\pgfuseimage{LogoFirstSaclay}\vspace{.18\paperheight}} \newcommand\insertFirstLogoSaclay{\hspace{\logoskiph}\pgfuseimage{titleAffiliation}\vspace{.18\paperheight}}
\newcommand\insertLogoSaclay{\hspace{1em}\raisebox{-1.5ex}{\pgfuseimage{logoUPSay}}\hspace{1em}} \newcommand\insertAffLogo{\hspace{1em}\raisebox{-1.5ex}{\pgfuseimage{footerAffiliation}}\hspace{1em}}
\else \else
% 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
\setlength{\logoheight}{.07812\paperwidth} \setlength{\footerlogoheight}{.07812\paperwidth}
\setlength{\brownblockwidth}{.44\paperwidth} \setlength{\brownblockwidth}{.44\paperwidth}
\newcommand\insertFirstLogoSaclay{} \newcommand\insertFirstLogoSaclay{}
\newcommand\insertLogoSaclay{} \newcommand\insertAffLogo{}
\fi \fi
\pgfdeclareimage[width=\logoheight]{logoTPT}{tpt}
\pgfdeclareimage[width=\footerlogoheight]{logoTPT}{tpt}
\logo{\pgfuseimage{logoTPT}} \logo{\pgfuseimage{logoTPT}}
% pour l'upsay
\pgfdeclareimage[height=\logoheight]{logoUPSay}{logo-upsay-e}
% .3 cm pour un beamer standard de 9.6cm de haut % .3 cm pour un beamer standard de 9.6cm de haut
\newcommand\footlineheight{0.03125\paperheight} \newcommand\footlineheight{0.03125\paperheight}
...@@ -197,7 +219,7 @@ ...@@ -197,7 +219,7 @@
\hspace*{\footlinespacing}% \hspace*{\footlinespacing}%
\hfill{}% \hfill{}%
\raisebox{-1.5ex}{\insertlogo}% le logo \raisebox{-1.5ex}{\insertlogo}% le logo
\insertLogoSaclay% \insertAffLogo%
}% }%
\vskip3pt% \vskip3pt%
} }
......
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