我想以 的样式在图片下方添加附加信息moderncv
,casual
如图所示。现在,我天真地将此信息添加到moderncvstylecasual.sty
命令中\makecvtitle
。当然,这会导致可选标题向下移动,我希望它们彼此相邻。正确的做法是什么?
答案1
下面的补丁改为[ \smash`] 的样式\makecvtitle
。这样就不会影响其他简历内容的垂直位移。casual
moderncv](http://ctan.org/pkg/moderncv) inserts a sub-photo caption with zero height (via
\usepackage{etoolbox}
\makeatletter
\patchcmd{\makecvtitle}% <cmd>
{\usebox{\makecvtitlepicturebox}}% <search>
{\leavevmode\rlap{\smash{\small% Adjust font style/size
\begin{tabular}[t]{@{}p{\@photowidth}@{}}
\\ \rule{0pt}{1.5\normalbaselineskip}%
some \\ picture \\ information% Your picture information here
\end{tabular}}}%
\usebox{\makecvtitlepicturebox}}% <replace>
{}{}% <success><failure>
\makeatother
将上述代码片段放在你的序言中后 \moderncvstyle{casual}
和前 \begin{document}
。