reserve.character: Escape LaTeX Reserved Characters for Character Objects

Description Usage Arguments See Also

View source: R/reserve.R

Description

Escapes LaTeX reserved characters as suggested by https://en.wikibooks.org/wiki/LaTeX/Basics#Reserved_Characters.

Usage

1
2
3
4
## S3 method for class 'character'
reserve(x, target = c("#", "$", "%", "^", "&", "_", "{",
  "}", "~", "\\"), replacement = c("\\#", "\\$", "\\%", "\\^{}",
  "\\&", "\\_", "\\{", "\\}", "\\~{}", "\\textbackslash{}"), ...)

Arguments

x

character

target

sequence to find (regular expression unless fixed is false)

replacement

sequence to use

...

passed arguments

See Also

Other reserve: reserve.data.frame, reserve.default, reserve.factor, reserve.list, reserve


bergsmat/latexpdf documentation built on Oct. 21, 2018, 11:34 p.m.