1

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?

1
  • 1
    Can you please add a minimal example of code? Not everybody knows europasscv
    – egreg
    Commented Dec 2, 2016 at 21:10

1 Answer 1

1

An example output:

enter image description here

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:

enter image description here

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:

enter image description here


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}
\definecolor{ecvlanglinkcolor}{HTML}{000080}
\definecolor{ecvtextcolor}{HTML}{3e3a38}
8
  • I have a problem getting the SECTION headers of my Europass CV to appear bold in the europasscv package. Neither \bf nor \textbf{} seem to work. Commented Dec 3, 2016 at 0:00
  • @AlaguraajVH: Are you using \ecvsection{\textbf{section}}?
    – Werner
    Commented Dec 3, 2016 at 0:08
  • nope i don't any idea i didn't use that. i need to make that PERSONAL INFORMATION(section header) in BOLD . i had tried this " \colorlet{ecvsectioncolor}{black} " it helped me lot Commented Dec 3, 2016 at 0:34
  • @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
    Commented Dec 3, 2016 at 1:05
  • i'm new to LaTeX it's difficult for me to understand . i had tried this " \makeatletter \let\oldecv@infosectionkey\ecv@infosectionkey \renewcommand{\ecv@infosectionkey}{\textbf{\oldecv@infosecti‌​onkey}} \makeatother "and got an error message as 1."! Undefined control sequence.", 2."! PACKAGE INPUTENC ERROR: UNICODE CHAR €‹ (U+200B)" Commented Dec 3, 2016 at 2:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .