如何在 EuroPass CV 中添加条形码

如何在 EuroPass CV 中添加条形码

我想在 EuroPass CV 中添加条形码,并在照片后注明申请编号。现在,我可以使用 minipage 来实现这一点,但它实际上会将文本向下推。

这是我的乳胶代码:

\documentclass[helvetica,openbib,nologo,notitle,noflag,totpages]{europecv}                
\usepackage[T1]{fontenc}                
\usepackage{graphicx}                
\usepackage[a4paper,top=1.27cm,left=1cm,right=1cm,bottom=2cm]{geometry}                
\usepackage[english]{babel}                
\usepackage{url}                
\usepackage{makebarcode}                


\ecvname{Doe, Joe}                
\ecvfootername{Joe Doe}                
\ecvaddress{Nowhere in London, England, UK}                
\ecvtelephone{12345678}                
\ecvfax{12345678}                
\ecvemail{\url{[email protected]}}                
\ecvnationality{English}                
\ecvdateofbirth{Dec 24 1990}                
\ecvgender{male}                
\ecvbeforepicture{                
\raggedleft                
}                
\ecvpicture[height=3cm]{lion.png}                
\ecvafterpicture{                
\tabularnewline                
\begin{minipage}{19.5cm}                
\flushright                
\fbox{                
\barcode[code=2/5-Industrial]{012345678912}                
}                
\end{minipage}                
\ecvspace{-3.5cm}                
}                
\ecvfootnote{Some Footnote}                

\begin{document}                
\selectlanguage{english}                

\begin{europecv}                
\ecvpersonalinfo[5pt]                

\ecvsection{Work experience}                

\ecvitem{Date}{2010 -- 2013}                
\ecvitem{Occupation or position held}{CV writer, Very Big Company}                

\ecvsection{Education and training}                

\ecvitem{Place and Date}{Very Big University, 2008 -- 2010}                
\ecvitem[10pt]{Title of qualification awarded}{MSc in Nothinglogy}                

\ecvitem{Place and Date}{Big University, 2005 -- 2008}                
\ecvitem{Title of qualification awarded}{BSc in Nothinglogy}                


\ecvsection{Personal skills and~competences}                

\ecvmothertongue[5pt]{English}                
\ecvitem{\large Other language(s)}{French, German}                
\ecvlanguageheader{(*)}                
\ecvlanguage{French}{good}{good}{good}{good}{good}                
\ecvlanguage{German}{good}{good}{good}{good}{good}                
\ecvlanguagefooter[10pt]{(*)}                

\ecvitem[10pt]{\large Social skills and competences}{Replace this text by a description of these competences and indicate where they were acquired (remove if not relevant).}                
\ecvitem[10pt]{\large Organisational skills and competences}{Replace this text by a description of these competences and indicate where they were acquired (remove if not relevant).}                
\ecvitem[10pt]{\large Technical skills and competences}{Replace this text by a description of these competences and indicate where they were acquired (remove if not relevant).}                
\ecvitem[10pt]{\large Computer skills and competences}{Replace this text by a description of these competences and indicate where they were acquired (remove if not relevant).}                
\ecvitem[10pt]{\large Artistic skills and competences}{Replace this text by a description of these competences and indicate where they were acquired (remove if not relevant).}                
\ecvitem[10pt]{\large Other skills and competences}{Replace this text by a description of these competences and indicate where they were acquired (remove if not relevant).}                
\ecvitem{\large Driving licence(s)}{State here whether you hold a driving licence and if so for which categories of vehicle. (Remove if not relevant).}                

\ecvsection{Additional information}                
\ecvitem[10pt]{}{Include here any other information that may be relevant, for example contact persons, references, etc. (Remove heading if not relevant).}                

\ecvitem{}{\textbf{Personal interests}}                
\ecvitem[10pt]{}{Musics, Movies, Golf}                

\ecvitem{}{\textbf{References}}                
\ecvitem{}{Person One, Person Two}                

\end{europecv}                


\end{document} 

我没有更改样式类。我附上了当前简历的样子。在此处输入图片描述

个人信息上方有一个空白区域,这是我添加 minipage 后创建的。如何删除它。如果您有其他方法,请分享。

答案1

您可以将以下几行添加到您的序言中:

\usepackage{xpatch}
\makeatletter
\xpatchcmd{\ecv@picture}{%
\includegraphics[#1]{#2}}{%
\raisebox{0pt}[0.65\height]{\includegraphics[#1]{#2}}}{}{}
\makeatother

在此处输入图片描述

相关内容