or
yannis imported from SE
beamer
I'm using the AnnArbor template in beamer as follows:

    \mode<presentation>
    { 
    \usetheme{AnnArbor}
    \usecolortheme[named=kugreen]{structure}
    \useinnertheme{circles}
    \usefonttheme[onlymath]{serif}
    \setbeamercovered{transparent}
    \setbeamertemplate{blocks}[rounded][shadow=true]
    }

And I would like to add a piece of information to some slides, which should be displayed on the top horizontal zone, right edge, as the arrow in the following screen capture shows:

[![enter image description here][1]][1]

This information should belong to each frame (it is not a global logo defined once and for all in the preamble), in fact I want to add bibliographical references for the contents of the frame, so it may be different for every frame or void.

What do I need to redefine to obtain this?


  [1]: https://i.stack.imgur.com/BQXeS.png
Top Answer
samcarter
Normally the subsection name is shown at the top right of this theme. In case you don't need subsections to structure your document, you could use them to add the desired information or you could modify the theme to insert a new macro which you can alter for each frame.

```
\documentclass{beamer}

\mode<presentation>
{ 
\usetheme{AnnArbor}
\usecolortheme[named=green]{structure}
\useinnertheme{circles}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{blocks}[rounded][shadow=true]
}

\newcommand{\yannis}{}

\setbeamertemplate{headline}{%
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{section in head/foot}%
    \usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{subsection in head/foot}%
    \usebeamerfont{subsection in head/foot}\hspace*{2ex}\yannis\hspace*{2ex}
  \end{beamercolorbox}}%
  \vskip0pt%
}

\begin{document}


{
\renewcommand{\yannis}{Mr. Duck, 2019}
\begin{frame}
\frametitle{title}
content...
\end{frame}
}

\begin{frame}
\frametitle{title}
content...
\end{frame}

{
\renewcommand{\yannis}{Clever Marmot, 2012}
\begin{frame}
\frametitle{title}
content...
\end{frame}
}

\end{document}
```

![Screen Shot 2020-02-03 at 11.09.23.png](/image?hash=2906c3ba99bb7354ae1bf8ee7e45335629a543c222201891264ac793d99d584b)

(I would prefer if this answer would not be copied to tex.se)
Adding dynamic information to the right upper edge of beamer template
samcarter replying to Anonymous
There is this user who plagiarises, takes other peoples images without attribution, makes bad edits and dozens of other things I don't want to rant about, because this would bring all the bad stuff here, while this site is for asking and answering TeX questions in a friendly environment.
Anonymous
I don't want to be indiscreet but what do you mean? What happened to you? I'm not affiliated to tex.se but I love TeX a lot so I would like to know if some people are doing things wrong.
samcarter replying to Anonymous
@Anonymus You're welcome! I no longer want to contribute to tex.se because I don't like how one user there is allowd to harm others. 
Anonymous
@samcarter This is exactly what I needed, thanks! But why don't you want this to appear in tex.se?