rstudio / rmarkdown-cookbook

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
https://bookdown.org/yihui/rmarkdown-cookbook/
578 stars 224 forks source link

LaTeX advice on figure placement is incorrect #379

Closed ringprince closed 1 year ago

ringprince commented 2 years ago

According to the authorities on stackexchange the advice on how to make figures appear in place in the LaTeX export (as given in 6.5.2 Prevent figures from floating) needs to be corrected.

It should be changed from

knitr::opts_chunk$set(fig.pos = "!H", out.extra = "")

to

knitr::opts_chunk$set(fig.pos = "H", out.extra = "")

(Note the removed !).

cderv commented 1 year ago

Thank you