I have set up my letter with the \usepackage{newlfm}
and am very happy with it but are struggling with one minor detail. I want to print some information within the header, but can't seem to find a way to print the date that is defined by \dateset{}
. The following code works without problems:
\documentclass[stdletter]{newlfm}
%%To-address data%%
\nameto{Jane Doe}
\addrto{123 Belch Street\\Belcherville\\USA}
\namefrom{John Doe}
\addrfrom{321 Belch Street\\Belcherville\\USA}
%%Letter setup%%
\dateset{\today}
\Lheader{To:~\printnameto}%
\Cheader{\today}%
\begin{document}
%%Greeting
\closeline{Yours faithfully}
\greetto{Dear Sir or Madam}
%%Letter
\begin{newlfm}
TEXT
\end{newlfm}
\end{document}
But when I redefine \dateset{}
, the date in the header is not correct anymore.
\documentclass[stdletter]{newlfm}
%%To-address data%%
\nameto{Jane Doe}
\addrto{123 Belch Street\\Belcherville\\USA}
\namefrom{John Doe}
\addrfrom{321 Belch Street\\Belcherville\\USA}
%%Letter setup%%
\dateset{5 January 2011}
\Lheader{To:~\printnameto}%
\Cheader{\today}%
\begin{document}
%%Greeting
\closeline{Yours faithfully}
\greetto{Dear Sir or Madam}
%%Letter
\begin{newlfm}
TEXT
\end{newlfm}
\end{document}
The problem is, that there is a command \printnameto
to print the content of the \nameto
variable (which I used in \Lheader{}
), but there seems to be no command to print the content of \dateset
(which I would need for \Cheader{}
). I know that I could change \Cheader{}
manually, but in the end I want to setup the header in the letrinfo.tex file so I would appreciate to have a print method for that variable so that I do not have to change this file permanently.