From: Sebastian Harl Date: Tue, 31 May 2016 06:02:25 +0000 (+0200) Subject: Switch to XeLaTeX and add some Chinese to the example. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c530f9ba61a04d13fa394a059b6ae60730b61ac;p=tokkeebeamer.git Switch to XeLaTeX and add some Chinese to the example. --- diff --git a/Makefile b/Makefile index 0275358..12df52e 100644 --- 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 diff --git a/example.tex b/example.tex index fef796d..5797bcd 100644 --- a/example.tex +++ b/example.tex @@ -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} @@ -23,6 +27,12 @@ \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}