[Tex/LaTex] Margins with newlfm

marginsnewlfm

How do I adjust margins with newlfm? I've set everything I can find to zero, but there are still vast expanses of whitespace.

Here is a minimal example:

\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}

enter image description here

Best Answer

I would personally advise against using newlfm specifically for this reason. Use a regular article document class and set your margins and style without hassle:

enter image description here

\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}

The code and accompanying output reads better together as the content flow is sequential - you don't have to put the sender/recipient and signature detail in the preamble when they could easily fit within the document body.

With a plain article class, you can use geometry to set your margins as you need.