moderncv 求职信收件人数据行长度

moderncv 求职信收件人数据行长度

我正在使用 撰写求职信和简历moderncv。结果输出将收件人信息的前两行换行,形成四行,尽管这是不必要的(在本例中)。我如何更改收件人数据的输出,以便委员会名称只在一行上,学校名称也只在一行上?

以下是 MWE:

\documentclass[12pt,letterpaper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{black}
\renewcommand{\familydefault}{\sfdefault}
\nopagenumbers{}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{lipsum}

%% Personal data
\firstname{New PhD}
\familyname{Scholar}
\address{31415 Pi Street}{Largeville, ND, 58202}
\mobile{+1~(502)~321~1234}
\email{[email protected]}

\begin{document}

% recipient data
\recipient{New Work and Research Studies Search Committee\\E. Pluribus Unum School of Grant Proposals and Other Funding}{Blueberry University\\204 N. Peach Ave.\\Buymore, WI 78115}
\date{\today}
\opening{Dear Committee Members,}
\closing{Regards,}

\makelettertitle
\lipsum
\makeletterclosing
\end{document}

答案1

更新(moderncvv2.0)

对于moderncvv2.0,需要修补的命令不再是\makelettertitle\makeletterhead所以此版本的正确修补程序是

\patchcmd{\makeletterhead}
  {\begin{minipage}[t]{.5\textwidth}}
  {\begin{minipage}[t]{.7\textwidth}}
  {}
  {}

原始答案(适用于旧版本moderncv

您可以修补该命令\makelettertitle,使minipage包含此数据的文件稍微大一些。即在前言中添加以下几行(该包etoolbox由 加载moderncv):

\patchcmd{\makelettertitle}
  {\begin{minipage}[t]{.5\textwidth}}
  {\begin{minipage}[t]{.7\textwidth}}
  {}
  {}

梅威瑟:

\documentclass[12pt,letterpaper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{black}
\renewcommand{\familydefault}{\sfdefault}
\nopagenumbers{}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{lipsum}

\patchcmd{\makelettertitle}
  {\begin{minipage}[t]{.5\textwidth}}
  {\begin{minipage}[t]{.7\textwidth}}
  {}
  {}

%% Personal data
\firstname{New PhD}
\familyname{Scholar}
\address{31415 Pi Street}{Largeville, ND, 58202}
\mobile{+1~(502)~321~1234}
\email{[email protected]}

\begin{document}

% recipient data
\recipient{New Work and Research Studies Search Committee\\E. Pluribus Unum School of Grant Proposals and Other Funding}{Blueberry University\\204 N. Peach Ave.\\Buymore, WI 78115}
\date{\today}
\opening{Dear Committee Members,}
\closing{Regards,}

\makelettertitle
\lipsum
\makeletterclosing
\end{document} 

输出:

在此处输入图片描述

相关内容