remove_escape_latex {RTLknitr} | R Documentation |
This function removes escaped LaTeX formulas and formatting commands from LaTeX-formatted text.
remove_escape_latex(x)
x |
A character vector or string containing LaTeX-formatted text. |
A character vector with escaped LaTeX formulas and formatting commands removed.
# Remove escaped LaTeX formulas from a string
cleaned_text <- remove_escape_latex("\\\\textbf\\{Hello\\}, $\\\\alpha$ formula")
print(cleaned_text)