# Margins with newlfm

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}

\rightmarginsize{0in}
\topmarginsize{0in}
\topmarginskip{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)
% Alternatively, these may be set on an individual basis within each letter environment.

\begin{document}

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


• Use the geometry package in order to adjust the spacing parameters – user31729 Dec 8 '17 at 18:43
• I have tried that. It does not work and is specifically proscribed by the newlfm user guide. "geometry is no longer used for dimension setting. Rather, all dimensi ons are set internally. This is done using a combination of default values, header and footer sizes and values input from the user. Theseinclude primarily the page size commands leftmarginsize, textwidthsize and rightmarginsize." – esiefker Dec 8 '17 at 20:03
• Are you in the US? Don't forget the 'american' option to the newlfm documentclass call at the top: \documentclass[american]{newlfm} – izmirlig May 24 '18 at 19:48

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:

\documentclass[11pt]{article}

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

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

\begin{document}

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

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

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.

This command will modify the top margin.

\topmarginskip{0in}

\newlfmP{topmarginskip=-1in}

You can use negative values if you want. You can find other pertinent commands in the manual.