as.latex: Coerces statquote objects to strings suitable for LaTeX
Description
This function coerces statquote objects to strings suitable for rendering in LaTeX.
Quotes and (potential LaTeX) sources are placed within suitable "epigraph" output
format via the sprintf function.
Usage
as.latex(quotes, form = "\\epigraph{%s}{%s}\n\n", cite = TRUE)
Value
character vector of formatted LaTeX quotes
Arguments
quotes
an object of class statquote returned from functions such as
search_quotes or statquote
form
structure of the LaTeX output for the text (first argument)
and source (second argument) passed to sprintf
cite
logical; should the cite field be included in the source output?