git.iko.soy/typeable/pandoc
on master help sign in
LaTeX, ConTeXt: more specific language variables
commitaabd14676b7c006a93f55886fbe105a76ddbc8fd authormb21 <mb21@users.noreply.github.com> dateThu 20 Aug 2015, 17:27 (11 years ago) parent8ea4199
2 files changed+6−6
default.context+2−2 default.latex+4−4
default.context+2−2
@@ -2,8 +2,8 @@
22 \enableregime[utf-8]
33 \setupcolors[state=start]
44\stopmode
5−$if(mainlang)$
6−\mainlanguage[$mainlang$]
5+$if(context-lang)$
6+\mainlanguage[$context-lang$]
77$endif$
88
99% Enable hyperlinks
default.latex+4−4
@@ -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)$