使用 newlfm 的边距

使用 newlfm 的边距

如何使用 newlfm 调整边距?我已将能找到的所有内容都设置为零,但仍然有大量空白。

这是一个简单的例子:

\documentclass[11pt,stdletter,orderfromtodate,sigleft]{newlfm}

\headermarginsize{0in}
\rightmarginsize{0in}
\topmarginsize{0in}
\topmarginskip{0in}
\headermarginsize{0in}
\headermarginskip{0in}

% Some of the article customisations are relevant for this class

\name{MyName} % To be used for the return address on the envelope
\signature{My sig} % Goes after the closing (ie at the end of the letter, with space for a signature)
\address{Address \\ of \\ Sender}
% Alternatively, these may be set on an individual basis within each letter environment.

\begin{document}

\begin{letter}{Name and \\ Address \\ of \\ Receiver}

\opening{Dear John,} 

My Letter




\closing{Regards,} % eg Regards,

\cc{} % people this letter is cc-ed to
\encl{} % list of anything enclosed
\ps{} % any post scriptums. ``PS'' labels must be put in manually

\end{letter}
\end{document}

在此处输入图片描述

答案1

此命令将修改顶部边距。

\topmarginskip{0in}
\newlfmP{topmarginskip=-1in}

如果需要,您可以使用负值。您可以在手动的。

答案2

我个人建议不要使用newlfm正是出于这个原因。使用常规article文档类并轻松设置边距和样式:

在此处输入图片描述

\documentclass[11pt]{article}

\usepackage{geometry,lipsum}
\geometry{
  margin=1in
}

\setlength{\parindent}{0pt}% Remove paragraph indent

\begin{document}

\pagestyle{empty}% Remove page headers/footers

\mbox{}\hfill
\begin{tabular}{l @{}}
  Address \\
  of \\
  Sender \\ \\
  \today
\end{tabular}

\bigskip % Vertical skip between sender/receiver address

\begin{tabular}{@{} l}
  Name and \\
  Address \\
  of \\
  Receiver
\end{tabular}

\bigskip % Vertical skip between receive address and letter opening

Dear John,

\medskip % Vertical skip between letter opening and letter body

\lipsum[1]

\medskip % Vertical skip between letter body and closing

\hspace*{.5\linewidth}%
Regards,

\medskip % Vertical skip between letter closing and signature start

\vspace{5\baselineskip} % Content that includes your signature, or space for it

My signature

\bigskip % Vertical skip between signature and attachment references

cc: % people this letter is cc-ed to

\medskip

encl: % list of anything enclosed

\medskip

ps: % any post scriptums

\end{document}

由于内容流是连续的,因此代码和随附的输出一起阅读效果更好 - 您不必将发件人/收件人和签名详细信息放在序言中,因为它们可以轻松地放在正文中document

使用普通article类,你可以使用geometry根据需要设置边距。

答案3

您可以通过设置来完成此操作\newlfmP{headermarginsize=10pt}

相关内容