Merge pull request #129 from mb21/polyglossia-lang
Change variable to polyglossia-lang.name and .options
This commit is contained in:
commit
f32abb9617
1 changed files with 4 additions and 2 deletions
|
@ -82,8 +82,10 @@ $endif$
|
|||
$if(lang)$
|
||||
\ifxetex
|
||||
\usepackage{polyglossia}
|
||||
\setmainlanguage[variant=$polyglossia-variant$]{$polyglossia-lang$}
|
||||
\setotherlanguages{$for(polyglossia-otherlangs)$$polyglossia-otherlangs$$sep$,$endfor$}
|
||||
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
|
||||
$for(polyglossia-otherlangs)$
|
||||
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
|
||||
$endfor$
|
||||
\else
|
||||
\usepackage[shorthands=off,$babel-lang$]{babel}
|
||||
\fi
|
||||
|
|
Loading…
Reference in a new issue