-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prevent-figures-from-floating error #364
Comments
Did you correctly load the float package as in the example ? output:
pdf_document:
extra_dependencies: ["float"] It is common error message (https://fr.overleaf.com/learn/latex/Errors/LaTeX_Error%3A_Unknown_float_option_%60H%27) |
Just confirming that this issue exists, but only when With Changing it to This can be reproduced easily with the default .Rmd generated from "New R Markdown" by specifying: output:
pdf_document:
extra_dependencies: ["float"] and altering the first chunk to be: knitr::opts_chunk$set(echo = TRUE, fig.cap='foo', fig.pos = "!H", out.extra = "") Knitting will then produce this error. As @MichaelFolkes suggests, dropping down to Presumably it's due to an additional package loaded when figure captions are given which conflicts with the |
Thanks for the additional information @jmarshallnz. I tried to remove some of the packages to find a possible conflict, but without success. |
The example
https://bookdown.org/yihui/rmarkdown-cookbook/figure-placement.html#prevent-figures-from-floating
failed for me with an error: unknown float option 'H' (writing that from memory so wording might be incorrect).
However removing the "!" from fig.pos = !H allowed the .rmd to compile
The text was updated successfully, but these errors were encountered: