diff --git a/model.tex b/model.tex index 487d3ae5809272cfb66cc821d1e9cbd93873b663..638731538a4ef755ff4d71a953cfca709c3d0db5 100644 --- a/model.tex +++ b/model.tex @@ -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} diff --git a/texinputs/IPP-large.png b/texinputs/IPP-large.png new file mode 100644 index 0000000000000000000000000000000000000000..d8b5383f2aea54cd3836deb5189bc9f44488e63b Binary files /dev/null and b/texinputs/IPP-large.png differ diff --git a/texinputs/IPP-small-red.png b/texinputs/IPP-small-red.png new file mode 100644 index 0000000000000000000000000000000000000000..1997723fae7fb41f3b3ed9ae3b5d03377fc5de16 Binary files /dev/null and b/texinputs/IPP-small-red.png differ diff --git a/texinputs/IPP-small.png b/texinputs/IPP-small.png new file mode 100644 index 0000000000000000000000000000000000000000..2d606f9834d2786be12124a4451447efe05760ad Binary files /dev/null and b/texinputs/IPP-small.png differ diff --git a/texinputs/beamerthemetptnew.sty b/texinputs/beamerthemetptnew.sty index 79234dca2528f10a8eaa641c7da6a02ff6937ef5..0de697ff4a2d1b2b45b7d00e511527d06b4347bd 100644 --- a/texinputs/beamerthemetptnew.sty +++ b/texinputs/beamerthemetptnew.sty @@ -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% }