diff options
author | Karl Berry <karl@freefriends.org> | 2012-02-06 00:42:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-02-06 00:42:34 +0000 |
commit | 27d1d1646fa5dc2daba1e09c2d2175c211d93def (patch) | |
tree | e7b644fc1c31207cb69662f4278db7d555a63116 /Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty | |
parent | 4e9750715f219d797d201e091dd0917660b68178 (diff) |
moderncv 0.18 (5feb12)
git-svn-id: svn://tug.org/texlive/trunk@25300 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 | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty index 359f9904d8a..ac261ef8bdd 100644 --- a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty @@ -10,7 +10,7 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{moderncvstyleclassic}[2012/01/25 v0.17 modern curriculum vitae style scheme: classic] +\ProvidesPackage{moderncvstyleclassic}[2012/02/05 v0.18 modern curriculum vitae style scheme: classic] %------------------------------------------------------------------------------- @@ -122,39 +122,41 @@ % optional quote \ifthenelse{\isundefined{\@quote}}% {}% - {{\centering{}\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}% - } + {{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}% + \par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle \newlength{\baseletterheight} \settoheight{\baseletterheight}{\sectionstyle{o}} \setlength{\baseletterheight}{\baseletterheight-0.95ex} \renewcommand*{\section}[1]{% - \vspace*{2.5ex}% - \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}% + \par\addvspace{2.5ex}% \phantomsection{}% reset the anchor for hyperrefs - \addcontentsline{toc}{part}{#1}% + \addcontentsline{toc}{section}{#1}% + \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}% \hspace{\separatorcolumnwidth}% \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#1}}% - \par\nobreak\vskip 1ex\@afterheading}% to avoid a pagebreak after the heading + \par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading \renewcommand*{\subsection}[1]{% + \par\addvspace{1ex}% + \phantomsection{}% reset the anchor for hyperrefs + \addcontentsline{toc}{subsection}{#1}% \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}% - \raggedleft\hintfont{} &{\subsectionstyle{#1}}% + \raggedleft\hintstyle{} &{\strut\subsectionstyle{#1}}% \end{tabular}% - \par\nobreak\vskip 0.5ex\@afterheading}% to avoid a pagebreak after the heading -% \phantomsection{}% reset the anchor for hyperrefs -% \addcontentsline{toc}{chapter}{#1}% does not work, the bookmark is placed at the same level as sections (placed themselves at part level to be visible, as hyperref does not allow sections without parents...) + \par\nobreak\addvspace{0.5ex}\@afterheading}% to avoid a pagebreak after the heading \renewcommand*{\cvitem}[3][.25em]{% \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}% - \raggedleft\hintfont{#2} &{#3}% - \end{tabular}\\[#1]} + \raggedleft\hintstyle{#2} &{#3}% + \end{tabular}% + \par\addvspace{#1}} \renewcommand*{\cvdoubleitem}[5][.25em]{% \cvitem[#1]{#2}{% \begin{minipage}[t]{\doubleitemmaincolumnwidth}#3\end{minipage}% \hfill% fill of \separatorcolumnwidth - \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintfont{#4}\end{minipage}% + \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintstyle{#4}\end{minipage}% \hspace*{\separatorcolumnwidth}% \begin{minipage}[t]{\doubleitemmaincolumnwidth}#5\end{minipage}}} @@ -174,7 +176,7 @@ \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}% \ifthenelse{\equal{#5}{}}{}{, #5}% \ifthenelse{\equal{#6}{}}{}{, #6}% - .% + .\strut% \ifx&% \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}} @@ -186,14 +188,14 @@ \setlength{\cvitemwithcommentmainlength}{\widthof{\usebox{\cvitemwithcommentmainbox}}}% \setlength{\cvitemwithcommentcommentlength}{\maincolumnwidth-\separatorcolumnwidth-\cvitemwithcommentmainlength}% \cvitem[#1]{#2}{% - \begin{minipage}[t]{\cvitemwithcommentmainlength}\textbf{#3}\end{minipage}% + \begin{minipage}[t]{\cvitemwithcommentmainlength}\bfseries#3\end{minipage}% \hfill% fill of \separatorcolumnwidth \begin{minipage}[t]{\cvitemwithcommentcommentlength}\raggedleft\small\itshape#4\end{minipage}}} \renewenvironment{thebibliography}[1]% {% \bibliographyhead{\refname}% - \small% +% \small% \begin{list}{\bibliographyitemlabel}% {% \setlength{\topsep}{0pt}% |