aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Björk <stefan.bjork@gmail.com>2014-09-24 14:31:39 +0200
committerStefan Björk <stefan.bjork@gmail.com>2014-09-24 14:31:39 +0200
commita4b477f6e626f799cb21966d7acd4117f39832c8 (patch)
treec1f56f3fa0ed39f2f216eeaf4debec784e63bded
parenta63c58b23ecb159ed463beb084d6f36b1bd9f560 (diff)
downloadpandoc-a4b477f6e626f799cb21966d7acd4117f39832c8.tar.gz
Moved polyglossia/babel definitions to before biblatex; otherwise biblatex fails with xetex.
-rw-r--r--default.latex17
1 files changed, 9 insertions, 8 deletions
diff --git a/default.latex b/default.latex
index f03aed105..4dc4bddbe 100644
--- a/default.latex
+++ b/default.latex
@@ -49,6 +49,15 @@ $endif$
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
+$if(lang)$
+\ifxetex
+ \usepackage{polyglossia}
+ \setdefaultlanguage{$lang$}
+ \setmainlanguage{$mainlang$}
+\else
+ \usepackage[$lang$]{babel}
+\fi
+$endif$
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
@@ -123,14 +132,6 @@ $endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
-$if(lang)$
-\ifxetex
- \usepackage{polyglossia}
- \setmainlanguage{$mainlang$}
-\else
- \usepackage[$lang$]{babel}
-\fi
-$endif$
$if(title)$
\title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$}