Code

Add a simple Makefile snippet to simplify usage.
[tokkeebeamer.git] / example.tex
1 %
2 % Copyright (C) 2013-2016 Sebastian 'tokkee' Harl <sh@tokkee.org>
3 % All rights reserved.
4 %
5 % Redistribution and use in source and binary forms, with or without
6 % modification, are permitted provided that the following conditions
7 % are met:
8 % 1. Redistributions of source code must retain the above copyright
9 %    notice, this list of conditions and the following disclaimer.
10 % 2. Redistributions in binary form must reproduce the above copyright
11 %    notice, this list of conditions and the following disclaimer in the
12 %    documentation and/or other materials provided with the distribution.
13 %
14 % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 % ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16 % TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 % PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
18 % CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 % EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 % PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 % OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 % WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 % OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 % ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 %
26 \documentclass{beamer}
27 \uselanguage{German}
29 \usetheme{tokkee}
31 \usepackage{fontspec,xunicode,polyglossia}
32 \setdefaultlanguage{english}
33 \setotherlanguage[spelling=new]{german}
35 \usepackage{xeCJK}
36 \renewcommand\CJKfamilydefault{\CJKsfdefault}
37 \setCJKsansfont{WenQuanYi Zen Hei}
39 \title[Beamer Template]{tokkee's \LaTeX{} Beamer Template}
40 \subtitle{\LaTeX{} beamer for tokkee.net}
41 \date{\today}
42 \institute{tokkee.net}
43 \author{Sebastian Harl\\ $<$sh@tokkee.org$>$}
44 \copyrightinfo{\copyright{} 2013-2016 Sebastian `tokkee' Harl, All rights reserved.}
46 \AtBeginSection[]
47 {
48         \begin{frame}
49                 \begin{center}
50                         \Large
51                         \titlebox{\secname}
52                 \end{center}
53         \end{frame}
54 }
56 \begin{document}
57 \frame[plain]{\titlepage}
59 \begin{frame}{Hello 世界}
60         This is an example slide deck using tokkee's beamer templates.\\[5mm]
62         {\Large Hello 世界}
63 \end{frame}
65 \section{Example}
67 \begin{frame}{Example}
68         Text:
69         \begin{itemize}
70                 \item Bullet point
71                         \begin{itemize}
72                                 \item sub item
73                         \end{itemize}
74                 \item More bullet points
75                 \item ...
76         \end{itemize}
77 \end{frame}
79 \selectlanguage{german}
80 \begin{frame}{Mehrere Sprachen}
81         Mehr Text (jetzt in Deutsch mit Umlauten und Sonderzeichen):
83         \begin{quote}
84                 Franz jagt im komplett verwahrlosten Taxi quer durch Bayern. Stanleys
85                 Expeditionszug quer durch Afrika wird von jedermann bewundert. Prall
86                 vom Whisky flog Quax den Jet zu Bruch. Vogel Quax zwickt Johnys Pferd
87                 Bim. Sylvia wagt quick den Jux bei Pforzheim.\\[2mm]
89                 Vogt Nyx: »Büß du ja zwölf Qirsch, Kämpe!«
90         \end{quote}
91 \end{frame}
93 \selectlanguage{english}
94 \begin{frame}{Back to English}
95         Note how the slide numbering switched between ``Slide'' and ``Folie''.
96 \end{frame}
98 \end{document}