diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-04 12:47:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-04 12:47:11 +0000 |
commit | 81cb4991a294f8c832eeebda60e9f0b49f7c389c (patch) | |
tree | 716927b9379eebac950db971309770af069dcf01 /Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty | |
parent | 7ce8eb47651667cd0b38e9aae56525fbc2d5533c (diff) |
new package moderncv
git-svn-id: svn://tug.org/texlive/trunk@1763 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty new file mode 100644 index 00000000000..822e36a5566 --- /dev/null +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty @@ -0,0 +1,104 @@ +%% start of file `moderncvstylecasual.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstylecasual}[2006/05/02 v0.4 modern curriculum vitae style: casual] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% roman option +\newif\if@roman\@romanfalse +\DeclareOption{roman}{\@romantrue} + +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstylecasual}{Unknown option ‘\CurrentOption’}} + +% execute default options +\ExecuteOptions{color} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- +% symbols used +\renewcommand*{\listitemsymbol}{\textbullet} + +% colors +\if@color + \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65} + \definecolor{familynamecolor}{rgb}{0.45,0.45,0.45} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65} +\else + \definecolor{firstnamecolor}{rgb}{0.5,0.5,0.5} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}\fi + +% fonts +\if@roman + \AtBeginDocument{\rmfamily} +\else + \AtBeginDocument{\sffamily}\fi +\renewcommand*{\ttdefault}{pcr} +\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape} +\renewcommand*{\familynamefont}{\firstnamefont} +\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape} +\renewcommand*{\quotefont}{\large\slshape} +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape} +\renewcommand*{\subsectionfont}{\normalsize\sffamily\mdseries\upshape} + +% styles + +% maketitle +\renewcommand*{\maketitle}{% + {\raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}% + {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}}% + +% cv footer +\providecommand*{\footersymbol}{} +\renewcommand*{\footersymbol}{\textbullet} +\providecommand*{\footerfont}{} +\renewcommand*{\footerfont}{\addressfont} +\if@color + \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35} + \definecolor{footersymbolcolor}{rgb}{0.25,0.5,0.75} +\else + \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35} + \definecolor{footersymbolcolor}{rgb}{0.75,0.75,0.75}\fi +\providecommand*{\makefooter}{} +\renewcommand*{\makefooter}{% + \fancypagestyle{plain}{% + \fancyfoot[c]{% + \footerfont% + \color{footertextcolor}\@address% + ~~\color{footersymbolcolor}\footersymbol~~% + \color{footertextcolor}\Telefon~\@phone% + ~~\color{footersymbolcolor}\footersymbol~~% + \color{footertextcolor}\Letter~\emaillink{\@email}}}% + \pagestyle{plain}} +\AtBeginDocument{\makefooter} + + +\endinput + +%% end of file `moderncvstylecasual.sty'. |