summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-07 23:28:40 +0000
committerKarl Berry <karl@freefriends.org>2011-11-07 23:28:40 +0000
commit44edae68ae5421ecf63bfcc931a9e00fb208aea0 (patch)
tree07ead369a42733e918147f8779883ed0f4617b8e /Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty
parentc144f631148fc20d9c33eda228ef0207e1af3713 (diff)
moderncv 0.13 (7nov11)
git-svn-id: svn://tug.org/texlive/trunk@24535 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty')
-rw-r--r--Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty32
1 files changed, 28 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty
index b4b356246c8..121b6170bb0 100644
--- a/Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty
+++ b/Master/texmf-dist/tex/latex/moderncv/moderncvthemecasual.sty
@@ -1,5 +1,5 @@
%% start of file `moderncvthemecasual.sty'.
-%% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
+%% Copyright 2006-2011 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{moderncvthemecasual}[2010/08/03 v0.12 modern curriculum vitae style: casual]
+\ProvidesPackage{moderncvthemecasual}[2011/11/06 v0.13 modern curriculum vitae style: casual]
%-------------------------------------------------------------------------------
@@ -33,9 +33,15 @@
% red
\newif\if@colorred\@colorredfalse
\DeclareOption{red}{\@colorredtrue}
+% purple
+\newif\if@colorpurple\@colorpurplefalse
+\DeclareOption{purple}{\@colorpurpletrue}
% grey
\newif\if@colorgrey\@colorgreyfalse
\DeclareOption{grey}{\@colorgreytrue}
+% black
+\newif\if@colorblack\@colorblackfalse
+\DeclareOption{black}{\@colorblacktrue}
% roman option
\newif\if@roman\@romanfalse
@@ -46,7 +52,7 @@
\PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
% execute default options
-\ExecuteOptions{color}
+\ExecuteOptions{}
% process given options
\ProcessOptions\relax
@@ -82,11 +88,25 @@
\definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
\definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
\definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
+\if@colorpurple
+ \definecolor{sectionrectanglecolor}{rgb}{0.40,0.23,0.80}
+ \definecolor{sectiontitlecolor}{rgb}{0.50,0.33,0.80}
+ \definecolor{subsectioncolor}{rgb}{0.50,0.33,0.80}
+ \definecolor{addresscolor}{rgb}{0.40,0.23,0.70}\fi
\if@colorgrey
\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}
\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
@@ -108,7 +128,11 @@
{%
\ifthenelse{\isundefined{\@photo}}%
{}%
- {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
+ {%
+ \setlength\fboxrule{\@photoframewidth}%
+ \ifdim\@photoframewidth=0pt%
+ \setlength{\fboxsep}{0pt}\fi%
+ {\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
\hfill%
% \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
\raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%