稍微向上移动页面。无法使 \enlargethispage*{-2\baselineskip} 工作

稍微向上移动页面。无法使 \enlargethispage*{-2\baselineskip} 工作

我该如何将第二页移至第一页?第一页上似乎还剩下很多空间,但我无法将第二页移至第一页。

我尝试使用\enlargethispage*{-2\baselineskip},也尝试过调整数字,但似乎无法让它工作。

谢谢。我的 Latex 代码如下。

在此处输入图片描述

% Cover letter using letter.sty
\documentclass{letter} % Uses 10pt
%Use \documentstyle[newcent]{letter} for New Century Schoolbook postscript font
% the following commands control the margins:
\topmargin=-1in    % Make letterhead start about 1 inch from top of page 
\textheight=8in  % text height can be bigger for a longer letter
\oddsidemargin=0pt % leftmargin is 1 inch
\textwidth=6.5in   % textwidth of 6.5in leaves 1 inch for right margin

\begin{document}

\enlargethispage*{-2\baselineskip}

\signature{John Doe}           % name for signature 
\longindentation=0pt                       % needed to get closing flush left
\let\raggedleft\raggedright                % needed to get date flush left


\begin{letter}{\textbf{Address Line} \\
\textbf{Address Line} \\
\textbf{Address Line} \\
Address Line, \\
Address Line, \\
Address Line, \\
Address Line}


\begin{flushleft}
{\large\bf John Doe}
\end{flushleft}
\medskip\hrule height 1pt
\begin{flushright}
\hfill House address \\
\hfill House address \\
\hfill House address \\
\hfill House address \\
\hfill House address \\
\hfill +0123456789\\
\hfill [email protected]\\

\end{flushright} 
\vfill % forces letterhead to top of page


\opening{Dear Sir/Madam,} 

Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.ragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph One.Paragraph 

Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two. Paragraph Two Paragraph Two. Paragraph Two.  Paragraph Two. Paragraph Two.

Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three. Paragraph Three.  Paragraph Three. Paragraph Three. Paragraph Three. 

Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.Thanks.

Yours sincerely,

\makeatletter
\renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
  \stopbreaks
  \noindent
  \ifx\@empty\fromaddress\else
  \hspace*{\longindentation}\fi
  \parbox{\indentedwidth}{\raggedright
       \ignorespaces #1\\[6\medskipamount]%
       \ifx\@empty\fromsig
           \fromname
       \else \fromsig \fi\strut}%
   \par}
\makeatother
\textbf{\textit{John Doe}}

\encl{My CV.doc}                % Enclosures

\end{letter}


\end{document}

答案1

将您的值更改\textheight为 9 英寸。

在此处输入图片描述

答案2

使用正数作为参数\enlargethispage,例如\enlargethispage{4\baselineskip}

相关内容