#' Function addLettrine
#'
#' Replaces the first character with a LaTeX-letttrine.
#' @param text Character element.
#' @keywords helper
#' @export
#' @examples
#' lettrine("Hello world")
addLettrine <- function (text)
sub(substr(gsub("(^[ \n]*|[ \n]*$)", "", text), 1, 1), paste0("\\\\lettrine{\\\\sffamily ",
substr(gsub("(^[ \n]*|[ \n]*$)", "", text), 1, 1), "}{}"),
gsub("(^[ \n]*|[ \n]*$)", "", text))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.