diff --git a/CHANGELOG b/CHANGELOG index f8ffbb7..9bc0f46 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +version 0.13 (xx August 2010) + - added a "black" color option to render the resume in black & white, as suggested + by F. Bicarri. + version 0.12 (03 August 2010) - prevents pagebreaks after sections and subsections (launchpad bug #409902), as originally reported by C. Gaspoz and fixed by launchpad user tentotwo). diff --git a/moderncv.cls b/moderncv.cls index 431367e..a76686c 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -64,10 +64,6 @@ \newif\if@lmodern\@lmoderntrue \DeclareOption{nolmodern}{\@lmodernfalse} -% nocolor option -\newif\if@color\@colortrue -\DeclareOption{nocolor}{\@colorfalse} - % CJK option %\newif\if@CJK\@CJKfalse %\DeclareOption{CJK}{\@CJKtrue} diff --git a/moderncvthemecasual.sty b/moderncvthemecasual.sty index 588e5cc..0b569e6 100644 --- a/moderncvthemecasual.sty +++ b/moderncvthemecasual.sty @@ -36,6 +36,9 @@ % grey \newif\if@colorgrey\@colorgreyfalse \DeclareOption{grey}{\@colorgreytrue} +% black +\newif\if@colorblack\@colorblackfalse +\DeclareOption{black}{\@colorblacktrue} % roman option \newif\if@roman\@romanfalse @@ -46,7 +49,7 @@ \PackageWarning{moderncvthemecasual}{Unknown option '\CurrentOption'}} % execute default options -\ExecuteOptions{color} +\ExecuteOptions{} % process given options \ProcessOptions\relax @@ -87,6 +90,15 @@ \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35} \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35} \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi +\if@colorblack + \definecolor{firstnamecolor}{rgb}{0,0,0} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{quotecolor}{rgb}{0,0,0} + \definecolor{addresscolor}{rgb}{0,0,0} + \definecolor{sectionrectanglecolor}{rgb}{0,0,0} + \definecolor{sectiontitlecolor}{rgb}{0,0,0} + \definecolor{subsectioncolor}{rgb}{0,0,0} + \definecolor{footersymbolcolor}{rgb}{0,0,0}\fi % fonts \if@roman diff --git a/moderncvthemeclassic.sty b/moderncvthemeclassic.sty index 772aae7..b9b6e2a 100644 --- a/moderncvthemeclassic.sty +++ b/moderncvthemeclassic.sty @@ -36,6 +36,9 @@ % grey \newif\if@colorgrey\@colorgreyfalse \DeclareOption{grey}{\@colorgreytrue} +% black +\newif\if@colorblack\@colorblackfalse +\DeclareOption{black}{\@colorblacktrue} % roman option \newif\if@roman\@romanfalse @@ -46,7 +49,7 @@ \PackageWarning{moderncvthemeclassic}{Unknown option '\CurrentOption'}} % execute default options -\ExecuteOptions{color} +\ExecuteOptions{} % process given options \ProcessOptions\relax @@ -87,6 +90,13 @@ \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35} \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}\fi +\if@colorblack + \definecolor{titlecolor}{rgb}{0,0,0} + \definecolor{quotecolor}{rgb}{0,0,0} + \definecolor{addresscolor}{rgb}{0,0,0} + \definecolor{sectionrectanglecolor}{rgb}{0,0,0} + \definecolor{sectiontitlecolor}{rgb}{0,0,0} + \definecolor{subsectioncolor}{rgb}{0,0,0}\fi % fonts \if@roman