Added a default value for the first optional argument of \cvitemwithcomment in the empty definition of moderncv.cls (to make it work for the empty style)

This commit is contained in:
Xavier Danaux
2012-01-26 01:46:52 +01:00
parent bbc01c8100
commit e89b996e21
2 changed files with 11 additions and 11 deletions

View File

@ -283,7 +283,7 @@
% makes a cv entry with a proficiency comment % makes a cv entry with a proficiency comment
% usage: \cvitemwithcomment[spacing]{header}{text}{comment} % usage: \cvitemwithcomment[spacing]{header}{text}{comment}
\newcommand*{\cvitemwithcomment}[4]{} \newcommand*{\cvitemwithcomment}[4][.25em]{}
% makes a generic hyperlink % makes a generic hyperlink
% usage: \link[optional text]{link} % usage: \link[optional text]{link}

View File

@ -37,26 +37,26 @@
{~~~\textbullet~~~}}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :( {~~~\textbullet~~~}}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :(
% internal command to add an element to the footer % internal command to add an element to the footer
% it collects the elements in a temporary box, and checks when to flush the box % it collects the elements in a temporary box, and checks when to flush the box
\newsavebox{\footertempabox}% \newsavebox{\footerbox}%
\newsavebox{\footertempbbox}% \newsavebox{\footertempbox}%
\newlength{\footerwidth}% \newlength{\footerwidth}%
\newlength{\footerboxwidth}% \newlength{\footerboxwidth}%
% 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{\footertempbbox}{\usebox{\footertempabox}#1#2}% \savebox{\footertempbox}{\usebox{\footerbox}#1#2}%
\settowidth{\footerboxwidth}{\usebox{\footertempbbox}}% \settowidth{\footerboxwidth}{\usebox{\footertempbox}}%
\ifnum\footerboxwidth<\footerwidth% \ifnum\footerboxwidth<\footerwidth%
\savebox{\footertempabox}{\usebox{\footertempbbox}} \savebox{\footerbox}{\usebox{\footertempbox}}
\else% \else%
\flushfooter{}\\% \flushfooter{}\\%
\savebox{\footertempabox}{#2}% \savebox{\footerbox}{#2}%
\savebox{\footertempbbox}{#2}\fi} \savebox{\footertempbox}{#2}\fi}
% internal command to flush the footer % internal command to flush the footer
\newcommand*{\flushfooter}{% \newcommand*{\flushfooter}{%
\strut\usebox{\footertempabox}% \strut\usebox{\footerbox}%
\savebox{\footertempabox}{}% \savebox{\footerbox}{}%
\savebox{\footertempbbox}{}} \savebox{\footertempbox}{}}
\renewcommand*{\makefooter}{% \renewcommand*{\makefooter}{%
\setlength{\footerwidth}{0.8\textwidth}% \setlength{\footerwidth}{0.8\textwidth}%
\fancypagestyle{plain}{% \fancypagestyle{plain}{%