I would like to customize \section
style in order to have
the following title (forget the horizontal line) :
I imagine that I need to modify the following definition:
\renewcommand*{\section}[1]{%
\par\addvspace{2.5ex}%
\phantomsection{}% reset the anchor for hyperrefs
\addcontentsline{toc}{section}{#1}%
\strut\sectionstyle{#1}%
{\color{color1}\hrule}%
\par\nobreak\addvspace{1ex}\@afterheading}
The code I am using is:
\section{CORE COMPETENCIES}
Can you tell me how?
Best Answer
Here's one possibility using
\colorbox
and a\parbox
:Perhaps this modification follows more accurately the image in the question (no horizontal space between the colored box and the text and bold-faced text); I also added
\MakeUppercase
to\sectionstyle
: