答案1
最简单的解决方案可能是\usepackage{tikz}
及其tikzpicture
环境。删除\makecvtitle
宏并将其替换为以下内容:
%\makecvtitle
\begin{tikzpicture}[x=1in,y=1in]
% the colored background - as wide as the text, one inch high
\fill[blue](0,1) rectangle ++(\textwidth,1in);
% the picture, with a 5 pt wide white margin
\node[inner sep=5pt,fill=white] at (0.75\textwidth,1in) {\includegraphics[width=1in]{example-image}};
% the large white text on the colored background
% some right-aligned text below the colored bar
\node[font=\Large,text=white] at (0.25\textwidth,1.2in) {My name here};
\node[align=right] at (0.5\textwidth,0.5in) {Stuff about me\\more stuff about me};
\end{tikzpicture}
\vspace{0.5in} % some vertical space before the regular text starts