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] \enableregime[utf-8]
\setupcolors[state=start] \setupcolors[state=start]
\stopmode \stopmode
$if(mainlang)$ $if(context-lang)$
\mainlanguage[$mainlang$] \mainlanguage[$context-lang$]
$endif$ $endif$
% Enable hyperlinks % 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)$ $if(fontfamily)$
\usepackage{$fontfamily$} \usepackage{$fontfamily$}
$else$ $else$
@ -74,10 +74,10 @@ $endif$
$if(lang)$ $if(lang)$
\ifxetex \ifxetex
\usepackage{polyglossia} \usepackage{polyglossia}
\setmainlanguage{$mainlang$} \setmainlanguage[variant=$polyglossia-variant$]{$polyglossia-lang$}
\setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$} \setotherlanguages{$for(polyglossia-otherlangs)$$polyglossia-otherlangs$$sep$,$endfor$}
\else \else
\usepackage[shorthands=off,$lang$]{babel} \usepackage[shorthands=off,$babel-lang$]{babel}
\fi \fi
$endif$ $endif$
$if(natbib)$ $if(natbib)$