diff --git a/CHANGELOG b/CHANGELOG index 1661e1b..701e551 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ version 0.19 (xx Feb 2012) - reintroduced the ability to force the width reserved to display the name in the resume header for the classic style (\maketitlenamewidth). - improved the pdf metadata, as reported by S. Wunsch (launchpad bug #922476). + - fixed a footersymbol bug in the casual style when no mobile number was given, + as reported by S. Wunsch (launchpad bug #922470). version 0.18 (05 Feb 2012) - corrected the handling of pdf bookmarks, as suggested on stackexchange by diff --git a/examples/template-es.pdf b/examples/template-es.pdf index 64aa6d5..979d43b 100644 Binary files a/examples/template-es.pdf and b/examples/template-es.pdf differ diff --git a/examples/template-zh.pdf b/examples/template-zh.pdf index 662a836..eaa1466 100644 Binary files a/examples/template-zh.pdf and b/examples/template-zh.pdf differ diff --git a/examples/template.pdf b/examples/template.pdf index a704cdf..606a7e1 100644 Binary files a/examples/template.pdf and b/examples/template.pdf differ diff --git a/examples/template_banking_black.pdf b/examples/template_banking_black.pdf index 1b10c76..8c85088 100644 Binary files a/examples/template_banking_black.pdf and b/examples/template_banking_black.pdf differ diff --git a/examples/template_banking_red.pdf b/examples/template_banking_red.pdf index 7143db7..db62c5d 100644 Binary files a/examples/template_banking_red.pdf and b/examples/template_banking_red.pdf differ diff --git a/examples/template_casual_orange.pdf b/examples/template_casual_orange.pdf index 452996d..dd5a331 100644 Binary files a/examples/template_casual_orange.pdf and b/examples/template_casual_orange.pdf differ diff --git a/examples/template_classic_green.pdf b/examples/template_classic_green.pdf index bcfcdbc..651c80d 100644 Binary files a/examples/template_classic_green.pdf and b/examples/template_classic_green.pdf differ diff --git a/examples/template_multibib.pdf b/examples/template_multibib.pdf index d5d4aa2..d7a349b 100644 Binary files a/examples/template_multibib.pdf and b/examples/template_multibib.pdf differ diff --git a/moderncvstylecasual.sty b/moderncvstylecasual.sty index 5dd5ae6..12b7ff8 100644 --- a/moderncvstylecasual.sty +++ b/moderncvstylecasual.sty @@ -41,17 +41,23 @@ \newsavebox{\footertempbox}% \newlength{\footerwidth}% \newlength{\footerboxwidth}% +\newif\if@firstfooterelement\@firstfooterelementtrue% % adds an element to the footer, separated by footersymbol % usage: \addtofooter[footersymbol]{element} \newcommand*{\addtofooter}[2][\footersymbol]{% - \savebox{\footertempbox}{\usebox{\footerbox}#1#2}% + \if@firstfooterelement% + \savebox{\footertempbox}{\usebox{\footerbox}#2}% + \else% + \savebox{\footertempbox}{\usebox{\footerbox}#1#2}\fi% \settowidth{\footerboxwidth}{\usebox{\footertempbox}}% \ifnum\footerboxwidth<\footerwidth% - \savebox{\footerbox}{\usebox{\footertempbox}} + \savebox{\footerbox}{\usebox{\footertempbox}}% + \@firstfooterelementfalse% \else% \flushfooter{}\\% \savebox{\footerbox}{#2}% - \savebox{\footertempbox}{#2}\fi} + \savebox{\footertempbox}{#2}% + \@firstfooterelementfalse\fi} % internal command to flush the footer \newcommand*{\flushfooter}{% \strut\usebox{\footerbox}% @@ -65,8 +71,8 @@ \centering% \color{color2}\addressfont% \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}% - \ifthenelse{\isundefined{\@addresscity}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter}% - \ifthenelse{\isundefined{\@mobile}}{}{\addtofooter[]{\mobilesymbol\@mobile}}% + \ifthenelse{\isundefined{\@addresscity}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtrue\\}% + \ifthenelse{\isundefined{\@mobile}}{}{\addtofooter{\mobilesymbol\@mobile}}% \ifthenelse{\isundefined{\@phone}}{}{\addtofooter{\phonesymbol\@phone}}% \ifthenelse{\isundefined{\@fax}}{}{\addtofooter{\faxsymbol\@fax}}% \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%