summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-20 01:11:12 +0000
committerKarl Berry <karl@freefriends.org>2011-12-20 01:11:12 +0000
commitbab3fcb32bd0ad0316456ecb37ef4b3609064f79 (patch)
tree124f2e9629f1ff9cf7fc5cf36fd157a63c21e901 /Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
parentb900237b52142fc387930db473e26d901673a414 (diff)
moderncv 0.15 (19dec11)
git-svn-id: svn://tug.org/texlive/trunk@24875 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.sty85
1 files changed, 85 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..c6e4780351a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
@@ -0,0 +1,85 @@
+%% start of file `moderncvstylecasual.sty'.
+%% 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,
+% available at http://www.latex-project.org/lppl/.
+
+
+%-------------------------------------------------------------------------------
+% identification
+%-------------------------------------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{moderncvstylecasual}[2011/12/19 v0.15 modern curriculum vitae style scheme: casual]
+
+
+%-------------------------------------------------------------------------------
+% required packages
+%-------------------------------------------------------------------------------
+
+
+%-------------------------------------------------------------------------------
+% package options
+%-------------------------------------------------------------------------------
+\RequirePackage{moderncvstyleclassic}
+
+
+%-------------------------------------------------------------------------------
+% style scheme definition
+%-------------------------------------------------------------------------------
+% fonts
+\renewcommand*{\namefont}{\fontsize{38}{40}\mdseries\upshape}
+\renewcommand*{\addressfont}{\small\mdseries\slshape}
+
+% cv footer
+\newif\if@firstfooterelement\@firstfooterelementtrue
+\newcommand*{\footersymbol}{%
+ \if@firstfooterelement%
+ \else%
+ { ~~\color{color2}\textbullet~~~}\fi\@firstfooterelementfalse}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :(
+\renewcommand*{\makefooter}{%
+ \fancypagestyle{plain}{%
+ \fancyfoot[c]{%
+ \parbox{0.8\textwidth}{%
+ \centering%
+ \addressfont\color{color2}%
+ \ifthenelse{\isundefined{\@addressstreet}}{}{%
+ \addresssymbol\@addressstreet%
+ \@firstfooterelementfalse%
+ \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
+ \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol\@mobile\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol\@phone\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol\@fax\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol\emaillink{\@email}\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@homepage}}{}{\footersymbol\homepagesymbol\httplink{\@homepage}\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
+ }%
+ \pagestyle{plain}}
+
+% maketitle
+\renewcommand*{\maketitle}{%
+ \makefooter{}%
+ \newbox{\maketitlepicturebox}%
+ \savebox{\maketitlepicturebox}{%
+ \ifthenelse{\isundefined{\@photo}}%
+ {}%
+ {%
+ \setlength\fboxrule{\@photoframewidth}%
+ \ifdim\@photoframewidth=0pt%
+ \setlength{\fboxsep}{0pt}\fi%
+ {\color{color1}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}}%
+ \usebox{\maketitlepicturebox}%
+ \newlength{\maketitlepicturewidth}\settowidth{\maketitlepicturewidth}{\usebox{\maketitlepicturebox}}%
+ \parbox[b]{\textwidth-\maketitlepicturewidth}{\raggedleft\namefont{\color{color2!50}\@firstname} {\color{color2}\@familyname}}\\[-.35em]% alternate design: \MakeLowercase and no space
+ {\color{color2!50}\rule{\textwidth}{.25ex}\\[2.5em]}%
+% optional quote
+ \ifthenelse{\isundefined{\@quote}}%
+ {}%
+ {{\centering{}\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
+ \par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle
+
+
+\endinput
+
+
+%% end of file `moderncvstylecasual.sty'.