rendering/cw_glue_head.R

#' #' glue together parameters and cwpuzzle template
#' #'
#' #' @param cw a crossword object
#' #' @param geometry_options comma separated options string directly passed
#' #'                         through to LaTeX geometry package
#' #' @export
#' cw_glue_head <- function(cw, geometry_options = "a4paper, margin=2cm"){
#'   paste0(
#' "\\documentclass{article}
#'
#' \\usepackage{xcolor}
#' \\usepackage[",geometry_options,"]{geometry}
#' \\usepackage[unboxed]{cwpuzzle}
#'
#' \\begin{document}
#' ")
#' }
petermeissner/crossword.r documentation built on May 25, 2019, 11:35 p.m.