| escape_latex | R Documentation |
Escapes special characters in Latex context.
Operates element-wise, using escape_latex.default
or escape_latex.latex depending
on whether the element appears to be latex-formatted.
escape_latex(x, ...)
x |
typically inherits character |
... |
passed arguments |
An element is considered latex-formatted if it begins
with "\(" or "". Note that even though
latex-like elements likely have already had reserved
characters escaped, escape_latex.latex
will attempt to fix certain anticipated escaping issues.
The function escape_latex.default
performs conventional escaping; the result is
prepended with "" as a signal to downstream
processes that the text is considered latex-ready
(and needn't be escaped again).
character
Other escape:
escape_latex.default(),
escape_latex.latex()
escape_latex(
c(
'',
' ',
'\t',
'{}a',
NA,
'\\()',
'3%'
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.