-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Figure cropped without warning #1365
Comments
That is a decision made in rmarkdown. If you do not want this feature, you can turn it off by output:
pdf_document:
fig_crop: false That said... Seriously? Are there still journals that require EPS figures?... 😂 |
ProblemI found this option of rmd. This option is mentioned in the rmarkdown reference guide and in http://rmarkdown.rstudio.com/pdf_document_format.html#figure_options. However, neither of these two documents warn about the impairment to EPS figures. The problem is that, when user use For myself, I spent rather long time to find out why EPS figure is in low quality. Finally I found with The EPS vs PDFWhen manager the figures under git. If you store figures in PDF, every time you render the rmd file, git will mark the figures as modified even there is no change in the figures. If the figures are stored in EPS format, there is no problem. git can read the figures and know the figures are not changed. Perhaps this issue should be reported in rmarkdown repo? |
I'm very sorry for wasting your time. I think we should definitely mention the problem with cropping eps figures in the rmarkdown documentation. It is indeed tricky to deal with binary files in git. Usually I try to avoid committing binary files into git, such as images generated from R (I ignore them in |
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. |
When render Rmd to pdf, the figures are cropped by default. The EPS figures are in bad quality (no longer vector graphics?) after cropped by ImageMagick and there is no warning about this.
The text was updated successfully, but these errors were encountered: