I want to create a LaTeX beamer presentation within multiple languages in the following sense: The sorce code should contain the different languages, but the language of the compiled result should depend on a specific choice of one language.
A solution has already been provided https://tex.stackexchange.com/a/31401/21166. However the \sectionlang command seems to have problems, when using beamer LaTeX with \input.
There is no error displayed, but the command are ignored during compilation.
Everyting works fine in the following code example (the package multilanguage is from the link above)
\documentclass{beamer}
\usepackage[ngerman,english]{babel}
\usepackage{ifthen}
\usepackage{multilanguage}
\setdoclang{en}{english}
% \setdoclang{de}{ngerman}
\begin{document}
\frame{
\tableofcontents
}
\sectionlang{en}{Section 1}
\sectionlang{de}{Abschnitt 1}
\frame{
\lang{de}{Folie 1}
\lang{en}{Slide 1}
}
%\mode<all>
%\input{./frame.tex}
%\mode*
%\againframe<1>{slide2}
\sectionlang{en}{Section 2}
\sectionlang{de}{Abschnitt 2}
\frame{
\lang{en}{Slide 3}
\lang{de}{Folie 3}
}
\end{document}
The frame.tex file contains
\frame<0>[label=slide2]
{\frametitle{\lang{de}{Folie 2}
\lang{en}{Slide 2}}
\lang{de}{Folie 2}
\lang{en}{Slide 2}
}
However, when the \input block in uncommented, the compiled ToC does not contain Section 2 anymore.
{}). – Claudio Fiandrino Oct 21 '12 at 12:21