Fix placement of float figures (tables, images, etc.) (#335)

- The added `float` package from PR #12 has accidentally
  been overwritten with changes from the default template.
- The option `float-placement-figure` is also restored.
- This should fix #315 and #316.
This commit is contained in:
Pascal Wagler 2023-04-17 14:21:01 +02:00 committed by GitHub
parent 032a84d21a
commit 68adfcb509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,10 @@ $if(graphics)$
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
% Make use of float-package and set default placement for figures to H.
% The option H means 'PUT IT HERE' (as opposed to the standard h option which means 'You may put it here if you like').
\usepackage{float}
\floatplacement{figure}{$if(float-placement-figure)$$float-placement-figure$$else$H$endif$}
\makeatother
$endif$
$if(svg)$