stop_floating: Stop figures from floating in LaTeX

View source: R/autolabel_latex_captions.R

stop_floatingR Documentation

Stop figures from floating in LaTeX

Description

When I knit R Markdown files to LaTeX, I end up putting \\FloatBarrier after every figure so they don't float past where I want them in the document. Using knitr's hooks, I can make this process happen automatically.

In order to do that, you first need to include the LaTeX package placeins (i.e., via header-includes: \\usepackage{placeins}).

Usage

stop_floating()

burchill/zplyr documentation built on Feb. 2, 2023, 11:01 a.m.