1

I need help to write text in LaTeX - a mixture of 3 colors.

\documentclass{article}
\usepackage{xcolor}
\begin{document}

%% Single-color \textcolor{blue}{I used Single color for this text}

%% Two-colors \textcolor{blue!50!red}{I used two colors for this text}

%% Three-colors

\textcolor{green!!red!!yellow}{It is the correct way to use three colors for this text}

%%or \textcolor{green!40!red!20!yellow}{It is the correct way to use three colors for this text}

\end{document}

Werner
  • 603,163

0 Answers0