LaTeX forum ⇒ Page Layoutmoderncv | bar thickness

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Posts: 2
Joined: Wed Aug 14, 2013 3:33 pm

moderncv | bar thickness

Postby thomas_guest » Wed Aug 14, 2013 3:37 pm

Hi all,

I'm writing my cv using moderncv, classic style format.

My problem is that the bars left of any section (as the orange ones here ... 40x450.jpg ) are too thick.

Where can I change that? I looked through moderncv.cls and moderncvstyleclassic.sty and didn't find anything.


  1. \documentclass[11pt,a4paper,sans,ngerman,a4paper]{moderncv}
  2. \moderncvstyle{classic}
  4. \firstname{First name}
  5. \familyname{last name}
  7. \begin{document}
  9. \section{some section}
  10. \cvitem{stuff}{ok}
  11. \end{document}


Posts: 2
Joined: Wed Aug 14, 2013 3:33 pm

Postby thomas_guest » Wed Aug 14, 2013 3:41 pm

Ok, found it,

  1. \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%

Now, can I also do this in my .tex file somehow? I don't want to change the sty for every other cv...
Last edited by cgnieder on Thu Aug 29, 2013 11:41 am, edited 2 times in total.
Reason: code markup

User avatar
Site Moderator
Posts: 4161
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Aug 14, 2013 3:55 pm

X-Post to the german Forum golatex.

Please read what our administrator thinks about that: gimme pizza
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Wed Aug 28, 2013 11:13 am

thomas_guest wrote:[…] Now, can I also do this in my .tex file somehow? […]

The moderncv class uses the etoolbox package, which provides the \patchcmd macro. So you can patch the \section command quite easily in the preamble.
  1. \patchcmd{\section}{0.95ex}{0.5ex}{}{}

This reduces the thickness exemplarily from 0.95ex to 0.5ex.

And by the way, X-post are not welcome at all.

LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 3 guests