reserve.character {latexpdf} | R Documentation |
Escape LaTeX Reserved Characters for Character Objects
Description
Escapes LaTeX reserved characters as suggested by https://en.wikibooks.org/wiki/LaTeX/Basics#Reserved_Characters.
Usage
## 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()
[Package latexpdf version 0.1.8 Index]