I am using the textpos package to position images on beamer slides. My problem is that I would like to have these images in some slides in the front of everything else (package option "overlay") and in others behind the lower bar in the beamer presentation.

Is it possible to change the package option in the document?

  • 2
    Can you give us a MWE to play with? – user36296 May 23 '16 at 11:36

This functionality should appear in textpos v1.8. That's not yet released, because I haven't yet had the time to tidy up the docs, but until it is released and included in distributions, you can have a try with v1.8b1. Any problems, do shout.

  • Thanks. Any idea when it will be available? Also, how can I install the beta without "disturbing" the TeX Live installation? – Rainer May 24 '16 at 9:06
  • I don't want to make any promises about when it'll be available (but this exchange encourages me to think about doing that soon). To use this, unpack the tarball (tar xzf textpos-1.8b1.tar.gz), run latex textpos.ins which will generate textpos.sty, then either put that file in the same directory as your source, or put it in some directory foo and set TEXINPUTS=foo: (note colon!) to tell LaTeX where to find it. (hmm: there must be a good answer about this process on this site somewhere, but if there is I can't find it!). – Norman Gray May 24 '16 at 13:45
  • ...and see this list of installation pointers – Norman Gray May 26 '16 at 12:31
  • @Rainer v1.8 is now released and at CTAN – Norman Gray Jun 9 '16 at 14:47

Instead of textpos, the TikZ-way of absolute positioning could be used via the convenience command \placetextbox as defined in the example below. It is straightforward to be used; the z-level of the typeset material is determined by the order of its usage:

enter image description here

\usepackage{mwe} % example images
\usepackage{lipsum} % example text

% absolute positioning of typeset material    
  % [#1]: box anchor: center (default) | 
  %                 south west | west | north west | north |
  %                 north east | east | south east | south | 
  %                 mid west | mid | mid east |
  %                 base west | base | base east 
  % #2: horizontal position (fraction of page width)
  % #3: vertical position (fraction of page height)
  % #4: content
  \tikz[remember picture,overlay,x=\paperwidth,y=\paperheight]{%
    \node[anchor=#1,inner sep=0pt]
    at ($(current page.south west)+(#2,#3)$) {#4};

  \placetextbox[north west]{0}{1}{\includegraphics[width=0.6\paperwidth]{example-image-a}}
  %normal text
  \placetextbox[south east]{1}{0}{\includegraphics[width=0.6\paperwidth]{example-image-b}}
  • 1
    Thanks - tikz is definitely an option and I will keep it in mind. Special thanks for the nice command \placetextbox which makes using tikz for this purpose much easier! – Rainer May 24 '16 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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