escape_latex.default | R Documentation |
Escapes text characters that have special meaning in latex. Adapted with gratitude from KableExtra internals. I.e. inactivates material that otherwise looks like latex.
## Default S3 method:
escape_latex(x, secondary = TRUE, ...)
x |
typically inherits character |
secondary |
logical: whether secondary backslashes should be pre-doubled |
... |
ignored |
This function is used in as_kable.tablet
in
preparation for a call to kbl
.
At kableExtra 1.3.4, sim_double_escape() only doubles
primary (leading) backslashes; the secondary
argument
by default pre-doubles later backslashes to prevent
certain display errors. Behavior may change if kableExtra changes.
latex
Other escape:
escape_latex()
,
escape_latex.latex()
escape_latex('([#$%&_{}])')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.