Cyan's Blog

Search

Search IconIcon to open search

Latex Colored Text

Last updated Oct 15, 2022 Edit Source

1
\textcolor{red}{Sample}
1
\textcolor[rgb]{r,g,b}{text}

其中{r,g,b}代表red、green和blue三种颜色的组合,取值范围为[0-1]

1
\textcolor[RGB]{R,G,B}{text}

其中{R,G,B}代表red、green和blue三种颜色的组合,取值范围为[0-255]

# 比较好看的颜色

$\textcolor{forestgreen}{forestgreen}$ $\textcolor{royalblue}{royalblue}$ $\textcolor{darkorchid}{darkorchid}$ $\textcolor{orangered}{orangered}$ $\textcolor{salmon}{salmon}$ $\textcolor{darkorange}{darkorange}$