Skip to content

Commit

Permalink
Updated moderncv output format to support other themes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Feb 8, 2019
1 parent 13dec94 commit 193a155
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/formats.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ awesomecv <- function(...) {

#' @rdname cv_formats
#' @export
moderncv <- function(...) {
moderncv <- function(..., theme = c("casual", "classic", "oldstyle", "banking")) {
theme <- match.arg(theme)
template <- system.file("rmarkdown", "templates", "moderncv",
"resources", "moderncv.tex",
package = "vitae"
)
copy_supporting_files("moderncv")
cv_document(..., template = template, citation_package = "biblatex", latex_engine = "xelatex")
cv_document(..., pandoc_vars = list(theme = theme),
template = template, citation_package = "biblatex", latex_engine = "xelatex")
}

0 comments on commit 193a155

Please sign in to comment.