git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #114 from mb21/language-variables
04bdf5aJohn MacFarlane
default.context+2−2
@@ -2,8 +2,8 @@
2 \enableregime[utf-8]
2 \enableregime[utf-8]
3 \setupcolors[state=start]
3 \setupcolors[state=start]
4\stopmode
4\stopmode
5−$if(mainlang)$
5+$if(context-lang)$
6−\mainlanguage[$mainlang$]
6+\mainlanguage[$context-lang$]
7$endif$
7$endif$
8
8
9% Enable hyperlinks
9% 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$}
2$if(fontfamily)$
2$if(fontfamily)$
3\usepackage{$fontfamily$}
3\usepackage{$fontfamily$}
4$else$
4$else$
@@ -74,10 +74,10 @@ $endif$
74$if(lang)$
74$if(lang)$
75\ifxetex
75\ifxetex
76 \usepackage{polyglossia}
76 \usepackage{polyglossia}
77− \setmainlanguage{$mainlang$}
77+ \setmainlanguage[variant=$polyglossia-variant$]{$polyglossia-lang$}
78− \setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$}
78+ \setotherlanguages{$for(polyglossia-otherlangs)$$polyglossia-otherlangs$$sep$,$endfor$}
79\else
79\else
80− \usepackage[shorthands=off,$lang$]{babel}
80+ \usepackage[shorthands=off,$babel-lang$]{babel}
81\fi
81\fi
82$endif$
82$endif$
83$if(natbib)$
83$if(natbib)$