gmazzamuto / europasscv

Unofficial LaTeX class for the new version of the Europass curriculum vitae
116 stars 37 forks source link

Proper support for References & doublecolumns #58

Open skwde opened 4 years ago

skwde commented 4 years ago

It would be nice to have commands for doublecolumns and references similar to this moderncv example on stackoverflow. I.e. something like:

\newcommand{\ecvdoublecolumn}[4]{%
    \begin{minipage}[t]{#1}#2\end{minipage}%
    \hfill%
    \begin{minipage}[t]{#3}#4\end{minipage}%
}

and

\newcommand*{\mobilesymbol}{\raisebox{-2\lineskip}{\includegraphics[width=0.4cm]{mobile_europass_icon.pdf}}\hspace{0.2mm}}
\newcommand*{\phonesymbol}{\raisebox{-2\lineskip}{\includegraphics[width=0.4cm]{telephone_europass_icon.pdf}}\hspace{0.2mm}}
\newcommand*{\emailsymbol}{\raisebox{-2\lineskip}{\includegraphics[width=0.4cm]{mail_europass_icon.pdf}}\hspace{0.2mm} }
\newcommand*{\imsymbol}{\raisebox{-2\lineskip}{\includegraphics[width=0.4cm]{im_europass_icon.pdf}}\hspace{0.2mm}}

\newcommand*{\emailonly}[1]{\setul{.5pt}{.4pt}\href{mailto:#1}{\ul{\mbox{#1}}}}% \emailsymbol~\href{mailto:#1}{\mbox{#1}}
\newcommand*{\email}[1]{\emailsymbol~\emailonly{#1}}% \emailsymbol~\href{mailto:#1}{\mbox{#1}}

\newcommand{\ecvreference}[7]{%
    \textcolor{ecvhighlightcolor}{#1}\newline% Name
    \notblank{#2}{#2\newline}{}% % \addresssymbol~
    \notblank{#3}{#3\newline}{}%
    \notblank{#4}{#4\newline}{}%
    \notblank{#5}{#5\newline}{}%
    \notblank{#6}{\email{#6}\newline}{}%
    \notblank{#7}{\phonesymbol~#7}{}%
}