-
-
Notifications
You must be signed in to change notification settings - Fork 979
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
Setting fig.align in R chunks makes plot disappear in Beamer #148
Comments
Yes I am. For the record, you may keep an eye on yihui/knitr#626. I hope to get it done in knitr 1.7. Before that happens, the easiest solution for you is to turn on figure captions, e.g.
Then figures are centered by default since they are put in the |
…'t use fig.align - use fig.caption instead: rstudio/rmarkdown#148); 2) added knitr setting to use Cairo PDF device (for potential use in the future): yihui/knitr#436; 3) added absolute path for generated figures via fig.path.
FYI: This has been fixed in the development version of knitr, which I plan to release to CRAN in the next few days. |
fig.align='center' seem still not work in the current version of knitr for pdf_document output. |
@johnsonzhj You may also need the development version of rmarkdown here. |
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. |
If the option
fig.align
is set to anything other thandefault
, the figure won't show up in the generated beamer slides.Minimal example:
The text was updated successfully, but these errors were encountered: