diff options
author | Karl Berry <karl@freefriends.org> | 2012-01-17 00:01:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-01-17 00:01:02 +0000 |
commit | d09f4ca68c6df756737f810b80fa1190bd5b57d9 (patch) | |
tree | 6e09bb333920a0ecdbafd99817637e437b999bcf /Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty | |
parent | 06cb5c1303792dae4ef9a8828457c61a71985d49 (diff) |
moderncv (16jan12)
git-svn-id: svn://tug.org/texlive/trunk@25126 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty index 7e4f540a458..7317ef032d8 100644 --- a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty @@ -1,5 +1,5 @@ %% start of file `moderncvstyleclassic.sty'. -%% Copyright 2006-2011 Xavier Danaux (xdanaux@gmail.com). +%% Copyright 2006-2012 Xavier Danaux (xdanaux@gmail.com). % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License version 1.3c, @@ -10,7 +10,7 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{moderncvstyleclassic}[2011/12/23 v0.15.1 modern curriculum vitae style scheme: classic] +\ProvidesPackage{moderncvstyleclassic}[2012/01/15 v0.16 modern curriculum vitae style scheme: classic] %------------------------------------------------------------------------------- @@ -47,7 +47,7 @@ % length used \newlength{\quotewidth} \newlength{\hintscolumnwidth} -\setlength{\hintscolumnwidth}{0.15\textwidth} +\setlength{\hintscolumnwidth}{0.175\textwidth} \newlength{\separatorcolumnwidth} \setlength{\separatorcolumnwidth}{0.025\textwidth} \newlength{\maincolumnwidth} @@ -125,15 +125,17 @@ {{\centering{}\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}% } +\newlength{\baseletterheight} +\settoheight{\baseletterheight}{\sectionstyle{o}} +\setlength{\baseletterheight}{\baseletterheight-0.95ex} \renewcommand*{\section}[1]{% \vspace*{2.5ex}% - \parbox[m]{\hintscolumnwidth}{\raggedleft\hintfont{\color{color1}\rule{\hintscolumnwidth}{1ex}}}% + \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}% \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 -% starred variant, which is identical but defined to allow its use (e.g. for natbib compatibility, who uses \section*{} for the bibliography header) \renewcommand*{\subsection}[1]{% \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}% |