I am trying to add a colorful background to an equation. I can accomplish that by using CSS
, but now I am wondering where it is possible to do that directly in the script calling MathJax.
Please, find below a rmarkdown
example.
---
title: "Untitled"
output: html_document
---
Some text:
$$Y = \beta_0 + \beta_ 1 X_1 + \ldots + \beta_n X_n.$$
It is easy:
$$\require{color}\colorbox{magenta}{y = (sin)x}$$
For the coloring text of an equation you can use:
$$\color{green}{y = (cos)x}$$