Added a "black" color option for black & white printing

This commit is contained in:
Xavier Danaux
2010-08-10 22:13:29 -04:00
committed by Xavier Danaux
parent acd71285ca
commit 732a654137
4 changed files with 28 additions and 6 deletions

View File

@ -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) version 0.12 (03 August 2010)
- prevents pagebreaks after sections and subsections (launchpad bug #409902), - prevents pagebreaks after sections and subsections (launchpad bug #409902),
as originally reported by C. Gaspoz and fixed by launchpad user tentotwo). as originally reported by C. Gaspoz and fixed by launchpad user tentotwo).

View File

@ -64,10 +64,6 @@
\newif\if@lmodern\@lmoderntrue \newif\if@lmodern\@lmoderntrue
\DeclareOption{nolmodern}{\@lmodernfalse} \DeclareOption{nolmodern}{\@lmodernfalse}
% nocolor option
\newif\if@color\@colortrue
\DeclareOption{nocolor}{\@colorfalse}
% CJK option % CJK option
%\newif\if@CJK\@CJKfalse %\newif\if@CJK\@CJKfalse
%\DeclareOption{CJK}{\@CJKtrue} %\DeclareOption{CJK}{\@CJKtrue}

View File

@ -36,6 +36,9 @@
% grey % grey
\newif\if@colorgrey\@colorgreyfalse \newif\if@colorgrey\@colorgreyfalse
\DeclareOption{grey}{\@colorgreytrue} \DeclareOption{grey}{\@colorgreytrue}
% black
\newif\if@colorblack\@colorblackfalse
\DeclareOption{black}{\@colorblacktrue}
% roman option % roman option
\newif\if@roman\@romanfalse \newif\if@roman\@romanfalse
@ -46,7 +49,7 @@
\PackageWarning{moderncvthemecasual}{Unknown option '\CurrentOption'}} \PackageWarning{moderncvthemecasual}{Unknown option '\CurrentOption'}}
% execute default options % execute default options
\ExecuteOptions{color} \ExecuteOptions{}
% process given options % process given options
\ProcessOptions\relax \ProcessOptions\relax
@ -87,6 +90,15 @@
\definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35} \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
\definecolor{subsectioncolor}{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 \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 % fonts
\if@roman \if@roman

View File

@ -36,6 +36,9 @@
% grey % grey
\newif\if@colorgrey\@colorgreyfalse \newif\if@colorgrey\@colorgreyfalse
\DeclareOption{grey}{\@colorgreytrue} \DeclareOption{grey}{\@colorgreytrue}
% black
\newif\if@colorblack\@colorblackfalse
\DeclareOption{black}{\@colorblacktrue}
% roman option % roman option
\newif\if@roman\@romanfalse \newif\if@roman\@romanfalse
@ -46,7 +49,7 @@
\PackageWarning{moderncvthemeclassic}{Unknown option '\CurrentOption'}} \PackageWarning{moderncvthemeclassic}{Unknown option '\CurrentOption'}}
% execute default options % execute default options
\ExecuteOptions{color} \ExecuteOptions{}
% process given options % process given options
\ProcessOptions\relax \ProcessOptions\relax
@ -87,6 +90,13 @@
\definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35} \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
\definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}\fi \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 % fonts
\if@roman \if@roman