Is there any way to display math expressions with a background color (highlight) using AMS-Tex or AMS-LaTeX . For example, using AMS-TeX/LaTeX, we can display a math expression in font color using \color[colorName]{mathExpression}.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
If you load In most cases, text-related formatting of this sort also transfers to math-related content. However, a verbatim switch is sometimes required since boxing reverts back to text mode. As such, use
and not
Here's a small example in LaTeX illustrating the use of
|
|||||||
|


xcolor, you can use\colorbox{<color>}{$<math content>$}. This uses a regular "framed box", so you can set the values of\fboxsepto decrease the border. – Werner Dec 2 '12 at 6:27