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{}中包含的是系统定义好的颜色。

posted on 2015-12-09 19:06  疯子123  阅读(386)  评论(0编辑  收藏  举报

导航