答案1
如果你只想移动地址块,即公司招聘...文本,您可以直接向命令的参数添加负垂直空间\recipient
:
\recipient{\vspace{-4.5cm} Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
如果你还想将信件文本向上移动,我建议将第一段(或者整个文本)换行parbox
环境,水平尺寸小于页面宽度( 的第一个参数parbox
)。然后,您可以使用 negative 提取文本\vspace
。这是一个有点不靠谱的解决方案,我无法让这些想法与命令一起工作\opening
,因此您可能必须手动添加开头。
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\begin{document}
\recipient{\vspace{-4.5cm} Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
\date{January 01, 1984}
\opening{}
\closing{Yours faithfully,}
\makelettertitle
\vspace{-4cm}
\parbox{0.7\textwidth}{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.}
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.
\makeletterclosing
\end{document}