I am using the newlfm letter documentclass, and try loading the geometry package. This returns the following error:
! LaTeX Error: Command \geometry already defined.
What I want to do is put more space (margin) between the text and the top of the page. A MWE is provided below:
\documentclass{newlfm}
\usepackage[margin=0mm, top=2mm]{geometry}
\begin{document}
\begin{letter}{Recipient Company\\ Recipient Address}
\opening{Dear Sir or Madam,}
Here goes the letter content
\end{letter}
\end{document}
What am I doing wrong?
Best Answer
The command
\geometry
, it seems, is already defined by the classnewflm
. If you do not want that default page setting putjust below
\documentclass{newlfm}
Your file becomes:
Update Ignoring the commands defined by the document class will certainly cause trouble at some point of time (Agreeing with @Mico). Hence it is always better to use these commands. This MWE shows how to play with different margins using the built-in commands of the
newlfm
class itself.For more details one may run
texdoc newlfm
from from the command prompt and the details of these lengths can be found in page 8 of the manual. I am attaching a screen shot of the same.