git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: load polyglossia after header-includes.

It needs to be loaded as late as possible. Closes #3898.

commit732005456e2b28150943a5a4e11bca6e1566f309 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 7 Sep 2017, 22:16 (9 years ago) parent5fc4980
2 files changed+15−15
data/templates/default.latex+9−9 test/writers-lang-and-dir.latex+6−6
data/templates/default.latex+9−9
@@ -192,6 +192,15 @@ $else$
192192\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
193193\fi
194194$endif$
195+
196+% set default figure placement to htbp
197+\makeatletter
198+\def\fps@figure{htbp}
199+\makeatother
200+
201+$for(header-includes)$
202+$header-includes$
203+$endfor$
195204$if(lang)$
196205\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
197206 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
@@ -225,15 +234,6 @@ $if(dir)$
225234\fi
226235$endif$
227236
228−% set default figure placement to htbp
229−\makeatletter
230−\def\fps@figure{htbp}
231−\makeatother
232−
233−$for(header-includes)$
234−$header-includes$
235−$endfor$
236−
237237$if(title)$
238238\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
239239$endif$
test/writers-lang-and-dir.latex+6−6
@@ -44,6 +44,12 @@
4444\let\oldsubparagraph\subparagraph
4545\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
4646\fi
47+
48+% set default figure placement to htbp
49+\makeatletter
50+\def\fps@figure{htbp}
51+\makeatother
52+
4753\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
4854 \usepackage[shorthands=off,ngerman,british,nswissgerman,spanish,french,main=english]{babel}
4955 \newcommand{\textgerman}[2][]{\foreignlanguage{ngerman}{#2}}
@@ -77,12 +83,6 @@
7783 \newenvironment{LTR}{\beginL}{\endL}
7884\fi
7985
80−% set default figure placement to htbp
81−\makeatletter
82−\def\fps@figure{htbp}
83−\makeatother
84−
85−
8686\date{}
8787
8888\begin{document}