mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-24 00:22:22 +00:00
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:
parent
032a84d21a
commit
68adfcb509
@ -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)$
|
||||
|
Loading…
Reference in New Issue
Block a user