@@ -1,5 +1,5 @@
11% Options for packages loaded elsewhere
2−\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
2+\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
33\PassOptionsToPackage{hyphens}{url}
44$if(colorlinks)$
55\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
@@ -100,7 +100,7 @@ $endif$
100100 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
101101 \usepackage[utf8]{inputenc}
102102 \usepackage{textcomp} % provides euro and other symbols
103−\else % if luatex or xelatex
103+\else % if luatex or xetex
104104$if(mathspec)$
105105 \ifxetex
106106 \usepackage{mathspec}
@@ -267,6 +267,10 @@ $if(graphics)$
267267% margins by default, and it is still possible to overwrite the defaults
268268% using explicit options in \includegraphics[width, height, ...]{}
269269\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
270+% Set default figure placement to htbp
271+\makeatletter
272+\def\fps@figure{htbp}
273+\makeatother
270274$endif$
271275$if(links-as-notes)$
272276% Make links footnotes instead of hotlinks:
@@ -304,11 +308,6 @@ $if(pagestyle)$
304308\pagestyle{$pagestyle$}
305309$endif$
306310
307−% Set default figure placement to htbp
308−\makeatletter
309−\def\fps@figure{htbp}
310−\makeatother
311−
312311$for(header-includes)$
313312$header-includes$
314313$endfor$