I am using the Beamer theme Focus. I'd like to insert a logo in the top-right of every slide (i.e. frame) that contains a frame title (ie. not a plain slide). I have tried a lot of hacks and frustrated at the inflexibility of hand-tuning co-ordinates for placing my image at the desired location. (All that I want is to place the image at the top-right).

For now, we may assume that I'd like to insert a generic cat picture from the www. I'd relly appreciate a solution for this problem.

Here's an MWE for starters


\title{Focus: \\ A Minimalist Beamer Theme}
\author{Author 1\texorpdfstring{\\}{,} Author 2}
\institute{Institute Name \\ Institute Address}
\date{dd mm yyyy}


    % Use starred version (e.g. \section*{Section name})
    % to disable (sub)section page.
    \section{Section 1}
    \subsection{Subsection 1.1}
    \begin{frame}{Simple frame}
        This is a simple frame.

    \begin{frame}[plain]{Plain frame}
        This is a frame with plain style and it is numbered.

    \subsection{Subsection 1.2}
        This frame has an empty title and is aligned to top.

    \begin{frame}[noframenumbering]{No frame numbering}
        This frame is not numbered and is citing reference \cite{knuth74}.

    \begin{frame}{Typesetting and Math}
        The packages \texttt{inputenc} and \texttt{FiraSans}\footnote{\url{https://fonts.google.com/specimen/Fira+Sans}}\textsuperscript{,}\footnote{\url{http://mozilla.github.io/Fira/}} are used to properly set the main fonts.
        This theme provides styling commands to typeset \emph{emphasized}, \alert{alerted}, \textbf{bold}, \textcolor{example}{example text}, \dots
        \texttt{FiraSans} also provides support for mathematical symbols:
            e^{i\pi} + 1 = 0.
  • Would you be happy with a solution that requires a second compilation run?
    – TobiBS
    Commented Jul 15, 2020 at 22:50
  • @TobiBS Yes, As long as latexmk works (which automatically runs however many times as needed till a non-changing PDF is obtained), I am cool. Commented Jul 15, 2020 at 22:51

1 Answer 1


So the task is to have a logo on every frame where the frametitle is actually typeset. Let's have a look into the theme what it does and where it defines it.

Normally frametitles are defined in the outer theme, therefore let's have a look into beamerouterthemefocus.sty, which defines two named templates for the frametitle:

  1. \defbeamertemplate*{frametitle}{focus}{%
  2. \defbeamertemplate*{frametitle}{plain}{%

Later in the same file, we can see that focus is used for every frame that is not the first frame or where plain was set:

    \setbeamertemplate{background canvas}[focus]%


    \setbeamertemplate{background canvas}[focusplain]%

So just setting the frametitle through \setbeamertemplate or using \addtobeamertemplate will do no good, as on the next frame, frametitle will be redefined to focus. But \defbeamertemplate*{frametitle}{focus} won't work either. So how can we overcome this?

Well there is a trick explained in How to redefine a beamer template which basically is to let beamer think, focus is not yet defined for frametitle.

The rest is easy, we can make use of beamer with it`s feature to reference the current page and the only drawback is that you have to compile multiple times. Our final result of the lines to add is hence:

\expandafter\let\csname beamer@@tmpop@frametitle@focus\endcsname\relax
    % If not title page.
    \begin{tikzpicture}[remember picture,overlay]
        \node[anchor=north east] at (current page.north east){\includegraphics[width=1.6cm]{example-image-16x9}};

Just add this before the \begin{document} and you will get:

enter image description here

  • focus is really odd in its resetting of the templates at every frame... I had a look on how to avoid all that messed \BeforeBeginEnvironment but my beamer skills are not good enough Commented Jul 17, 2020 at 9:04
  • 1
    @capitalaslash well there are multiple ways to achieve certain behaviors, besides the one used by focus, you can use pagestyles, as in tex.stackexchange.com/questions/317938/… but this has caveats, e.g. when you try to use it for the frametitle: tex.stackexchange.com/questions/552234/… So it seems the developers had reasons to use this approach.
    – TobiBS
    Commented Jul 17, 2020 at 9:22
  • I understand that is required for the dynamic footer that changes in every page, but the frametitle is static and behaviorally identical to the standard theme. This approach defies all standard beamer tools such as \addtobeamertemplate and \defbeamertemplate and in my opinion it makes the theme unusable. Commented Jul 17, 2020 at 9:30
  • @TobiBS thanks a lot for the nice answer!. Accepted, upvoted and bounty awarded. Commented Jul 24, 2020 at 11:09
  • @Krishna thanks for your appreciation!
    – TobiBS
    Commented Jul 24, 2020 at 11:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .