powered by
This function removes escaped LaTeX formulas and formatting commands from LaTeX-formatted text.
remove_escape_latex(x)
A character vector with escaped LaTeX formulas and formatting commands removed.
A character vector or string containing LaTeX-formatted text.
# Remove escaped LaTeX formulas from a string cleaned_text <- remove_escape_latex("\\\\textbf\\{Hello\\}, $\\\\alpha$ formula") print(cleaned_text)
Run the code above in your browser using DataLab