增加 moderncv 中求职信结尾的间距

增加 moderncv 中求职信结尾的间距

使用该moderncv包,我如何增加结尾和结尾后的名字之间的间距,即增加此图中“Yours Faithly”和“John Doe”之间的间距

图片

这是默认设置template.texhttp://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples

答案1

您可以在名字中添加垂直空格:

\firstname{\vspace{20pt}John}
\familyname{Doe}

这只会改变此致约翰·多伊

另一种解决方案是使用setspace包来更改间距(\usepackage{setspace}在序言中添加)。在添加结束符之前更改间距,例如:

\doublespacing
\makeletterclosing

或者

\setstretch{2}
\makeletterclosing

然而,这也会改变约翰·多伊附件:个人简历

答案2

\makeletterclosing宏在关闭和名称之间放置了 3em 的垂直空间。在下面的例子中,我使用了etoolbox包将此空间更改为 4em。

\documentclass[sans]{moderncv}

\moderncvstyle{classic}
\firstname{John}
\familyname{Doe}

\usepackage{etoolbox}
\patchcmd{\makeletterclosing}{3em}{4em}{}{}

\begin{document}

\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
\date{January 01, 1984}
\opening{Dear Sir or Madam,}
\closing{Yours faithfully,}
\enclosure[Attached]{curriculum vit\ae{}}
\makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

\[ e=\lim_{n \to \infty} \left(1+\frac{1}{n}\right)^n \]

\makeletterclosing

\end{document}

在此处输入图片描述

相关内容