TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)
share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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