Skip to content

Commit

Permalink
close #2077: default fig_crop = 'auto'
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed May 6, 2021
1 parent 429d29c commit 84ff469
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rmarkdown
Type: Package
Title: Dynamic Documents for R
Version: 2.7.13
Version: 2.7.14
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "[email protected]"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ rmarkdown 2.8

- The `fig_crop` option of PDF document formats (such as `pdf_document` and `beamer_presentation`) supports the value `"auto"` now, which means `fig_crop = TRUE` when figure cropping tools `pdfcrop` and `ghostscript` are available.

- The default value of the `fig_crop` option of PDF output formats has been changed from `TRUE` to `"auto"` (#2077).

- `rmarkdown::tufte_handout` has been deprecated and will be removed in the future from this package. It has been moved to the **tufte** package since **rmarkdown** 0.9.5 (released on 2016-02-22). Please use `tufte::tufte_handout` instead.


Expand Down
2 changes: 1 addition & 1 deletion R/beamer_presentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ beamer_presentation <- function(toc = FALSE,
incremental = FALSE,
fig_width = 10,
fig_height = 7,
fig_crop = TRUE,
fig_crop = 'auto',
fig_caption = TRUE,
dev = 'pdf',
df_print = "default",
Expand Down
2 changes: 1 addition & 1 deletion R/context_document.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ context_document <- function(toc = FALSE,
number_sections = FALSE,
fig_width = 6.5,
fig_height = 4.5,
fig_crop = TRUE,
fig_crop = 'auto',
fig_caption = TRUE,
dev = "pdf",
df_print = "default",
Expand Down
2 changes: 1 addition & 1 deletion R/pdf_document.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pdf_document <- function(toc = FALSE,
number_sections = FALSE,
fig_width = 6.5,
fig_height = 4.5,
fig_crop = TRUE,
fig_crop = 'auto',
fig_caption = TRUE,
dev = 'pdf',
df_print = "default",
Expand Down
2 changes: 1 addition & 1 deletion man/beamer_presentation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/context_document.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/pdf_document.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84ff469

Please sign in to comment.