18

I'm trying to start writing letters with Latex, starting with the letter document class:

\documentclass{letter}
\usepackage{hyperref}
\signature{Joe Bloggs}
\address{21 Bridge Street \\ Smallville \\ Dunwich DU3 4WE}
\begin{document}

\begin{letter}{Director \\ Doe \& Co \\ 35 Anthony Road
\\ Newport \\ Ipswich IP3 5RT}
\opening{Dear Sir or Madam:}

I am writing to you on behalf of the Wikipedia project (http://www.wikipedia.org/),
an endeavour to build a fully-fledged multilingual encyclopaedia in an entirely
open manner, to ask for permission to use your copyrighted material.

% The \ldots command produces dots in a way that will not upset
% the typesetting of the document.
\ldots 

That said, allow me to reiterate that your material will be used to the noble end of
providing a free collection of knowledge for everyone; naturally enough, only if you
agree. If that is the case, could you kindly fill in the attached form and post it
back to me? We shall greatly appreciate it.

Thank you for your time and consideration.

I look forward to your reply.

\closing{Yours Faithfully,}

\ps

P.S. You can find the full text of GFDL license at
\url{http://www.gnu.org/copyleft/fdl.html}.

\encl{Copyright permission form}

\end{letter}
\end{document}

This prints today's date. While this is nice and probably mostly one's intention, there are obviously cases where the date should not coincide with the last Latex run.

How is it possible (what are recommended ways) of setting the date in this letter to, say, 21. October 2041?

7
  • 7
    \date{21.~October 2041} will also print the dot after “21”.
    – GuM
    Jun 13, 2017 at 20:23
  • This has nothing to do with letters. This is just how you always set the date in LaTeX.
    – cfr
    Jun 14, 2017 at 1:06
  • Why have you capitalised 'Faithfully'?
    – cfr
    Jun 14, 2017 at 1:07
  • 1
    @cfr well yes it does: letter puts in the date automatically (what happens under the TeX-hood is another question). Re 2nd comment: spelling mistake which got copy-and-pasted with the rest of the MWE :-) Jun 14, 2017 at 11:41
  • The standard classes all put in the date automatically. Nothing special about letter.
    – cfr
    Jun 14, 2017 at 13:08

2 Answers 2

12

Just add \date{} somewhere before \begin{opening}. For instance, in your document:

\documentclass{letter}
\usepackage{hyperref}
\signature{Joe Bloggs}
\address{21 Bridge Street \\ Smallville \\ Dunwich DU3 4WE}
\begin{document}

\begin{letter}{Director \\ Doe \& Co \\ 35 Anthony Road
\\ Newport \\ Ipswich IP3 5RT}
\date{October 21, 2014}
\opening{Dear Sir or Madam:}
...
1
  • Note the argument to date doesn't need to be a date - you can also enter a "Location, Data" combination that is customary in some places.
    – Nobody
    Jun 19, 2020 at 12:17
2

Place it before the letter begins. In other places the date still takes the system defined today's date.

\documentclass{letter}
\usepackage{hyperref}
\signature{Joe Bloggs}
\address{21 Bridge Street \\ Smallville \\ Dunwich DU3 4WE}
\begin{document}
\date{October 21, 2041} % <== this is the correct place to put it
\begin{letter}{Director \\ Doe \& Co \\ 35 Anthony Road
\\ Newport \\ Ipswich IP3 5RT}
\opening{Dear Sir or Madam:}
1
  • Welcome to TeX.SE!
    – Mensch
    Dec 14, 2020 at 19:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .