如何將照片包含到moderncv?

如何將照片包含到moderncv?

我目前正在使用這行程式碼來使用 Moderncv 顯示我的個人資訊:

\firstname{x}
\familyname{xx}
\title{xxx}              
\address{xxx}{xxx}    
\email{xxx}
\mobile{+xxx} 
\extrainfo{xxx}
\photo[64pt][0.4pt]{xx.jpg}

\makeatletter
\newcommand\personaltitle{%
  \def\phonesdetails{}%
  \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
    \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
 \par\noindent\begin{tabular}{@{}l@{}}
     {\LARGE\textbf{\@firstname\ \@lastname}} \\
     \@addressstreet \\
     \@addresscity  \\
     \@extrainfo \\
     \mobilephonesymbol:\ \collection@phones@item  \\
     \emailsymbol:\ \emaillink{\@email} \\
 \end{tabular}\par%\noindent\rule{\linewidth}{1pt}\par%
}

但添加該\photo...行不會在右上角顯示照片。我該如何修復它?

相關內容