Format Text Lines to LaTeX List

Description

Itemizes lines of text into a LaTeX list.

Usage

1
2
  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.

Details

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

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".

Examples

1
2
3
4
5
6
7
8
9
## 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)