git.iko.soy/typeable/pandoc
on master help sign in
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>.

commitd410554f46202b1a47ece7d2fc9d111dcbfd32cc authorAndrew Dunning <adunning@users.noreply.github.com> dateTue 1 Jan 2019, 14:37 (8 years ago) parent792f18a
1 file changed+2−2
data/templates/default.latex+2−2
data/templates/default.latex+2−2
@@ -286,12 +286,12 @@ $for(header-includes)$
286286$header-includes$
287287$endfor$
288288$if(lang)$
289−\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
289+\ifnum 0\ifxetex 1\fi=0 % if pdftex or luatex
290290 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
291291$if(babel-newcommands)$
292292 $babel-newcommands$
293293$endif$
294−\else
294+\else % if xetex
295295 % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
296296 \usepackage{polyglossia}
297297 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}