答案1
该模板基于yaac-另一份很棒的简历,并将照片放置在由 Ti 定义的形状中钾Z。
\newcommand\idphoto{
\tikz\path[fill overzoom image={\@photo}]rectangle (\linewidth,1.2\linewidth);
}
如果使用宽度大于高度的照片,照片就会被遮盖。
% !TEX TS-program = lualatex
\documentclass[alternative]{documentMETADATA}
\name{Jane}{Doe}
\tagline{Electrical Engineer | Instructor}
\photo{4cm}{example-image-16x9}
\socialinfo{
\email{[email protected]}
}
\begin{document}
\makecvheader
\end{document}
为了避免这种情况,您可以重新定义\idphoto
以简单地使用\includegraphics
。
% !TEX TS-program = lualatex
\documentclass[alternative]{documentMETADATA}
\name{Jane}{Doe}
\tagline{Electrical Engineer | Instructor}
\photo{4cm}{example-image-16x9}
\socialinfo{
\email{[email protected]}
}
\makeatletter
\renewcommand\idphoto{%
\includegraphics[width=\@photodiameter,height=\@photodiameter,keepaspectratio]{\@photo}}
\makeatother
\begin{document}
\makecvheader
\end{document}