default/moderncvthemecasual.sty
author Eugen Sawin <sawine@me73.com>
Tue, 24 Aug 2010 21:54:15 +0200
changeset 9 6370083b2760
permissions -rw-r--r--
Bewerbung bei MediClin
     1 %% start of file `moderncvthemecasual.sty'.
     2 %% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
     3 %
     4 % This work may be distributed and/or modified under the
     5 % conditions of the LaTeX Project Public License version 1.3c,
     6 % available at http://www.latex-project.org/lppl/.
     7 
     8 
     9 %-------------------------------------------------------------------------------
    10 %                identification
    11 %-------------------------------------------------------------------------------
    12 \NeedsTeXFormat{LaTeX2e}
    13 \ProvidesPackage{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
    14 
    15 
    16 %-------------------------------------------------------------------------------
    17 %                required packages
    18 %-------------------------------------------------------------------------------
    19 
    20 
    21 %-------------------------------------------------------------------------------
    22 %                package options
    23 %-------------------------------------------------------------------------------
    24 % color options
    25 % blue (default option)
    26 \DeclareOption{blue}{}
    27 % orange
    28 \newif\if@colororange\@colororangefalse
    29 \DeclareOption{orange}{\@colororangetrue}
    30 % green
    31 \newif\if@colorgreen\@colorgreenfalse
    32 \DeclareOption{green}{\@colorgreentrue}
    33 % red
    34 \newif\if@colorred\@colorredfalse
    35 \DeclareOption{red}{\@colorredtrue}
    36 % grey
    37 \newif\if@colorgrey\@colorgreyfalse
    38 \DeclareOption{grey}{\@colorgreytrue}
    39 
    40 % roman option
    41 \newif\if@roman\@romanfalse
    42 \DeclareOption{roman}{\@romantrue}
    43 
    44 % unused options
    45 \DeclareOption*{
    46   \PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
    47 
    48 % execute default options
    49 \ExecuteOptions{color}
    50 
    51 % process given options
    52 \ProcessOptions\relax
    53 
    54 
    55 %-------------------------------------------------------------------------------
    56 %                style definition
    57 %-------------------------------------------------------------------------------
    58 % symbols used
    59 \renewcommand*{\listitemsymbol}{\textbullet}
    60 
    61 % colors
    62 \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
    63 \definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
    64 \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
    65 \definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
    66 % default blue color
    67   \definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
    68   \definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.65}
    69   \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
    70   \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
    71 \if@colororange
    72   \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
    73   \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
    74   \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
    75   \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
    76 \if@colorgreen
    77   \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
    78   \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
    79   \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
    80   \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
    81 \if@colorred
    82   \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
    83   \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
    84   \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
    85   \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
    86 \if@colorgrey
    87   \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
    88   \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
    89   \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
    90   \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
    91 
    92 % fonts
    93 \if@roman
    94   \AtBeginDocument{\rmfamily}
    95 \else
    96   \AtBeginDocument{\sffamily}\fi
    97 \renewcommand*{\ttdefault}{pcr}
    98 \renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
    99 \renewcommand*{\familynamefont}{\firstnamefont}
   100 \renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
   101 \renewcommand*{\quotefont}{\large\slshape}
   102 \renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
   103 \renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
   104 
   105 % styles
   106 
   107 % maketitle
   108 \renewcommand*{\maketitle}{%
   109   {%
   110     \ifthenelse{\isundefined{\@photo}}%
   111       {}%
   112       {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
   113     \hfill%
   114 %    \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
   115     \raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%
   116   {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
   117 % optional quote
   118   \ifthenelse{\isundefined{\@quote}}%
   119     {}%
   120     {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
   121   }%
   122 
   123 % cv footer
   124 \newif\if@firstfooterelement\@firstfooterelementtrue
   125 \providecommand*{\footersymbol}{}
   126 \renewcommand*{\footersymbol}{%
   127   \if@firstfooterelement%
   128   \else%
   129     { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
   130 \providecommand*{\makefooter}{}
   131 \renewcommand*{\makefooter}{%
   132   \fancypagestyle{plain}{%
   133     \fancyfoot[c]{%
   134       \parbox{0.8\textwidth}{%
   135       \centering%
   136       \addressfont\color{addresscolor}%
   137       \ifthenelse{\isundefined{\@addressstreet}}{}{%
   138         \addresssymbol~\@addressstreet%
   139         \@firstfooterelementfalse%
   140         \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
   141       \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
   142       \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
   143       \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
   144       \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
   145       \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
   146   }%
   147   \pagestyle{plain}}
   148 \AtBeginDocument{\makefooter}
   149 
   150 
   151 \endinput
   152 
   153 
   154 %% end of file `moderncvthemecasual.sty'.