Skip to content

Commit

Permalink
Re-instate small_margin hook
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 15, 2017
1 parent f038644 commit 14ed5cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _common.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ knitr::opts_chunk$set(
fig.show = "hold"
)

knitr::knit_hooks$set(
small_mar = function(before, options, envir) {
if (before) {
par(mar = c(4.1, 4.1, 0.5, 0.5))
}
}
)

# Previously in oldbookdown -----------------------------------------------

doc_type <- function() knitr::opts_knit$get('rmarkdown.pandoc.to')
Expand Down

0 comments on commit 14ed5cf

Please sign in to comment.