I am using the ModernCV class for creating a resumé in LaTeX. I found three styles provided by Miktex for this purpose. My question is: how is the section header created in the document? All I see is a colored box followed by the given section text, but I can't find anything in the class or style regarding the above colored box. I found the below line in the file moderncv.cls but it doesn't have any information about colored box.

% makes a cv section
% usage: \section{<title>}
% starred variant, which is identical but defined to allow its use (e.g. for natbib compatibility, who uses \section*{} for the bibliography header)

moderncv.cls defines section via


\rule{\hintscolumnwidth}{1ex} makes a rule (rectangle) of the colour specified by \color{sectionrectanglecolor} which in turn is defined by the various options of the class.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.