Code

Switch to XeLaTeX and add some Chinese to the example.
authorSebastian Harl <sh@tokkee.org>
Tue, 31 May 2016 06:02:25 +0000 (08:02 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 4 Jun 2016 10:20:46 +0000 (12:20 +0200)
Makefile
example.tex

index 02753587e7c3825eeeffe44627997ecada3dbacf..12df52e620e3541274a544ef596db176964e6fd1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ all: example.pdf
 
 example.pdf: example.tex beamerthemetokkee.sty beamercolorthemetokkee.sty tokkee_logo.* Makefile
        # the default titlegraphic requires the presentation to be compiled twice
-       pdflatex example.tex
-       pdflatex example.tex
+       xelatex example.tex
+       xelatex example.tex
 
 clean:
        rm -f *.aux *.log *.nav *.out *.snm *.toc
index fef796d4f9b8848bba2bea4d3377c4c285c319d1..5797bcd79ab06ce1d5f63297ee58fb6312c04424 100644 (file)
@@ -1,7 +1,11 @@
 \documentclass{beamer}
 \usetheme{tokkee}
 
-\usepackage[utf8]{inputenc}
+\usepackage{fontspec,xunicode,polyglossia}
+
+\usepackage{xeCJK}
+\renewcommand\CJKfamilydefault{\CJKsfdefault}
+\setCJKsansfont{WenQuanYi Zen Hei}
 
 \title[Beamer-Vorlage]{Meine tolle Beamer-Vorlage}
 \subtitle{\LaTeX{} beamer für tokkee.net}
 \begin{document}
 \frame[plain]{\titlepage}
 
+\begin{frame}{Hallo 世界}
+       Dies ist ein Beispiel für tokkee's Beamer-Vorlage.\\[5mm]
+
+       {\Large Hallo 世界}
+\end{frame}
+
 \section{Beispiel}
 
 \begin{frame}{Beispiel}