[Tex/LaTex] (Warsaw Theme) How to put the logo on the top right of each slide

beamerlogospositioning

Hi I wish that my logo could be on the top right of each slide and also to position it wherever I want on the title page.

\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\newcommand{\Rightarrowtext}[1]{\ensuremath{\stackrel{\text{#1}}{\Rightarrow}}}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{eso-pic}
\author{Philippe Fanaro}
\title{MC Algorithm for Non-Linear Equations}
%\setbeamercovered{transparent} 
%\setbeamertemplate{navigation symbols}{} 
\logo{\includegraphics[height=1cm]{Minerva}\vspace{175pt}}
%\institute{} 
\date{October 2014} 
%\subject{} 

\newcommand*\oldmacro{}
\let\oldmacro\insertshorttitle
\renewcommand*\insertshorttitle{
  \oldmacro\hfill
  \insertframenumber\,/\,\inserttotalframenumber}

\begin{document}

This is what I have so far, I wish the logo would be on the top right blue part of the Warsaw theme, but no matter what I do with the "175pt" the image will not get there. I don't think the Warsaw theme enables it, maybe I'll have to write a custom theme.

This is what I have so far, my logo won't get to where I want.

Best Answer

You can add the image to the headline:

\documentclass[11pt]{beamer}
\usetheme{Warsaw}

\makeatletter
\setbeamertemplate{headline}
{%
  \leavevmode%
  \@tempdimb=2.4375ex%
  \ifnum\beamer@subsectionmax<\beamer@sectionmax%
    \multiply\@tempdimb by\beamer@sectionmax%
  \else%
    \multiply\@tempdimb by\beamer@subsectionmax%
  \fi%
  \ifdim\@tempdimb>0pt%
    \advance\@tempdimb by 1.825ex%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.3\paperwidth}\vfil}%
      \hfill
      \includegraphics[height=\headheight]{example-image}
    \end{beamercolorbox}%
  \fi%
}
\makeatother

\begin{document}

\section{bla}
\subsection{blub1}
\begin{frame}
content...
\end{frame}
\subsection{blub2}
\begin{frame}
content...
\end{frame}
\subsection{blub3}
\begin{frame}
content...
\end{frame}
\subsection{blub4}
\begin{frame}
content...
\end{frame}

\end{document}

enter image description here