I am using the bookdown package to build my pdf. Here is my _output.yml:
## Here to create the pdf
bookdown::pdf_book:
extra_dependencies: ["float"]
toc: true
template: _assets/template.tex
mainmatter: true
includes:
in_header: _assets/preamble.tex
latex_engine: lualatex
keep_tex: yes
citation_package: natbib
When I use only fig.pos = "!H" or out.height="75%", the knitting works.
However, I'd like to use both fig.pos = "!H" and out.height="75%" (for instance {r fig, fig.cap="Caption", out.height="75%", fig.pos = "!H"}) but when I do so, I have:
! LaTeX Error: Unknown float option `H'.
I checked and the package float is correctly installed.