git.iko.soy/typeable/pandoc
on master help sign in
Better language defaults in LaTeX template.
49e113dJohn MacFarlane
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$}
2\usepackage{amssymb,amsmath}
2\usepackage{amssymb,amsmath}
3\usepackage{ifxetex,ifluatex}
3\usepackage{ifxetex,ifluatex}
4\ifxetex
4\ifxetex
@@ -93,7 +93,12 @@ $if(verbatim-in-note)$
93\VerbatimFootnotes % allows verbatim text in footnotes
93\VerbatimFootnotes % allows verbatim text in footnotes
94$endif$
94$endif$
95$if(lang)$
95$if(lang)$
96+\ifxetex
97+ \usepackage{polyglossia}
98+ \setmainlanguage{$lang$}
99+\else
96−\usepackage[$lang$]{babel}
100+ \usepackage[$lang$]{babel}
101+\fi
97$endif$
102$endif$
98$for(header-includes)$
103$for(header-includes)$
99$header-includes$
104$header-includes$