Page Layoutmoderncv | bar thickness

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

moderncv | bar thickness

Post by thomas_guest »

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 http://be-jo.net/wp-content/uploads/201 ... 40x450.jpg ) are too thick.

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

MWE:

Code: Select all

\documentclass[11pt,a4paper,sans,ngerman,a4paper]{moderncv} 
\moderncvstyle{classic}

\firstname{First name}
\familyname{last name}

\begin{document}

\section{some section}
\cvitem{stuff}{ok}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

moderncv | bar thickness

Post by thomas_guest »

Ok, found it, https://answers.launchpad.net/moderncv/+question/190407

moderncvstyleclassic.sty:

Code: Select all

\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.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

moderncv | bar thickness

Post by Johannes_B »

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

moderncv | bar thickness

Post by localghost »

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.

Code: Select all

\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.


Thorsten
Post Reply