Skip to contents

Surround TeX expression with a color command

Usage

latex_color(x, color)

Arguments

x

TeX expression

color

color

Value

character string

Examples

latex_color("X^2", "red")
#> [1] "{\\color[HTML]{FF0000} X^2}"