@@ -1,4 +1,4 @@
1−\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
1+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
22$if(fontfamily)$
33\usepackage{$fontfamily$}
44$else$
@@ -74,10 +74,10 @@ $endif$
7474$if(lang)$
7575\ifxetex
7676 \usepackage{polyglossia}
77− \setmainlanguage{$mainlang$}
78− \setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$}
77+ \setmainlanguage[variant=$polyglossia-variant$]{$polyglossia-lang$}
78+ \setotherlanguages{$for(polyglossia-otherlangs)$$polyglossia-otherlangs$$sep$,$endfor$}
7979\else
80− \usepackage[shorthands=off,$lang$]{babel}
80+ \usepackage[shorthands=off,$babel-lang$]{babel}
8181\fi
8282$endif$
8383$if(natbib)$