Modified the code of \moderncvhead, \moderncvbody and \moderncvfoot to a number as argument

This commit is contained in:
Xavier Danaux
2014-02-22 22:46:40 -05:00
parent 0889a274f0
commit c499239b29
4 changed files with 14 additions and 15 deletions

View File

@ -316,19 +316,19 @@
\RequirePackage[#1]{moderncvstyle#2}} \RequirePackage[#1]{moderncvstyle#2}}
% loads a header variant % loads a header variant
% usage: \moderncvheader{<header variant number>} % usage: \moderncvhead{<header variant number>}
\newcommand*{\moderncvheader}[1]{ \newcommand*{\moderncvhead}[1]{
\RequirePackage{moderncvheader#1}} \expandafter\RequirePackage\expandafter{\expandafter moderncvhead\romannumeral #1}}
% loads a body variant % loads a body variant
% usage: \moderncvbody{<body variant number>} % usage: \moderncvbody{<body variant number>}
\newcommand*{\moderncvbody}[1]{ \newcommand*{\moderncvbody}[1]{
\RequirePackage{moderncvbody#1}} \expandafter\RequirePackage\expandafter{\expandafter moderncvbody\romannumeral #1}}
% loads a footer variant % loads a footer variant
% usage: \moderncvfooter{<footer variant number>} % usage: \moderncvfoot{<footer variant number>}
\newcommand*{\moderncvfooter}[1]{ \newcommand*{\moderncvfoot}[1]{
\RequirePackage{moderncvfooter#1}} \expandafter\RequirePackage\expandafter{\expandafter moderncvfoot\romannumeral #1}}
% loads a color scheme % loads a color scheme
% usage: \moderncvcolor{<color scheme name>} % usage: \moderncvcolor{<color scheme name>}

View File

@ -250,7 +250,7 @@
{\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\% {\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\%
\end{tabular*}% \end{tabular*}%
\ifx&#7&% \ifx&#7&%
\else{\\\vbox{\small#7}}\fi% \else{\\\vbox{\small#7}}\fi%
\par\addvspace{#1}} \par\addvspace{#1}}
\newbox{\cvitemwithcommentmainbox} \newbox{\cvitemwithcommentmainbox}

View File

@ -196,7 +196,7 @@
\ifthenelse{\equal{#6}{}}{}{, #6}% \ifthenelse{\equal{#6}{}}{}{, #6}%
.\strut% .\strut%
\ifx&#7&% \ifx&#7&%
\else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}} \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}
\@initializebox{\cvitemwithcommentmainbox} \@initializebox{\cvitemwithcommentmainbox}
\@initializelength{\cvitemwithcommentmainlength} \@initializelength{\cvitemwithcommentmainlength}

View File

@ -203,12 +203,11 @@
\usebox{\cventryyearbox}% \usebox{\cventryyearbox}%
\end{minipage}% \end{minipage}%
\ifx&#7&% \ifx&#7&%
\else{% \else{%
\newline{}% \newline{}%
\begin{minipage}[t]{\maincolumnwidth}% \begin{minipage}[t]{\maincolumnwidth}%
\small% \small#7%
#7% \end{minipage}}\fi%
\end{minipage}}\fi%
\par\addvspace{#1}} \par\addvspace{#1}}
\newbox{\cvitemwithcommentmainbox} \newbox{\cvitemwithcommentmainbox}