diff --git a/CHANGELOG b/CHANGELOG index 9f0987b..cde852d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ version 0.17 (xx Jan 2012) the footer symbol. - aligned the space before and after the title across styles. - added an optional title to the casual style. + - changed the definition of the font styles to avoid undesired extra spacing. version 0.16 (15 Jan 2012) - added starred versions of \section and \subsection (that are identical to their diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty index f2c2b09..02fd601 100644 --- a/moderncvstyleclassic.sty +++ b/moderncvstyleclassic.sty @@ -36,13 +36,13 @@ \renewcommand*{\hintfont}{} % styles -\newcommand*{\namestyle}[1]{{\namefont\color{color0}#1}} -\newcommand*{\titlestyle}[1]{{\titlefont\color{color2}#1}} -\newcommand*{\addressstyle}[1]{{\addressfont\color{color1}#1}} -\newcommand*{\quotestyle}[1]{{\quotefont\color{color1}#1}} -\newcommand*{\sectionstyle}[1]{{\sectionfont\color{color1}#1}} -\newcommand*{\subsectionstyle}[1]{{\subsectionfont\color{color1}#1}} -\newcommand*{\hintstyle}[1]{{\hintfont\color{color0}#1}} +\newcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}} +\newcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}} +\newcommand*{\addressstyle}[1]{{\addressfont\textcolor{color1}{#1}}} +\newcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}} +\newcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{#1}}} +\newcommand*{\subsectionstyle}[1]{{\subsectionfont\textcolor{color1}{#1}}} +\newcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}} % length used \newlength{\quotewidth} diff --git a/moderncvstyleoldstyle.sty b/moderncvstyleoldstyle.sty index b441760..59917bd 100644 --- a/moderncvstyleoldstyle.sty +++ b/moderncvstyleoldstyle.sty @@ -39,13 +39,13 @@ \renewcommand*{\hintfont}{\bfseries} % styles -\newcommand*{\namestyle}[1]{{\namefont\color{color0}#1}} -\newcommand*{\titlestyle}[1]{{\titlefont\color{color2}#1}} -\newcommand*{\addressstyle}[1]{{\addressfont\color{color2}#1}} -\newcommand*{\quotestyle}[1]{{\quotefont\color{color1}#1}} -\newcommand*{\sectionstyle}[1]{{\sectionfont\color{color1}#1}} -\newcommand*{\subsectionstyle}[1]{{\subsectionfont\color{color1}#1}} -\newcommand*{\hintstyle}[1]{{\hintfont\color{color0}#1}} +\newcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}} +\newcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}} +\newcommand*{\addressstyle}[1]{{\addressfont\textcolor{color2}{#1}}} +\newcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}} +\newcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{#1}}} +\newcommand*{\subsectionstyle}[1]{{\subsectionfont\textcolor{color1}{#1}}} +\newcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}} % symbols \renewcommand*{\listitemsymbol}{\labelitemi~}