aboutsummaryrefslogtreecommitdiff
path: root/default.beamer
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-05-27 10:33:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-05-27 10:34:21 -0700
commitab55684bc15ef367d92fd916797d154199c57c85 (patch)
tree993c797513686202a7f4a6d4c9eedfe3ee425e04 /default.beamer
parent513c4388c33da622041376f5569ecb245a161615 (diff)
downloadpandoc-ab55684bc15ef367d92fd916797d154199c57c85.tar.gz
Use polyglossia with xelatex in beamer. Closes #85.
Diffstat (limited to 'default.beamer')
-rw-r--r--default.beamer7
1 files changed, 6 insertions, 1 deletions
diff --git a/default.beamer b/default.beamer
index 045f8c5db..faef00acc 100644
--- a/default.beamer
+++ b/default.beamer
@@ -117,7 +117,12 @@ $if(verbatim-in-note)$
\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$