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.

In PaloAlto theme, I would like to have the logo on the top right corner instead of the top left corner so that the sidebar begins at the top left.

Any Idea ?

thanks

share|improve this question

1 Answer 1

Redefine the headline template to place the logo flush right and to suppress the draker square on the upper left corner:

\documentclass{beamer}
\usetheme{PaloAlto}

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

\begin{document}

\begin{frame}
\frametitle{Test Frame One}
CTAN lion drawing by Duane Bibby.
\end{frame}

\end{document}

enter image description here

share|improve this answer
    
it would probably be nicer to have the logo in white instead of black with a transparent background: maybe illegal? –  pluton Aug 16 '12 at 0:50
    
@pluton yes, a white image with transparent background would be appropriate for this design. –  Gonzalo Medina Aug 16 '12 at 1:02

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.