如何在 LaTeX 中用“三种颜色混合”书写文本

如何在 LaTeX 中用“三种颜色混合”书写文本

我需要帮助来在 LaTeX 中写文本 - 三种颜色的混合。

\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}

相关内容