Learn R Programming

reports (version 0.1.4)

GQ: Format Quotes

Description

Tool to format text taken from articles for LaTeX. Combines multiple stringed text into one string. Removes non ascii characters and hyphens.

Usage

GQ(quotes = TRUE, block = TRUE, text = "clipboard", copy2clip = TRUE)

Arguments

quotes
logical or c(l, r, L, R, left or right). If TRUE LaTeX style quotes (2 backticks and two single quotes) are wrapped around the text. If (l, L or left) left ticks only are used. If (r, R or right) right ticks only are used.
block
If TRUE LaTeX block quote code tags are used instead of the backticks and single quotes.
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 LaTeX 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 documents.