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 have a beamer presentation which should run automatically on its own during an exhibition. I already added \transduration{5}\transblindshorizontal to show the next slide automatically after 5 seconds, but I still need to figure out how to jump back to the very first slide after the very last slide has been shown. I can't find anything in the beamer manual.

PS: I'm not looking for anything like \againframe. The whole presentation should repeat itself over and over again for almost a whole day.

share|improve this question
Looking at the source, \transduration is a wrapper around the hyperref key pdfpageduration (which does not seem to be documented). I suspect what you need here is a PDF special. – Joseph Wright Sep 8 '11 at 20:20
I took a look at the PDF Reference. I don't see an in-file instruction for looping a PDF, only the one for page duration. So you probably need to set this in the viewer, as suggested. – Joseph Wright Sep 8 '11 at 20:29
I did something like that in the past, and the solution was quite ugly and dirty: I coded a bash script with my PDF viewer evince opening (in the background, &) a nth page with --page-index=<n>, sleep <m> seconds then going to next page, ad nauseam. I'm very curious on a possible TeX solution. – Paulo Cereda Sep 8 '11 at 20:33
up vote 8 down vote accepted

As one option, outside of LaTeX, you could set up Adobe Reader to do this. Under Preferences -> Full Screen, select the Loop after last page option:

enter image description here

share|improve this answer
Thanks! That would already do it in my case. However, having this setting as part of the PDF would be even better. Because of your answer I searched now for "loop after last page latex" and found a PDF special which does it: newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2007-09/… – Martin Scharrer Sep 8 '11 at 20:29

Because of Werner's answer I now found the comp.text.tex post https://groups.google.com/d/msg/comp.text.tex/kYnAVKbuq50/vZZFuBK1mlMJ which provides the following code. It uses PDF low-level commands to loop after the last page. This is basically the same as the viewer setting in Werner's answer, but part of the PDF. It works for me under Ubuntu Linux 11.04 with Adobe Reader 9.4.2. No idea if this is viewer dependent. At the very least the viewer must support some basic javascript.

Put the following in the preamble of the beamer document:

/AA <<
/WC <<
/S/JavaScript/JS (app.fs.loop=false;)
/AA <<
/O <<
/S/JavaScript/JS (app.fs.loop=true;)

An alterntive solution I figured by browsing other beamer questions is to use impressive to show the PDF file. Using the -w option the PDF is repeated and the transient time can be set using -a 5. However, this tool converts the PDF to an image which adds some small but ugly white frame at the lower and right site. Also I really prefer to stay with only PDF to keep things simple.

share|improve this answer

Your Answer


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

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