Skip to content

Commit

Permalink
Better language defaults in LaTeX template.
Browse files Browse the repository at this point in the history
Thansk to Francois Gannaz.  The lang variable is now included, if set,
in documentclass options.  polyglossia is used instead of babel if
xetex.
  • Loading branch information
John MacFarlane committed Mar 5, 2012
1 parent 5aaa69e commit 49e113d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions default.latex
@@ -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
Expand Down Expand Up @@ -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$
Expand Down

0 comments on commit 49e113d

Please sign in to comment.