Skip to content

Commit

Permalink
Remove chapter image function
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenuial committed Jul 20, 2024
1 parent 004e605 commit 9000c77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
21 changes: 0 additions & 21 deletions R/knit_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -343,24 +343,3 @@ latex_percent_size <- function(x, which = c("width", "height"),
tikz <- function() {
gvz_file("rstudio/templates/project/resources/tex/tikz.tex")
}

#' Set chapter image in LaTeX book
#'
#' @param path The path to the image to use
#'
#' @export
#' @examplesIf interactive()
#' # Not run: use in Rmd book project
#' chapter_image("path/to/chapter/image.png")
#'
chapter_image <- function(path) {
if (!knitr::is_latex_output()) {
return()
}

knitr::raw_latex(paste0(
r"(\chapterimage{)",
path,
"}"
))
}
7 changes: 0 additions & 7 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ reference:
- eng_legal_list
- eng_wrap_figure

- title: Format helper functions
description: |
Functions that format specific items.
contents:
- gvz_cosmo_solar_system_object
- chapter_image

- title: Plot themes
description: |
These functions help format plots for final documents.
Expand Down

0 comments on commit 9000c77

Please sign in to comment.