git.iko.soy/typeable/pandoc
on master help sign in
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.

commit49e113d0d16abc10e77a65c9b5423306208664be authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 4 Mar 2012, 18:42 (15 years ago) parent5aaa69e
1 file changed+7−2
default.latex+7−2
default.latex+7−2
@@ -1,4 +1,4 @@
1−\documentclass[$if(fontsize)$$fontsize$,$endif$]{$documentclass$}
1+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
22\usepackage{amssymb,amsmath}
33\usepackage{ifxetex,ifluatex}
44\ifxetex
@@ -93,7 +93,12 @@ $if(verbatim-in-note)$
9393\VerbatimFootnotes % allows verbatim text in footnotes
9494$endif$
9595$if(lang)$
96−\usepackage[$lang$]{babel}
96+\ifxetex
97+ \usepackage{polyglossia}
98+ \setmainlanguage{$lang$}
99+\else
100+ \usepackage[$lang$]{babel}
101+\fi
97102$endif$
98103$for(header-includes)$
99104$header-includes$