首页 > 技术文章 > LaTeX 设置字体颜色

hehehaha 2015-12-09 19:06 原文


本系列文章由 @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{}中包含的是系统定义好的颜色。

推荐阅读