diff options
| author | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-04 18:42:42 -0800 |
|---|---|---|
| committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-04 18:42:42 -0800 |
| commit | 49e113d0d16abc10e77a65c9b5423306208664be (patch) | |
| tree | 5f64e1b35c83bd08dac762eb22ceaa117acef282 | |
| parent | 5aaa69eda58dc84a16dc818c02c3e261fdb11975 (diff) | |
| download | pandoc-49e113d0d16abc10e77a65c9b5423306208664be.tar.gz | |
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.
| -rw-r--r-- | default.latex | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/default.latex b/default.latex index d244ef7b9..f4df3daef 100644 --- a/default.latex +++ b/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 @@ -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$ |
