ziming-liu
10/14/2019 - 3:29 PM

latex color 包

需要包含宏包:

\usepackage{color}
1
方法一:

{\color{red} text}
1
方法二:

\textcolor[rgb]{1,0,0}{text}
1
另外,使用宏包xcolor也可以实现:

\textcolor{red/blue/green/black/white/cyan/magenta/yellow}{text}
1
其中textcolor{}中包含的是系统定义好的颜色。