changeset 273:0548cbda2bc5

Use polyglossia with xelatex in beamer. Closes #85.
author John MacFarlane <jgm@berkeley.edu>
date Wed, 27 May 2015 10:33:02 -0700
parents 73dbc3f87a8c
children ec326018009e
files default.beamer
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/default.beamer	Wed May 27 10:28:25 2015 -0700
+++ b/default.beamer	Wed May 27 10:33:02 2015 -0700
@@ -117,7 +117,12 @@
 \VerbatimFootnotes % allows verbatim text in footnotes
 $endif$
 $if(lang)$
-\usepackage[$lang$]{babel}
+\ifxetex
+  \usepackage{polyglossia}
+  \setmainlanguage{$mainlang$}
+\else
+  \usepackage[shorthands=off,$lang$]{babel}
+\fi
 $endif$
 $for(header-includes)$
 $header-includes$