part_localization.tex 1.82 KB
Newer Older
1 2 3 4
\part{Localization}
\makepart
\section{Change Language}
\begin{frame}[fragile,label=localization]
Andreas Beckmann's avatar
Andreas Beckmann committed
5 6 7 8 9
        \frametitle{Localization}
        \framesubtitle{How to change the date display to another language}
        The date will be adjusted automatically. You just have to use the {\tt babel}
        package with the desired language.
        \begin{block}{Date style -- Mixed}
Andreas Beckmann's avatar
Andreas Beckmann committed
10 11
                load package with DE and EN (default): \hfill \verb+\usepackage[ngerman,english]{babel}+\\
                choose German: \hfill \verb+\selectlanguage{ngerman}+\\
Andreas Beckmann's avatar
Andreas Beckmann committed
12 13 14 15 16 17 18 19 20 21
                choose English: \hfill \verb+\selectlanguage{english}+
        \end{block}
        \begin{block}{Date style -- German}
                01. Januar 2018 \hfill
                \verb+\selectlanguage{ngerman}+
        \end{block}
        \begin{block}{Date style -- English}
                January 01, 2018 \hfill
                \verb+\selectlanguage{english}+
        \end{block}
22 23 24 25 26

\end{frame}

\selectlanguage{ngerman}
\begin{frame}[fragile,,label=translation]
Andreas Beckmann's avatar
Andreas Beckmann committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
        \frametitle{Localization/Language}
        \framesubtitle{Change Helmholtz Banner Text}
        Using the \texttt{babel} package with the language option automatically sets
        the correct labels for the slide counter and Helmholtz banner.

        \begin{block}{Helmholtz Banner and Date in German}
        \begin{itemize}
          \item Take a look at the date and Helmholtz banner in the lower left
          corner and the slide name and frame number in the middle
          \item This slide should show the german version
          \item Enable options via \verb+\documentclass[english,ngerman]{beamer}+
          \item Enabled locally via \verb+\selectlanguage{ngerman}+ before
          \verb+\begin{frame}+
        \end{itemize}
        \end{block}
42 43 44 45
\end{frame}

\selectlanguage{english}
\author{Your Name}