From bb6aee027325c5a48cf9cd68839842165fb1c94f Mon Sep 17 00:00:00 2001 From: Xavier Danaux Date: Sun, 15 Jan 2012 01:32:34 +0100 Subject: [PATCH] Corrected the misalignment of the section rule in styles classic and casual --- CHANGELOG | 4 +++- moderncvstyleclassic.sty | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 4859018..e4c9821 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,9 @@ version 0.16 (dd MMM 2012) - - adds starred versions of \section and \subsection (that are identical to their + - added starred versions of \section and \subsection (that are identical to their non-starred version, to e.g. enable biblatex support as requested by S. Verberkt (launchpad bug #913102). + - corrected a misalignment of the colored rule in front of the section titles in + the classic and casual styles, as reported by P. Neidhardt (launchpad bug #915910). version 0.15.1 (23 December 2011) - corrected a bug in the classic style causing the address font and color not diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty index 0ab5592..0ba607d 100644 --- a/moderncvstyleclassic.sty +++ b/moderncvstyleclassic.sty @@ -127,11 +127,11 @@ \renewcommand*{\section}[1]{% \vspace*{2.5ex}% - \parbox[m]{\hintscolumnwidth}{\raggedleft\hintfont{\color{color1}\rule{\hintscolumnwidth}{1ex}}}% + \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{.08em}{\hintfont{\color{color1}\rule{\hintscolumnwidth}{1ex}}}}% \phantomsection{}% reset the anchor for hyperrefs \addcontentsline{toc}{part}{#1}% \hspace{\separatorcolumnwidth}% - \parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}% + \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#1}}% \par\nobreak\vskip 1ex\@afterheading}% to avoid a pagebreak after the heading \renewcommand*{\subsection}[1]{%