Learn R Programming

statquotes (version 0.3.3)

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?

Author

Phil Chalmers

See Also

as.data.frame.statquote, as.markdown

Examples

Run this code

ll <- search_quotes("Tukey")
as.latex(ll)

Run the code above in your browser using DataLab