Format Text Lines to 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.

Description

Itemizes lines of text into a LaTeX list.

Details

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

Warning

Ligatures parsing is very good, however, these elements my be incorrect. If a warning is thrown check the use of "ff", "fi", "fl", "ffi" and "ffl".

Examples

x <- c( "one, two buckle my shoe", "three, four close the door", "five, six pick up sticks") LL(, x)
\\begin{enumerate} \\item one, two buckle my shoe \\item three, four close the door \\item five, six pick up sticks \\end{enumerate}
LL(FALSE, x)
\\begin{itemize} \\item one, two buckle my shoe \\item three, four close the door \\item five, six pick up sticks \\end{itemize}