TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making a presentation using beamer, and I want to be able to position a certain image the way I want in a frame. I am not sure how to do that. Is there some way you can specify coordinates in the frame and then set an image there?

Is there a better way to place images in various places with the beamer class?

share|improve this question
Possible duplicate of Absolute positioning in beamer and LaTeX, but I wouldn't mind more explicit answers for it. – Martin Scharrer Apr 21 '11 at 19:24

When I used such an application, I used either TikZ (my favorite), or, before knowing of TikZ, I used the textpos package.

I will briefly discuss both solutions.


I suggest to use a TikZ \node with overlay option.

NOTE: there are two ways to use TikZ here: one with RELATIVE positioning (the approach discussed below) and one with ABSOLUTE positioning (please refer to the TikZ manual for such a task).

The overlay means that it has no bounding box, i.e. it won't affect the existing layout. I wrote a short-cut macro around to simplify the generation of such a node. To use it, place the following code into you beamer document:

  every overlay node/.style={
    draw=black,fill=white,rounded corners,anchor=north west,
% Usage:
% \tikzoverlay at (-1cm,-5cm) {content};
% or
% \tikzoverlay[text width=5cm] at (-1cm,-5cm) {content};
   \tikz[baseline,overlay]\node[every overlay node]

So, the basic idea is a \node[overlay] which aligns well within the usual text (the baseline option). You will need to use the at (<x>,<y>) positioning to actually place it. The placement will be relative to the embedding text. Keep in mind that you may hide text with this thing (which is the purpose of the every overlay node style as you guessed correctly). Note that text later in the document is always typeset after earlier text passages. In other words: make sure the \tikzoverlay command comes after things you want to hide.

An example could be

Here is the text which will probably be hidden by the overlay.
\tikzoverlay[text width=6cm] at (9.3cm,5cm) {
  \item \emph{Derive subclass} from \texttt{GetOptWrapper}
  \item one \emph{variable definition} per option
  \item \emph{Default Values}

You can safely combine this with beamer's \only<2> methods.


The second promised approach uses the textpos package. Since I think that this approach is weaker and less configurable than the one above, I simply copy-paste from my personal notes:

According to my old notes, the general usage is:

\setlength{\TPHorizModule}{1cm} % horizontal unit
\setlength{\TPVertModule}{1cm} % vertical unit

Example with the package configuration above:

A notice that was put in the page using coordinates
share|improve this answer
If you use textpos with beamer, you likely want the overlay option, as in \usepackage[absolute,overlay]{textpos}. – Jed Mar 2 '12 at 20:59

The answers that recommend Tikz are over-complicated. You can achieve arbitrary positioning without defining new variables or calling extra packages (other than Tikz).

For example, to put a figure in the top right corner, you can use:

\begin{tikzpicture}[remember picture,overlay]
    \node[xshift=-2cm,yshift=-2cm] at (current page.north east){%

The key is in the combination of current page.north east, xshift and yshift. As such, you can use any other positions like current page.north east, current page, south west, current page, center, etc. Then, just achieve desire placement using xshift and yshift.

For more information, see Section 17.13.2 of the Tikz manual (it's just one page long).

share|improve this answer

The tikz solution seems only add such things on current frame. Is it possible to display it on every slide? Just like a logo.

See below example code:

\setbeamertemplate{footline}[frame number]

  every overlay node/.style={
    draw=black,anchor=north west,
   \tikz[baseline,overlay]\node[every overlay node]


\begin{frame}[t]{Hello world}

\tikzoverlay[text width=2cm] at (8cm,-1cm) {
    \tikz node (label) at (0,0)[]{

\item item 1 Test line with long text to cross the image 
\item item 2
\item item 3



Output is:

enter image description here

share|improve this answer

The following code snipped uses remember picture for positioning.


\tikz[overlay,remember picture]
\node[anchor=north east] at ($(current page.north east)+(0,-1)$) {
  Top-right float content.

Regular content.

It also uses the calc tikz library to specify an offset from the top left corner for positioning of the node, relative to the upper right corner. This will likely be a popular use case for positioning logos. X is right, and Y is up, so you will want negative offsets.

share|improve this answer
The \tikz macro and the tikzpicture environment are strictly equivalent... – Paul Gaborit Jun 26 '15 at 14:54
Thanks, I wasn't aware of that. In my case, I needed to nest another (sourced) tikzpicture, and I didn't want to stack a tikzpicture inside a tikzpicture, but apparently that would have worked reasonably well (I believe I have some errors because of that...) Also, I didn't get newlines working (as usual with tikz nodes) without specifying a node width. – Anony-Mousse Jun 26 '15 at 14:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.