Because you gave us no compilable code I can only guess what the commands \sectionskip
and \sectionlineskip
should do. I simply commented them in the following code.
You can define a second parameter carrying the color name for environment rSection
like
\newenvironment{rSection}[2]{%
% \sectionskip
\color{#2}\MakeUppercase{\bf #1} % Section title
% \sectionlineskip
\hrule % Horizontal line
\begin{list}{}{
\setlength{\leftmargin}{1.5em}
}
\item[]
}{
\end{list}
}
then you can use
\begin{rSection}{Education}{ForestGreen}
to get the green color.
Please see the following compilable code:
\documentclass{article}
\usepackage[svgnames]{xcolor}
\newenvironment{rSection}[2]{%
% \sectionskip
\color{#2}\MakeUppercase{\bf #1} % Section title
% \sectionlineskip
\hrule % Horizontal line
\begin{list}{}{
\setlength{\leftmargin}{1.5em}
}
\item[]
}{
\end{list}
}
\begin{document}
\begin{rSection}{Education}{ForestGreen}
Text Text Text
\end{rSection}
\begin{rSection}{Education}{red}
Text Text Text
\end{rSection}
\end{document}
and its result:

If your used class already defined the environment rSection
simply create a new one myrSection
in your preamble of your document with
\newenvironment{myrSection}[2]{%
\sectionskip
\color{#2}\MakeUppercase{\bfseries #1} % Section title
\sectionlineskip
\hrule % Horizontal line
\begin{list}{}{
\setlength{\leftmargin}{1.5em}
}
\item[]
}{
\end{list}
}
and use it this way in your document:
\begin{myrSection}{Education}{ForestGreen}
Text Text Text
\end{myrSection}
ForestGreen
is a color named viadvipsnames
orsvgnames
, so loading\usepackage[dvipsnames,svgnames]{xcolor}
should work. Or try\PassOptionsToPackage{svgnames,dvipsnames}{xcolor}
best right after\documentclass{...}
\MakeUppercase
is responsible for this, for upper case of ForestGreen, i.e. FORESTGREEN, which is unknown of course. You may need a different interface to your section environment, pushing the color out of the\MakeUppercase
argument.\bf
is outdated. Use\bfseries
instead\textcolor{ForestGreen} Education
is\textcolor{ForestGreen}{E}ducation
and would just color E, was that intended?