escape_latex.latex {tablet} | R Documentation |
Escape Latex for Class 'latex'
Description
Returns argument typically unmodified. Prevents accidental double-escaping of the same text.
Usage
## S3 method for class 'latex'
escape_latex(x, secondary = TRUE, primary = FALSE, ...)
Arguments
x |
latex |
secondary |
logical: whether first backslashes should be pre-doubled |
... |
ignored |
Details
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.
Value
latex
See Also
Other escape:
escape_latex()
,
escape_latex.default()
Examples
identical(
escape_latex('([#$%&_{}])'),
escape_latex(escape_latex('([#$%&_{}])'))
)
[Package tablet version 0.6.12 Index]