我想在 中的 CV 部分后添加标题为“求职信”的求职信moderncv
。我使用classic
样式并尝试\title{Cover letter}
在 之后\clearpage
和之前添加\makelettertitle
,但它没有打印任何内容。有人解决了这个问题吗?
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
\title{Curriculum vitae}
\name{John}{Doe}
\begin{document}
\thispagestyle{empty}
\pagestyle{empty}
\makecvtitle
\title{Cover letter}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State}
\date{\today}
\opening{Dear Sir or Madam,}
\closing{Sincerely yours,}
\makelettertitle
\end{document}
我想在申请的求职信部分打印与简历标题相同的字体/大小的“求职信”标题。
答案1
更新(moderncv
v2.0)
对于moderncv
v2.0,需要修补的命令不再是\makelettertitle
,\makeletterhead
所以此版本的正确修补程序是
\makeatletter
\patchcmd{\makeletterhead}
{\recomputeletterlengths}
{\recomputeletterlengths\titlestyle{\@title}\par\vspace{2cm}}
{}
{}
\makeatother
原始答案(适用于旧版本moderncv
)
在你的序言中添加以下几行:
\makeatletter
\patchcmd{\makelettertitle}
{\recomputeletterlengths}
{\recomputeletterlengths\titlestyle{\@title}\par\vspace{2cm}}
{}
{}
\makeatother
梅威瑟:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\makeatletter
\patchcmd{\makelettertitle}
{\recomputeletterlengths}
{\recomputeletterlengths\titlestyle{\@title}\par\vspace{2cm}}
{}
{}
\makeatother
\usepackage[scale=0.75]{geometry}
\title{Curriculum vitae}
\name{John}{Doe}
\begin{document}
\thispagestyle{empty}
\pagestyle{empty}
\makecvtitle
\clearpage
\title{Cover letter}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State}
\date{\today}
\opening{Dear Sir or Madam,}
\closing{Sincerely yours,}
\makelettertitle
\end{document}
输出: