# Change the section color in europasscv “PERSONAL INFORMATION”

For changing the color of section titles I do this in europasscv:

\newcommand{\mycvsection}[1]{\ecvsection{\textcolor{black}{#1}}}


This way the section title is black when I use:

\mycvsection{Section Title}


But when I use:

\ecvpersonalinfo


I can not use the black. Can I somehow color the personal information section to?

• Can you please add a minimal example of code? Not everybody knows europasscv – egreg Dec 2 '16 at 21:10

An example output:

The colour of "sections" within europasscv is given by ecvsectioncolor. If you want this to be black, add

\colorlet{ecvsectioncolor}{black}


to your preamble. However, some things other than \ecvsections also use ecvsectioncolor. Here's the output if you use the above change:

If you want it to affect "sections" only, you could patch \ecvsectionstyle:

\usepackage{etoolbox}
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\ecvsectionstyle}{ecvsectioncolor}{black}{}{}


Here's the output if you use the above patch only:

Here is a list of the colours defined by europasscv, if you want to change more colours (taken from europasscv.cls):

\definecolor{ecvrulecolor}{HTML}{398dc9}
\definecolor{ecvsectioncolor}{HTML}{0e4194}
\definecolor{ecvhighlightcolor}{HTML}{1593cb}
\definecolor{ecvtablebordercolor}{HTML}{c6c6c6}
\definecolor{ecvhighlightcellcolor}{HTML}{ebebeb}

• @AlaguraajVH: Are you using \ecvsection{\textbf{section}}? – Werner Dec 3 '16 at 0:08
• @AlaguraajVH: For that specific section, you need to add \makeatletter \let\oldecv@infosectionkey\ecv@infosectionkey \renewcommand{\ecv@infosectionkey}{\textbf{\oldecv@infosectionkey}} \makeatother to your preamble. – Werner Dec 3 '16 at 1:05