-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
No figures generated when outputting to .tex #582
Comments
You can set That said, this sounds like a bug of |
Fixed in the development version of rmarkdown: devtools::install_github('rstudio/rmarkdown') Thanks for the report! |
I tested the updated version of rmarkdown, and the figure is saved now, but it seems that the pdf device for some reason doesn't capture all elements of the plot. I have attached the PDF-output I get here. |
… the latex_document() format, so that clean_supporting = FALSE
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I would like to use
rmarkdown::latex_document()
to generate a .tex-file and figures, that can then be converted to PDF usinglatexmk
. I have a rather long table, which only renders correctly if I create my PDF usinglatexmk
, sincetinytex::latexmk()
's emulated version seems to run xelatex too few times. I found, the global option to make that possible,options(tinytex.latexmk.emulation = FALSE)
, and that correctly renders the PDF. However, since bookdown deletes all of the intermediate files generated bylatexmk
, the PDF often takes unnecessarily long to build. For this reason, I would like to just get the .tex-file and figures, and then automate PDF-generation via a Makefile. This is, however, not possible since the figures are not generated when usingrmarkdown::latex_document()
, even though it is a documented possibility.This small example illustrates the issue. When I use the Build command in RStudio, this runs rmarkdown::render_site(encoding = 'UTF-8') and produces the .tex-file, but the corresponding figure is not created.
Info about my system:
The text was updated successfully, but these errors were encountered: