git.iko.soy/typeable/pandoc
on master help sign in
LaTeX Template: Use Babel for LuaTeX
d410554Andrew Dunning
data/templates/default.latex+2−2
@@ -286,12 +286,12 @@ $for(header-includes)$
286$header-includes$
286$header-includes$
287$endfor$
287$endfor$
288$if(lang)$
288$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
290 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
290 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
291$if(babel-newcommands)$
291$if(babel-newcommands)$
292 $babel-newcommands$
292 $babel-newcommands$
293$endif$
293$endif$
294−\else
294+\else % if xetex
295 % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
295 % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
296 \usepackage{polyglossia}
296 \usepackage{polyglossia}
297 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
297 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}