# Two logos in opposite side on beamer

I am making a presentation in beamer. Because I am affiliated in two organisations, I want to have two logos, one on bottom left corner and the other one on the top right corner. How can I do that?

Right now I am using

\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{athanasios.stamatopoulos@cern.ch}]    {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}
\logo{%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{cern_logo_white.jpg}~%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{ntua-logo.jpg}%
}
\usepackage{textpos}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
Good Morning Vietnam!!!
\end{frame}

\end{document}


which gives

-
Thank you for your comment. I made that change but nothing really happened...Is that OK? –  Thanos Sep 25 '12 at 11:45
forget my first comment... Add \hspace{\dimexpr\paperwidth-2cm-5pt} instead of ~ between your logos. –  Paul Gaborit Sep 25 '12 at 11:52
You are right!!! It is working!!! Thank you for your solution... Wouldn't be a good idea to write it as an answer...? –  Thanos Sep 25 '12 at 12:01
@Thanos: should the logo go in an upper corner or not? If not, maybe I've misunderstood the question and I can delete the answer :) –  Claudio Fiandrino Sep 25 '12 at 12:10
@ClaudioFiandrino: Not necessaryly... Actually I need it to be at opossite sides. But I think it would be a good idea just for reference! –  Thanos Sep 25 '12 at 12:30

Try

\logo{%
\makebox[0.95\paperwidth]{%
\includegraphics[width=1cm,keepaspectratio]{cern_logo_white.jpg}%
\hfill%
\includegraphics[width=1cm,keepaspectratio]{ntua-logo.jpg}%
}%
}


It seems that logos are put at 2.5pt from the right slide edge as Paul Gaborit found out. Thus \paperwidth-5pt might be the correct size to be given to the LaTeX box.

-
Isn't \paperwidth necessarily producing overfull box? Shouldn't \linewidth or \textwidth be used instead? –  tohecz Sep 25 '12 at 12:00
From the included picture in the question I inferred that there is no margin with logos and \paperwidth equals \textwidth. But maybe I am wrong. –  AlexG Sep 25 '12 at 12:05
Actually it isn't quite working... Check here i.imgur.com/wqch2.jpg –  Thanos Sep 25 '12 at 12:11
Indeed, \paperwidth is somewhat to big. Play a little with the box width, e. g. 0.95\paperwidth. –  AlexG Sep 25 '12 at 12:18
If I do so it is really working! –  Thanos Sep 25 '12 at 12:31

Since the textpos package has already been loaded, the task is not so difficult. Similarly to the answer in Positioning logo in the front page as well as slides the second logo has been positioned by adding it to a pre-existent template, headline in this case.

Code:

\documentclass[compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{athanasios.stamatopoulos@cern.ch}]    {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}

\logo{%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{ntua-logo}%
}
\usepackage{textpos}
\begin{textblock*}{100mm}(.015\textwidth,0.2cm)
\includegraphics[height=1cm,width=1cm]{logopolito} % logo of my university
\end{textblock*}}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
Good Morning Vietnam!!!
\end{frame}

\end{document}


Result:

-
Thank you very much for your answer!!! –  Thanos Sep 25 '12 at 12:37

Here is a solution using \hspace to add space between logos.

Given that the paper width is \paperwidth, each logo has a width of 1cm, the margin between the edge and a logo is 2.5pt, the length of the space must be \paperwidth-2cm-5pt.

\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
%\usepackage{calc}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{athanasios.stamatopoulos@cern.ch}]    {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}
\logo{%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image}%
\hspace{\dimexpr\paperwidth-2cm-5pt}%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image}%
}
\usepackage{textpos}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
Good Morning Vietnam!!!
\end{frame}

\end{document}

-
Thanks for finding out the amount of right margin associated with the \logo command. –  AlexG Sep 26 '12 at 7:23