In LaTeX, usually I use
default color {\color{blue}changed color.}
or
default color \textcolor{blue}{changed color.}
to change the color of a certain part of the text. Now I want to change the color of the whole sentence to a determined color, say red, as follows
I tried
\textcolor{red}{default color {\color{blue}changed color.}}
but it just has effect on the uncolored text:
For certain reasons, I need to keep "\textcolor{blue}{changed color.}" in the origial text. Is there any way of overwritting the colored text?






\color{red} default color \textcolor{blue}{changed color}. default color again– Zarko Dec 01 '20 at 07:31