I have a beamer presentation of which I have two language versions (german and english), more languages are upcoming. I keep both versions in one source and select the one to typeset with the comment package. But this gives me only a presentation with one language.

Can I create a presentation with multiple languages that allows me to switch between them on the fly (either per presentation or per slide)?

1 Answer 1


Beamer supports an appendix with optional slides which can be jumped to using navigation items. You might have all slides of the default language first, then and end slide (maybe blank) and then as an appendix all slides of the second language. You could add navigation buttons from every slide to its translated slide and vice-versa, which allows you to jump between them easily. Also if you want to have the whole presentation in the second language simply start from the first slide of the appendix. This should also work in principle with more than two languages, but with increased complexity.

Note that you also can jump from one PDF to another one. So you could have two PDFs and add hyperlinks to the same page of the other PDF. See in the hyperref manual the section about \href[page=..]. The zref-abspos package provides you with the required absolute page number. You also need to choice the correct view for the link (fullscreen).

I made the following proof-of-concept file which works fine for me. I can jump to the translated version of the current slide, both in normal and fullscreen mode. This uses two PDFs.

% presentation-en.tex
% the main file

% Exchange for German version


% Needs: etc.
% \setlanguage{...}

\setbeamertemplate{navigation symbols}{\langnav}

    \href[page=\value{page}]{presentation-en}{{\tiny EN}}
    \href[page=\value{page}]{presentation-de}{{\tiny DE}}


   Diese Präsentation ist über Apfelbäume.


\begin{frame}{Apple trees}
    This presentation is about apple trees.


\begin{frame}{Äpfel sind lecker}
    Sehr sehr lecker!
   \only<2>{Man kann es gar nicht glauben!}


\begin{frame}{Apples are tasty!}
   So tasty!
   \only<2>{Can you believe it!}


% presentation-de.tex
  • That's nice, but it basically gives me both presentations concatenated (or in two PDFs). Can I get them on different "layers"? The problem I see with two files or two sections is that the source for the multiple versions of one frame get separated. I want to keep all versions of one slide together in the source. Commented Jul 27, 2011 at 13:14
  • No, different layers are not supported by PDF I think. You could maybe interleave the slides and make them jump over the following one by default. I would do it as shown in my updated answer, but maybe place the language environments inside the frame. You need to declare them [fragile] then I think, because comment uses verbatim mode. Commented Jul 27, 2011 at 13:24
  • PDF can do layers; tikz can create them (view the microtype docu with Adobe). Commented Jul 27, 2011 at 13:30
  • 1
    @MartinSchroder: Er ... the jury's out on that. I'd need to see the source of that documentation. Compiling the documentation from the package does not use TikZ/PGF, but then it doesn't produce any diagrams either. However, looking at the source of that document shows that it does have layers and these are implemented by a series of \pdfliteral commands. Search in microtype.dtx for the command \mt@layer. So I don't think that the PDF layers in the microtype documentation are done by TikZ. Commented Jul 27, 2011 at 14:06
  • 1
    @Martin (good grief this is confusing! Can one of you please change your name?) The \mt@layer command looks fairly simple and I'm sure it could easily be modified to be used with TikZ. However, I just searched and was having a hard time finding a PDF viewer that could handle these layers, and also it wasn't clear what the point of them was. Commented Jul 27, 2011 at 14:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .