1. Use the defined color directly
\usepackage{color}
\textcolor{red/blue/green/black/white/cyan/magenta/yellow}{text}
where textcolor{…} contains the system-defined colors
2. Combine the values of red, green and blue to form the color we want
\usepackage{color}
\textcolor[rgb]{r,g,b}{text}
where {r,g,b} represents the combination of red, green and blue colors, and takes values in the range [0-1]
\textcolor[RGB]{R,G,B}{text}
where {R,G,B} represents the combination of red, green and blue colors, and the range of values is [0-255]
3. Define a color, call directly
\usepackage{color}
\definecolor{ColorName}{rgb}{r,g,b} This time r/g/b is defined in the range [0-1].
\definecolor{ColorName}{RGB}{R,G,B}, when the domain of R/G/B is defined in [0-255].
Here the name ColorName is defined for the color, and the following can call this color scheme directly
\textcolor{ColorName}{text}
Read More:
- How to Set latex text Bold & Italic
- How to solve the error of “failed to create the Java virtual machine” in installing eclipse 2020-03 in MAC environment
- How to Install PSSH in Centos7
- How to install PIL in Python 3
- How to Install Mongdb4.X in Windows
- How to Use pychar to run tensorflow and virtualenv (How to install tensorflow)
- How To Install WordPress with LAMP on Ubuntu 16.04
- Tensorflow: How to Use static_rnn
- How to Revert Your File & Folder by “FOUND.000”
- How to Install FFmpeg on Linux
- How to Fix creating process error during software installation
- How to Solve program install error 0x80070660
- How To Install Java with Apt-Get on Ubuntu 16.04
- Macos: How to Solve cocoapods Install Error
- How to Install MongoDB Community Edition Manually on mac and linux
- Docker: How to Install Nacos
- Debian: How to install MariaDB
- How to uninstall Maya on a Mac
- Mac: How to installs docker through brew
- How to Sole cmd Install typeScript Error