Merge pull request #114 from mb21/language-variables

LaTeX, ConTeXt: more specific language variables
This commit is contained in:
John MacFarlane 2015-09-25 10:34:16 -07:00
commit 04bdf5a9b7
2 changed files with 6 additions and 6 deletions

View file

@ -2,8 +2,8 @@
\enableregime[utf-8]
\setupcolors[state=start]
\stopmode
$if(mainlang)$
\mainlanguage[$mainlang$]
$if(context-lang)$
\mainlanguage[$context-lang$]
$endif$
% Enable hyperlinks

View file

@ -1,4 +1,4 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
$if(fontfamily)$
\usepackage{$fontfamily$}
$else$
@ -74,10 +74,10 @@ $endif$
$if(lang)$
\ifxetex
\usepackage{polyglossia}
\setmainlanguage{$mainlang$}
\setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$}
\setmainlanguage[variant=$polyglossia-variant$]{$polyglossia-lang$}
\setotherlanguages{$for(polyglossia-otherlangs)$$polyglossia-otherlangs$$sep$,$endfor$}
\else
\usepackage[shorthands=off,$lang$]{babel}
\usepackage[shorthands=off,$babel-lang$]{babel}
\fi
$endif$
$if(natbib)$