Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a beamer presentation and use the PaloAlto theme. As you can see in the code sample I have two logos over each other. I'd like to place one on the left hand and the other on the right side. Would please help?

\logo{\includegraphics[height=0.8cm]{images/city_magazine_custom_logo}\hspace{-60pt}
  \includegraphics[height=0.8cm]{images/ses50}\hspace{-10pt}
  }
share|improve this question
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  egreg Jan 14 '13 at 21:54
add comment

1 Answer 1

up vote 4 down vote accepted

Here's one possibility redefining the headline template used by the PaloAlto theme; I defined a command \logoii to be used for the second logo in a fashion completely analogous to the standard \logo command (I used the same image for both logos in my example, but, of course, you can use whatever images you want instead):

\documentclass{beamer}
\usetheme{PaloAlto}

\makeatletter
\newcommand\insertlogoii{}
\newcommand\logoii[1]{\renewcommand\insertlogoii{#1}}
\setbeamertemplate{headline}
  {%
    \begin{beamercolorbox}[wd=\paperwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{\hss\vbox to
          \beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
        \hfill%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{\hss\vbox to
          \beamer@headheight{\vss\hbox{\color{fg}\insertlogoii}\vss}\hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}
}
\makeatother

\title{The Title}
\subtitle{CTAN lion drawing by Duane Bibby}
\author{The Author}
\logo{\includegraphics[height=0.8cm]{ctanlion}}
\logoii{\includegraphics[height=0.8cm]{ctanlion}}

\begin{document}

\begin{frame}
\maketitle
\end{frame}

\end{document}

enter image description here

share|improve this answer
    
thanks a lot Gonzalo. Muchas gracias. I put as answer but I don't have enough point to vote up. –  user1098135 Jan 15 '13 at 7:18
    
@user1098135 ¡De nada! I'm glad I could help! Thanks for accepting the answer. –  Gonzalo Medina Jan 15 '13 at 20:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.