aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2019-01-01 14:37:42 -0500
committerGitHub <noreply@github.com>2019-01-01 14:37:42 -0500
commitd410554f46202b1a47ece7d2fc9d111dcbfd32cc (patch)
treefa34d0374d8c5ee2d4a46dd428a40ecaab93dd1a /data/templates
parent792f18a7fa64773f7d8466740f8da5e434c2da4f (diff)
downloadpandoc-d410554f46202b1a47ece7d2fc9d111dcbfd32cc.tar.gz
LaTeX Template: Use Babel for LuaTeX
There are a number of bugs in Polyglossia under LuaLaTeX with common languages, e.g. <https://github.com/reutenauer/polyglossia/issues/182>.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.latex4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 6e8fda613..6856f2cbe 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -286,12 +286,12 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(lang)$
-\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+\ifnum 0\ifxetex 1\fi=0 % if pdftex or luatex
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
$if(babel-newcommands)$
$babel-newcommands$
$endif$
-\else
+\else % if xetex
% load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
\usepackage{polyglossia}
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}