Fixed a footersymbol in the casual style when no mobile number was given

This commit is contained in:
Xavier Danaux
2012-02-06 16:50:10 +01:00
parent fc1f3d9d60
commit 2e8552cfc8
10 changed files with 13 additions and 5 deletions

View File

@ -2,6 +2,8 @@ version 0.19 (xx Feb 2012)
- reintroduced the ability to force the width reserved to display the name - reintroduced the ability to force the width reserved to display the name
in the resume header for the classic style (\maketitlenamewidth). in the resume header for the classic style (\maketitlenamewidth).
- improved the pdf metadata, as reported by S. Wunsch (launchpad bug #922476). - 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) version 0.18 (05 Feb 2012)
- corrected the handling of pdf bookmarks, as suggested on stackexchange by - corrected the handling of pdf bookmarks, as suggested on stackexchange by

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -41,17 +41,23 @@
\newsavebox{\footertempbox}% \newsavebox{\footertempbox}%
\newlength{\footerwidth}% \newlength{\footerwidth}%
\newlength{\footerboxwidth}% \newlength{\footerboxwidth}%
\newif\if@firstfooterelement\@firstfooterelementtrue%
% adds an element to the footer, separated by footersymbol % adds an element to the footer, separated by footersymbol
% usage: \addtofooter[footersymbol]{element} % usage: \addtofooter[footersymbol]{element}
\newcommand*{\addtofooter}[2][\footersymbol]{% \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}}% \settowidth{\footerboxwidth}{\usebox{\footertempbox}}%
\ifnum\footerboxwidth<\footerwidth% \ifnum\footerboxwidth<\footerwidth%
\savebox{\footerbox}{\usebox{\footertempbox}} \savebox{\footerbox}{\usebox{\footertempbox}}%
\@firstfooterelementfalse%
\else% \else%
\flushfooter{}\\% \flushfooter{}\\%
\savebox{\footerbox}{#2}% \savebox{\footerbox}{#2}%
\savebox{\footertempbox}{#2}\fi} \savebox{\footertempbox}{#2}%
\@firstfooterelementfalse\fi}
% internal command to flush the footer % internal command to flush the footer
\newcommand*{\flushfooter}{% \newcommand*{\flushfooter}{%
\strut\usebox{\footerbox}% \strut\usebox{\footerbox}%
@ -65,8 +71,8 @@
\centering% \centering%
\color{color2}\addressfont% \color{color2}\addressfont%
\ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}% \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
\ifthenelse{\isundefined{\@addresscity}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter}% \ifthenelse{\isundefined{\@addresscity}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtrue\\}%
\ifthenelse{\isundefined{\@mobile}}{}{\addtofooter[]{\mobilesymbol\@mobile}}% \ifthenelse{\isundefined{\@mobile}}{}{\addtofooter{\mobilesymbol\@mobile}}%
\ifthenelse{\isundefined{\@phone}}{}{\addtofooter{\phonesymbol\@phone}}% \ifthenelse{\isundefined{\@phone}}{}{\addtofooter{\phonesymbol\@phone}}%
\ifthenelse{\isundefined{\@fax}}{}{\addtofooter{\faxsymbol\@fax}}% \ifthenelse{\isundefined{\@fax}}{}{\addtofooter{\faxsymbol\@fax}}%
\ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}% \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%