Skip to content

Commit

Permalink
fix(cover image): allow the spp_image path to properly function and a…
Browse files Browse the repository at this point in the history
…djust the size of spp img when very large #62 (#104)
  • Loading branch information
Schiano-NOAA authored Dec 12, 2024
1 parent 2b9a914 commit c134ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions R/create_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,10 @@ create_template <- function(
if (add_image) {
# extract image name
new_img <- sapply(strsplit(spp_image, "/"), utils::tail, 1)

yaml <- paste0(
yaml,
# image as pulled in from above
"cover: ", new_img, "\n"
"cover: support_files/", new_img, "\n"
)
} else if (spp_image == "") {
yaml <- paste0(
Expand Down
2 changes: 1 addition & 1 deletion R/utils_tex.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ create_titlepage_tex <- function(office = "",
# Add alt text to cover page image
line_before <- grep("\\$if\\(cover)\\$", lines)
cp_alt <- paste(
"\\pdftooltip{\\includegraphics{$cover$}}{",
"\\pdftooltip{\\includegraphics[width=6in]{$cover$}}{",
"An illustration of ", species,
"}",
sep = ""
Expand Down

0 comments on commit c134ae4

Please sign in to comment.