如何在 Europass CV 中添加出生地?

如何在 Europass CV 中添加出生地?

命令\evcdateofbirth针对的是出生日期。

有没有出生地的选项?命令\ecvplaceofbirth不起作用。

类似这个问题: 如何在 Europass CV 中添加 Skype 图标?

答案1

给定的类europecv2013遵循官方的 europass cv 文档不知道出生地。正如我所评论的,我认为改变这一点并不是一个好主意,但是......

首先,您需要在代码中添加以下两行:

\newcommand*{\ecvplaceofbirth}[1]{\def\ecv@placebirth{#1}} % <===================
\newcommand*{\ecv@placebirthkey}{Place of Birth} 

\ecvplaceofbirth这定义了您可以在简历中使用的变量......

现在的问题是将这些新信息整合到当前的 cv 中。因此,我们必须更改原始代码中的几行,以便能够根据给定的数据构建所需的行:

\ecvgender{Male}
\ecvnationality{name of country}
\ecvdateofbirth{21 January 1974}
\ecvplaceofbirth{Place} 

代码的相关部分是我添加了出生地点的以下几行,结果如下\ifx\@empty\ecv@placebirth

\ifx\@empty\ecv@gender
  \ifx\@empty\ecv@birth
    \ifx\@empty\ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %false false false false
      \else                                                             %false false false true
        \textcolor{curious-blue}{\ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %false false true ?
      \textcolor{curious-blue}{\ecv@placebirthkey} \ecv@placebirth \par\vspace{5pt}
      \ifx\@empty\ecv@nationality                                       %false false true false
      \else                                                             %false false true true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi% \ecv@placebirth
  \else                                                                 %false true ?     ?
    \textcolor{curious-blue}{\ecv@birthkey} \ecv@birth
    \ifx\@empty\ecv@placebirth                                          %false true false ?
      \ifx\@empty\ecv@nationality                                       %false true false false
        \par\vspace{5pt}
      \else                                                             %false true false true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %false true true ?
      \textcolor{curious-blue}{\ | \ecv@placebirthkey} \ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %false true true false
        \par\vspace{5pt}
      \else                                                             %false true true true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi% \ecv@placebirth
  \fi% \ecv@birth
\else                                                                   %true ?     ?     ?
  \textcolor{curious-blue}{\ecv@genderkey} \ecv@gender
  \ifx\@empty\ecv@birth                                                 %true false ?     ?
    \ifx\@empty\ecv@placebirth                                          %true false false ?
      \ifx\@empty\ecv@nationality                                       %true false false false
        \par\vspace{5pt}
      \else                                                             %true false false true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %true true true ? 
      \textcolor{curious-blue}{\ | \ecv@placebirthkey} \ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %true true true false
        \par\vspace{5pt}
      \else                                                             %true true true true
       \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi
  \else                                                                 %true true ?    ?
    \textcolor{curious-blue}{\ | \ecv@birthkey} \ecv@birth
    \ifx\@empty\ecv@placebirth                                          %true true false ?
      \ifx\@empty\ecv@nationality                                       %true true false false
        \par\vspace{5pt}
      \else                                                             %true true false true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %true true true ?
      \textcolor{curious-blue}{\ | \ecv@placebirthkey} \ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %true true true false
        \par\vspace{5pt}
      \else                                                             %true true true true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi% \ecv@placebirth
  \fi% \ecv@birth
\fi% \ecv@gender

因此,使用以下完整的 MWE(我将新代码添加到 cv.tex文件中以避免更改原始文件europecv2013.cls):

\documentclass[helvetica,english,logo,notitle,totpages,utf8]{europecv2013}
\usepackage{graphicx}
\usepackage[a4paper,top=1.2cm,left=1.2cm,right=1.2cm,bottom=2.5cm]{geometry}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}

\makeatletter
\newcommand*{\ecvplaceofbirth}[1]{\def\ecv@placebirth{#1}} % <===================
\newcommand*{\ecv@placebirthkey}{Place of Birth}

\renewcommand{\ecvpersonalinfo}[1][20pt]{%
& \tabularnewline[20pt]
\textcolor{torea-bay}{\MakeUppercase{\ecv@infosectionkey}} & \LARGE\ecv@name\tabularnewline[10pt]
\ifx\@empty\ecvdrawpicture &\else
\ecv@beforepic\ecvdrawpicture\ecv@afterpic &
\fi
\ifx\@empty\ecv@address\else
$\begin{array}{@{}l}\includegraphics[width=\ecv@iconwidth]{ic_address}\end{array}$\ecv@address\par\vspace{5pt}
\fi
\ifx\@empty\ecv@mobile\else
$\begin{array}{@{}l}\includegraphics[width=\ecv@iconwidth]{ic_mobile}\end{array}$\ecv@mobile
 \ifx\@empty\ecv@telephone\else\qquad\includegraphics[width=\ecv@iconwidth]{ic_phone_home} \ecv@telephone\fi
\par\vspace{5pt}
\fi
\ifx\@empty\ecv@emailid\else
    $\begin{array}{@{}l}\includegraphics[width=\ecv@iconwidth]{ic_email}\end{array}$
    \ifx\@empty\ecv@emailtext
        \href{mailto:\ecv@emailid}{\foreignlanguage{english}{\ecv@emailid}}
    \else
        \href{mailto:\ecv@emailid}{\ecv@emailtext}
    \fi
    \par\vspace{5pt}
\fi
\ifx\@empty\ecv@homepage\else
$\begin{array}{@{}l}\includegraphics[width=\ecv@iconwidth]{ic_url}\end{array}$\ecv@homepage\par\vspace{5pt}
\fi
\ifx\@empty\ecv@linkedin\else
$\begin{array}{@{}l}\includegraphics[width=\ecv@iconwidth]{ic_linkedin}\end{array}$\ecv@linkedin\par\vspace{10pt}
\fi
\ifx\@empty\ecv@gender
  \ifx\@empty\ecv@birth
    \ifx\@empty\ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %false false false false
      \else                                                             %false false false true
        \textcolor{curious-blue}{\ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %false false true ?
      \textcolor{curious-blue}{\ecv@placebirthkey} \ecv@placebirth \par\vspace{5pt}
      \ifx\@empty\ecv@nationality                                       %false false true false
      \else                                                             %false false true true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi% \ecv@placebirth
  \else                                                                 %false true ?     ?
    \textcolor{curious-blue}{\ecv@birthkey} \ecv@birth
    \ifx\@empty\ecv@placebirth                                          %false true false ?
      \ifx\@empty\ecv@nationality                                       %false true false false
        \par\vspace{5pt}
      \else                                                             %false true false true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %false true true ?
      \textcolor{curious-blue}{\ | \ecv@placebirthkey} \ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %false true true false
        \par\vspace{5pt}
      \else                                                             %false true true true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi% \ecv@placebirth
  \fi% \ecv@birth
\else                                                                   %true ?     ?     ?
  \textcolor{curious-blue}{\ecv@genderkey} \ecv@gender
  \ifx\@empty\ecv@birth                                                 %true false ?     ?
    \ifx\@empty\ecv@placebirth                                          %true false false ?
      \ifx\@empty\ecv@nationality                                       %true false false false
        \par\vspace{5pt}
      \else                                                             %true false false true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %true true true ? 
      \textcolor{curious-blue}{\ | \ecv@placebirthkey} \ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %true true true false
        \par\vspace{5pt}
      \else                                                             %true true true true
       \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi
  \else                                                                 %true true ?    ?
    \textcolor{curious-blue}{\ | \ecv@birthkey} \ecv@birth
    \ifx\@empty\ecv@placebirth                                          %true true false ?
      \ifx\@empty\ecv@nationality                                       %true true false false
        \par\vspace{5pt}
      \else                                                             %true true false true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \else                                                               %true true true ?
      \textcolor{curious-blue}{\ | \ecv@placebirthkey} \ecv@placebirth
      \ifx\@empty\ecv@nationality                                       %true true true false
        \par\vspace{5pt}
      \else                                                             %true true true true
        \textcolor{curious-blue}{\ | \ecv@nationalitykey} \ecv@nationality \par\vspace{5pt}
      \fi% \ecv@nationality
    \fi% \ecv@placebirth
  \fi% \ecv@birth
\fi% \ecv@gender

\tabularnewline[#1]
}
\makeatother


\ecvname{Name }
\ecvaddress{House No }
\ecvtelephone[+00000000]{+00000000}
\ecvemail{[email protected]}
\ecvlinkedin{\href{http://ae.linkedin.com/pub/abc}{ae.linkedin.com/pub/abc /32/2aa/a83/}}
\ecvgender{Male}
\ecvnationality{name of country}
\ecvdateofbirth{21 January 1974}
\ecvplaceofbirth{Place}
\ecvbeforepicture{\ecvspace{-0.8cm}}
\ecvpicture[height=3.5cm, width=3cm]{example-image-a}
%\ecvafterpicture{\ecvspace{4.0cm}}

\ecvfootnote{© European Union, 2002-2013 |    http://europass.cedefop.europa.eu}
%\ecvbeforepicture{\raggedleft}
%\ecvpicture[width=2.5cm]{fototessera}
%\ecvafterpicture{\ecvspace{-37mm}}


\begin{document}
\selectlanguage{english}

\begin{europecv}
\ecvpersonalinfo[10pt]

\ecvposition{Job applied for}{ }

\ecvsection{Work experience}
 \ecvworkexperience{September 2009 -- September 2012}{ Research  Assistant}{Abc University}{city}{}

\ecvsection{Education and training}
 \ecveducation{2005 -- 2008}{Master of Science }{Abc University,City }{Thesis Title: }{}
 \ecveducation{2001 -- 2005}{Bachelor of Science }{Abc City}{Studies focused }{}

\ecvsection{Thesis Abstract}
 \ecvitem{Thesis Abstract:}{The thesis describes}

\ecvsection{Research Interest}
 \ecveducation{}{}{ Computational Fluid Dynamics}{}{}

\ecvsection{Personal skills}
 \ecvmothertongue[20pt]{English, German}
 \ecvlanguageheader
 \ecvlanguage{English}{C1}{C2}{C1}{C2}{C1}
 %\ecvlastlanguage{German}{A2}{A2}{A2}{A2}{A2}
 \ecvlanguagefooter[10pt]
 %\ecvitem[10pt]{Communication skills}{}
 \ecvitem[10pt]{Computer skills}{\LaTeX, Tikz, jPicEdt, Matlab, Mathematica, C/C++, \LaTeX Draw, Mayura Draw, MS Office.}
 \ecvitem[10pt]{Hobbies}{ Chess, Movies, Photography, Watching Sports Channels}

\end{europecv}
\end{document}

以及生成的pdf:

第一页的顶部

相关内容