2

Possible Duplicates:
Absolute positioning in beamer
Put variable text at a fixed location on every beamer slide.
How can I position an image in an arbitrary position in beamer?

I would like to know how to add text to the corner of one of my beamer slides. I would like this text to be just above the infoline at the the bottom right of the slide. I've looked into trying to use the TikZ package, but this package seems unnecessarily complex for my purposes. Can anyone help? I am using XeLaTeX.

marked as duplicate by Werner, diabonas, Martin Scharrer Oct 28 '11 at 17:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

9

The textpos package could be an option; in the following example, the command \FrameText puts its argument ragged right, at the bottom right of the frame; change the settings according to your needs:

\documentclass{beamer}
\usepackage[absolute,overlay]{textpos}
\usetheme{Warsaw}
\useoutertheme{infolines}

\setbeamertemplate{navigation symbols}{}

\newcommand\FrameText[1]{%
  \begin{textblock*}{\paperwidth}(0pt,\textheight)
    \raggedright #1\hspace{.5em}
  \end{textblock*}}

\begin{document}

\begin{frame}{Test frame}
\FrameText{Some text}
\end{frame}

\begin{frame}{Test frame}
\FrameText{Some text for frame two}
\end{frame}

\end{document}
  • Thank you, this solution is great. Since this method uses absolute positioning, I have to adjust every slide if the length of this text changes. Is there a way to somehow right justify so that the text essentially starts against the right edge of the slide and then extends leftward? This would allow variable size text fields to all be right justified. – dr.bunsen Oct 28 '11 at 17:21
  • \begin{textblock*}{\textwidth}(0pt,\textheight)\raggedleft Some loooooong text \end{textblock*} -- note that this puts the text slightly further left than Gonzalo's initial answer. – doncherry Oct 28 '11 at 17:28
  • @dr.bunsen: see my updated answer. – Gonzalo Medina Oct 28 '11 at 17:33
  • @Gonzalo: Remember we try to avoid duplicate material. :-) tex.stackexchange.com/questions/14688/… – Martin Scharrer Oct 28 '11 at 17:34
  • @GonzaloMedina: You don't have to on my account. – Martin Scharrer Oct 28 '11 at 17:41

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