Learn R Programming

reports (version 0.1.4)

LL: Format Text Lines to LaTeX List

Description

Itemizes lines of text into a LaTeX list.

Usage

LL(enumerate = TRUE, text = "clipboard", copy2clip = TRUE)

Arguments

enumerate
logical. If TRUE uses the enumerate environment. If FALSE itemize is used instead.
text
character vector or text copied to the clipboard. Default is to read from the clipboard.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.

Value

Returns a character vector with a LaTeX list formatted text.

Warning

Ligatures are assumed to be "fi", however, these elements may be "ff", "fi", "fl", "ffi" or "ffl".

Details

This function formats text for use with LaTeX as a list.

Examples

Run this code
## Not run: 
# x <- readLines(n = 3)
# one, two buckle my shoe
# three, four close the door
# five, six pick up sticks
# LL(, x)
# LL(FALSE, x)
# ## End(Not run)

Run the code above in your browser using DataLab