From 7ca21f03f7fe53100c1dcd521acf9cb91ea9ee32 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 14 Jun 2019 13:51:00 +0100 Subject: [PATCH] Redefines figure to always place it where it falls in context --- pandoc/templates/fellowship.latex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandoc/templates/fellowship.latex b/pandoc/templates/fellowship.latex index 0e20d540..2c62309c 100644 --- a/pandoc/templates/fellowship.latex +++ b/pandoc/templates/fellowship.latex @@ -63,6 +63,15 @@ $endif$ \renewcommand{\@seccntformat}[1]{} \makeatother +\usepackage{float} +\let\origfigure\figure +\let\endorigfigure\endfigure +\renewenvironment{figure}[1][2] { + \expandafter\origfigure\expandafter[H] +} { + \endorigfigure +} + $if(mathfont)$ $if(mathspec)$ \ifxetex