latex 改变字体颜色

\usepackage{color}


1. {\color{red} 文本}


2. \textcolor[rgb]{1,0,0}{文本}  颜色参数范围为[0,1]