R/latex_helper.R

Defines functions latex_hyperlink latex_color latex_bold

### Latex Helper



# Bold --------------------------------------------------------------------


latex_bold <- function(text, ...) {
  
  glue::glue("\\textbf{<text>}",
             .open = "<", .close = ">", ...)
}


# Color -------------------------------------------------------------------


latex_color <- function(text, color = "red", ...) {
  
  glue::glue("\\textcolor{<color>}{<text>}",
             .open = "<", .close = ">", ...)
}


# Hyperlink ---------------------------------------------------------------


latex_hyperlink <- function(text, url, color = "blue") {
  
  glue::glue("\\href{<url>}{\\textcolor{<color>}{<text>}}",
             .open = "<", .close = ">")
  
}
Lightbridge-KS/CV documentation built on Dec. 17, 2021, 12:05 a.m.