我计划在我的简历中添加第二张图片,例如二维码,除了个人资料图片,如下面来自网络的示例所示。但是,网页没有提供任何乳胶代码。
在 ModernCV 中,有一个\photo
命令,它只设置一张照片。我该如何添加第二张照片?
答案1
您可以使用eso-pic
并叠加照片:
\usepackage{eso-pic}
\newcommand\AtPageUpperMyleft[1]{\AtPageUpperLeft{%
\put(\LenToUnit{1.5cm},\LenToUnit{-3.5cm}){#1}%
}}%
\AddToShipoutPictureBG*{%
\AtPageUpperMyleft{\fboxsep1.5pt\fcolorbox{red}{white}%
{\includegraphics[width=60pt,height=3cm,keepaspectratio]{ctanlion}}}
}
调整尺寸1.5cm
并-3.5cm
使其合适。
\documentclass[12pt,letterpaper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{red}
\usepackage[scale=0.85]{geometry}
%% ↓
\usepackage{eso-pic}
\newcommand\AtPageUpperMyleft[1]{\AtPageUpperLeft{%
\put(\LenToUnit{1.5cm},\LenToUnit{-3.5cm}){#1}%
}}%
\AddToShipoutPictureBG*{%
\AtPageUpperMyleft{\fboxsep1.5pt\fcolorbox{red}{white}%
{\includegraphics[width=60pt,height=3cm,keepaspectratio]{ctanlion}}}
}
% personal data
\name{}{}
\title{}
\address{123 Main Street}{Anytown, USA 20192}
\phone[mobile]{(555) 555-5555}
\email{[email protected]}
\homepage{www.asdasd.com}
\social[linkedin]{asdasdasd}
\social[github]{asdasdasd}
\photo{logo}
\begin{document}
\makecvtitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Selected Projects}
\end{document}