git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #114 from mb21/language-variables

LaTeX, ConTeXt: more specific language variables

commit04bdf5a9b789ed4998527a57d52714ccadfedc21 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 25 Sep 2015, 10:34 (11 years ago) parent8ea4199aabd146
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)$