[Tex/LaTex] size of horizontal line in \moderncvtheme[…]{classic} theme

moderncv

is it possible to make the the horizontal line in the section headings less thick in the classic theme, without changing the font size of the heading? Thanks.

Best Answer

You can add this to your preamble

\makeatletter
\newlength{\hintscolumnthickness}
\setlength{\hintscolumnthickness}{3pt}
\RenewDocumentCommand{\section}{sm}{%
  \par\addvspace{2.5ex}%
  \phantomsection{}% reset the anchor for hyperrefs
  \addcontentsline{toc}{section}{#2}%
  \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{\hintscolumnthickness}}}%
  \hspace{\separatorcolumnwidth}%
  \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#2}}%
  \par\nobreak\addvspace{1ex}\@afterheading}
\makeatother

now by changing the third line with the desired thickness you get what you asked.