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 0275358..12df52e 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 fef796d..5797bcd 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}