LaTeX - Add color in equation
Created|Updated|LaTeX
|Word count:52|Reading time:1min|Post View:
In equation environment, we can add color and background color to symbols
- color: \$Y = {\color{red}{5}}x\$
- background color: \$Y = \colorbox{red}{5}x\$
Note: Adding color needs the outermost pair of curly brackets, but adding background color doesn’t need.
Author: Boyu Gao
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Related Articles
Comment