escape_latex: Escape LaTeX Strings

Description Usage Arguments Details Value References

Description

The functions escapes characters that are used as LaTeX control sequences.

Usage

1
escape_latex(x, newlines = FALSE, spaces = FALSE)

Arguments

x

a string to be escaped

newlines

if TRUE new line characters are escaped as a double backslash

spaces

if TRUE multiple spaces are escaped to multiple protected whitespaces in LaTeX

Details

If x is of class TeXcontent, the input string is returned “as is”.

Value

an string with LaTeX control characters escaped

References

The function was taken from

Yihui Xie (2016). knitr: A General-Purpose Package for Dynamic Report Generation in R. R


mlkornexl/pgfKeys documentation built on May 14, 2019, 2:17 p.m.