diff options
author | Karl Berry <karl@freefriends.org> | 2012-07-30 22:38:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-07-30 22:38:11 +0000 |
commit | bcf694a0835cc008732c04f517813ab94f02963e (patch) | |
tree | 242e42751669b0d411e969f6c2678502e3218033 /Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty | |
parent | c8840db08daf67f916ca0e0613031351add227dc (diff) |
moderncv (30jul12)
git-svn-id: svn://tug.org/texlive/trunk@27250 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 | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty index 861ecccbe36..81e420f6254 100644 --- a/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty @@ -10,7 +10,7 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{moderncvstylecasual}[2012/03/26 v1.0 modern curriculum vitae and letter style scheme: casual] +\ProvidesPackage{moderncvstylecasual}[2012/07/30 v1.1.1 modern curriculum vitae and letter style scheme: casual] %------------------------------------------------------------------------------- @@ -30,7 +30,7 @@ % commands % footer symbol used to separate footer elements \newcommand*{\footersymbol}{% - {~~~\textbullet~~~}}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :( + {~~~{\rmfamily\textbullet}~~~}}% the \rmfamily is required to force Latin Modern fonts when using sans serif, as OMS/lmss/m/n is not defined and gets substituted by OMS/cmsy/m/n % internal command to add an element to the footer % it collects the elements in a temporary box, and checks when to flush the box \newsavebox{\footerbox}% @@ -58,7 +58,8 @@ \newcommand*{\flushfooter}{% \strut\usebox{\footerbox}% \savebox{\footerbox}{}% - \savebox{\footertempbox}{}} + \savebox{\footertempbox}{} + \setlength{\footerboxwidth}{0pt}} %------------------------------------------------------------------------------- @@ -70,6 +71,8 @@ % commands \renewcommand*{\makecvtitle}{% + % recompute lengths (in case we are switching from letter to resume, or vice versa) + \recomputecvlengths% % ensure footer with personal information \makecvfooter% % optional picture @@ -101,7 +104,7 @@ \setlength{\footerwidth}{0.8\textwidth}% \fancypagestyle{plain}{% \fancyfoot[c]{% - \parbox{\footerwidth}{% + \parbox[b]{\footerwidth}{% \centering% \color{color2}\addressfont% \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}% @@ -112,7 +115,8 @@ \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}% \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}% \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}% - \flushfooter}}}% + \ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used + }}}% \pagestyle{plain}} @@ -146,10 +150,11 @@ \setlength{\footerwidth}{0.8\textwidth}% \fancypagestyle{plain}{% \fancyfoot[c]{% - \parbox{\footerwidth}{% + \parbox[b]{\footerwidth}{% \centering% \addressfont\color{color2}% - {\bfseries\upshape\@firstname~\@familyname}\\ + \vspace{-\baselineskip}% to cancel out the extra vertical space taken by the name (below) and ensure perfect alignment of letter and cv footers + \strut{\bfseries\upshape\@firstname~\@familyname}\\% the \strut is required to ensure the line is exactly \baselineskip tall \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}% \ifthenelse{\equal{\@addresscity}{}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtrue\\}% if \addresstreet is defined, \addresscity will always be defined but could be empty \ifthenelse{\isundefined{\@mobile}}{}{\addtofooter{\mobilesymbol\@mobile}}% @@ -158,7 +163,8 @@ \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}% \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}% \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}% - \flushfooter}}}% + \ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used + }}}% \pagestyle{plain}} \renewcommand*{\makeletterclosing}{ @@ -167,7 +173,7 @@ \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfil% - {\color{color2}\itshape Enclosure: \@enclosure}}% + {\color{color2}\itshape\enclname: \@enclosure}}% \vfil} |