Skip to content

Commit

Permalink
Merge pull request #114 from mb21/language-variables
Browse files Browse the repository at this point in the history
LaTeX, ConTeXt: more specific language variables
  • Loading branch information
jgm committed Sep 25, 2015
2 parents 8ea4199 + aabd146 commit 04bdf5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions default.context
Expand Up @@ -2,8 +2,8 @@
\enableregime[utf-8]
\setupcolors[state=start]
\stopmode
$if(mainlang)$
\mainlanguage[$mainlang$]
$if(context-lang)$
\mainlanguage[$context-lang$]
$endif$

% Enable hyperlinks
Expand Down
8 changes: 4 additions & 4 deletions default.latex
@@ -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$
Expand Down Expand Up @@ -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)$
Expand Down

0 comments on commit 04bdf5a

Please sign in to comment.