From 77c479bd9e6da4c76ab0f5dfcd21bc70d7ee1acd 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 be809fc0..c45978eb 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