LaTeX 设置字体颜色


本系列文章由 @YhL_Leo 出品,转载请注明出处。
文章链接: http://blog.csdn.net/yhl_leo/article/details/50240179

需要包含宏包:

\usepackage{color}

方法一:

{\color{red} text}

方法二:

\textcolor[rgb]{1,0,0}{text}

另外,使用宏包xcolor也可以实现:

\textcolor{red/blue/green/black/white/cyan/magenta/yellow}{text}

其中textcolor{}中包含的是系统定义好的颜色。

你可能感兴趣的:(color,latex)