GQ: Format Quotes

Description Usage Arguments Details Value Warning

View source: R/GQ.R

Description

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

Usage

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

Details

This function formats text for use with LaTeX documents.

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


reports documentation built on May 2, 2019, 8:29 a.m.