[Tex/LaTex] Multilingual beamer presentations from a single souce


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)?

Best Answer

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
Related Question