Better language defaults in LaTeX template.

Thansk to Francois Gannaz.  The lang variable is now included, if set,
in documentclass options.  polyglossia is used instead of babel if
xetex.
This commit is contained in:
John MacFarlane 2012-03-04 18:42:42 -08:00
parent 5aaa69eda5
commit 49e113d0d1

View file

@ -1,4 +1,4 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$]{$documentclass$}
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifxetex
@ -93,7 +93,12 @@ $if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
\usepackage[$lang$]{babel}
\ifxetex
\usepackage{polyglossia}
\setmainlanguage{$lang$}
\else
\usepackage[$lang$]{babel}
\fi
$endif$
$for(header-includes)$
$header-includes$