From: adin Date: Mon, 21 Nov 2016 21:11:46 +0000 (-0200) Subject: Temporal fix for width on main column X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=f89cb60dd7dc546bf5d8d63768b84d38f1ac3d99;p=mcv-academic Temporal fix for width on main column --- diff --git a/moderncvbodyxlii.sty b/moderncvbodyxlii.sty index 3467f98..50e8f7f 100755 --- a/moderncvbodyxlii.sty +++ b/moderncvbodyxlii.sty @@ -28,7 +28,17 @@ % lengths % used by \cvitem (and all children command) % if you want to change the width of the column with the dates -\setlength{\hintscolumnwidth}{0.18\textwidth} +\setlength{\hintscolumnwidth}{0.18\linewidth} +\setlength{\separatorcolumnwidth}{0.025\linewidth} + +%todo Fix hard coded \maincolumnwidth +%We need to patch the \maincolumwidth inside the \cvitem, somewhere outside resets its length, and does not fit to the page +\renewcommand*{\cvitem}[3][.25em]{% + \setlength{\maincolumnwidth}{\maincolumnwidth-.5em} + \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}% + \raggedleft\hintstyle{#2} &{#3}% + \end{tabular}% + \par\addvspace{#1}} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks... %\setlength{\makecvtitlenamewidth}{10cm}