Converts common LaTeX/BiBTeX escaped characters into UTF-8 encoding. For instance, {'{e}} will be translated in é.

replace_tex_tags(x)

Arguments

x

a vector of characters in which common LaTeX/BiBTeX escaped characters must be converted.

Value

A vector of characters.

Examples

replace_tex_tags("H{\\'{e}}t{\\'{e}}rog{\\'{e}}n{\\'{e}}it{\\'{e}}")
#> [1] "Hétérogénéité"
replace_tex_tags(c("Mon c{\\oe}ur", "El Ni{\\~{n}}o"))
#> [1] "Mon coeur" "El Niño"