R/colors.R
latex_color.Rd
Surround TeX expression with a color command
latex_color(x, color)
TeX expression
color
character string
latex_color("X^2", "red") #> [1] "{\\color[HTML]{FF0000} X^2}"