在带有 类的信件中moderncv
,当信件正文足够长以转到下一页时,第一页的正文和页脚之间没有足够的空间。那么如何增加信件正文和页脚之间的垂直空间(其中有我的联系方式)?这是我的信件:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.95, top=1cm, bottom=2cm, left=4cm, right=3cm]{geometry}
\renewcommand*{\addressfont}{\small\mdseries}
\name{John}{Templeton}
\title{Resumé title}
\address{36 Mauniour, Valybir, Alcansa}{}{United States}
\phone[mobile]{+19193433283}
\email{[email protected]}
\extrainfo{\emailsymbol\emaillink{r\[email protected]}}
\newlength{\currentparskip}
\begin{document}
\recipient{Department of Philology \\
Faculty of Humanities \\
University California\\
Elgsdelaan 1105 \\
1081 HV California\\
[email protected]\\
Job number:5675}{}
\date{\today}
\opening{To whom it may concern,}
\closing{Yours sincerely,\vspace{-0.5cm}}
\makelettertitle
\setlength{\currentparskip}{\parskip}
\setlength{\parskip}{\currentparskip}
The body of the letter
\vspace{0.5cm}
\enclosure [\upshape Attached]{\upshape resume, writing sample.}
\makeletterclosing
\clearpage
\end{document}
答案1
要增加信体和页脚之间的垂直空间,只需更改geometry
选项中给定的空间button
(例如从 2 厘米到 2.5 厘米)。
\usepackage[scale=0.95, top=1cm, bottom=2.5cm, left=4cm, right=3cm,showframe]{geometry}
% ^^^^^ <========================
编译后看到警告,说你的 footskip 太小。将其更改为
\setlength{\footskip}{45pt}
使用以下 MWE
\documentclass[11pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{casual}
\moderncvcolor{blue}
% character encoding
\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[scale=0.95, top=1cm, bottom=2.5cm, left=4cm, right=3cm,showframe]{geometry}
% ^^^^^ <========================
\usepackage{blindtext}
%\setlength{\hintscolumnwidth}{3cm}
%\setlength{\makecvtitlenamewidth}{10cm}
\setlength{\footskip}{45pt} % <=========================================
\renewcommand*{\addressfont}{\small\mdseries}
% personal data
\name{John}{Templeton}
\title{Resumé title} % optional, remove / comment the line if not wanted
\address{36 Mauniour, Valybir, Alcansa}{}{United States}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\phone[mobile]{+19193433283} % optional, remove / comment the line if not wanted
\email{[email protected]}
\extrainfo{\emailsymbol\emaillink{r\[email protected]}}
\newlength{\currentparskip}
\begin{document}
%----- letter ---------------------------------------------------------
% recipient data
\recipient{Department of Philology \\
Faculty of Humanities \\
University California\\
Elgsdelaan 1105 \\
1081 HV California\\
[email protected]\\
Job number:5675}{}
\date{\today}
\opening{To whom it may concern,}
\closing{Yours sincerely,\vspace{-0.5cm}}
\makelettertitle
\setlength{\currentparskip}{\parskip}% save the value of paragraph spacing
\setlength{\parskip}{\currentparskip}% restore the value
The body of the letter
\blindtext
\vspace{0.5cm}
\enclosure [\upshape Attached]{\upshape resume, writing sample.}
\makeletterclosing
\clearpage
\end{document}
你会得到结果: