escape_latex.latex | R Documentation |
Returns argument typically unmodified. Prevents accidental double-escaping of the same text.
## S3 method for class 'latex'
escape_latex(x, secondary = TRUE, primary = FALSE, ...)
x |
latex |
secondary |
logical: whether first 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.default()
identical(
escape_latex('([#$%&_{}])'),
escape_latex(escape_latex('([#$%&_{}])'))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.