[Tex/LaTex] Remove header and footer lines in newlfm

header-footernewlfm

I'm trying to write a cover letter using the newlfm into \documentclass{...}.

It's okay for the letter but every page introduces a hideous top and bottom rule line. Has anyone used this and knows how to remove?

The example code I'm using is here: https://tex.stackexchange.com/a/15534

Best Answer

Adding this to your preamble should work:

\makeatletter
\g@addto@macro{\ps@ltrhead}{%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0pt}%
}
\g@addto@macro{\ps@othhead}{%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0pt}%
}
\makeatother

It is because the class internally uses the package fancyhdr and this is the stardard way to remove the header and footer lines in this package. The class defines two styles, ltrhead and othhead, this way, we remove the lines from both of them.