0

I would like to write a letter to someone. So far I've discovered two packages letter and lettre (written by a french guy). Both are nice, but I would like to customize the layout of the letter.

For instance, I would like to move the date below the address and move the address to fit my windowed envelope.

I spent some time trying to achieve this, unfortunately these packages seems not very modular. So I am thinking to rewrite a very simple package where each letter component (address, date, ...) are using textblock

\begin{textblock}{hwidthi}[hhx i,hhyi](hx i,hyi) ... \end{textblock} 

What would be the most straightforward solution in my case?

5
  • The date is above the address in lettre because it's the traditional layout out of letters in French. Commented Apr 23, 2016 at 8:56
  • It is, but the envelopes I bought have a window located slightly above. Commented Apr 23, 2016 at 8:57
  • 1
    I found scrlttr2 a very convenient package. Commented Apr 23, 2016 at 9:01
  • You can easily customise the layout of the lettre heading: it is a picture environment, with a number of \parboxes. The default placement and dimensions of these boxes is explained in § 2.7.3 (De l'entête), pp 25-26 of the documentation. Commented Apr 23, 2016 at 9:23
  • 1
    letter, scrlttr2, newlfm and isodoc are all discussed in Correspondence if that's of any help. Commented Apr 23, 2016 at 10:03

1 Answer 1

3

Maybe this helps - here's the code of my personal standard letter using the scrlttr2 document class.

\documentclass[a4paper]{scrlttr2} % Options % true/on/yes oder false/off/no \KOMAoptions{ parskip=half, fromphone=off, fromrule=off, fromfax=off, fromemail=off, fromurl=off, addrfield=on, foldmarks=true, backaddress=on } % Standard packages \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} % Additional packages \usepackage{csquotes} \usepackage[]{url} % Some sombols - just in case :) \usepackage{textcomp} %% Setting the Variables \setkomavar{fromname}{Dr.~Manuel Kuehner} \setkomavar{signature}{\small\sffamily Dr.~Manuel Kuehner} \setkomavar{fromaddress}{SomeStreet 2\\ 71706 SomeTown} \setkomavar{fromphone}{0123-123456789 (Mobil)} \setkomavar{fromemail}{[email protected]} \setkomavar{fromurl}{www.manuelkuehner.de} \setkomavar{frombank} {% Konto 000\,000\,000, Postbank Berlin, BLZ 100\,100\,10\\ IBAN DE\,08\,10010010\,123456789, BIC PBNKDEFF } % Footnote with bank account, custom code \setkomavar{firstfoot} {% \parbox[b]{\linewidth} {% \centering\usekomavar{frombank}% }% } % Letter specific information % Leave the {} empty and it will not appear. \setkomavar{customer}{} \setkomavar{subject}{Cancellation} \setkomavar{myref}{--} \setkomavar{yourmail}{} \setkomavar{yourref}{} \setkomavar{invoice}{} \setkomavar{date}{\today} % Date of letter \begin{document} \begin{letter} {% Adressaten Name Name\\ Street Street\\ Town Town } \opening{Dear Mr. Mueller,} \enlargethispage{0\baselineskip} I would like to cancel my newspaper. \closing{Best regards} \ps{} \encl{Attached documents} % comment out if not needed \end{letter} \end{document} 

Here's the result of the code above:

enter image description here

But I must admit that it took me a while until I figured out how the document class works and until I was satisfied with the result. But I use it for years now without changing the code.

5
  • Seems the space between Dr. and M is too large (frenchspacing). Try Dr.~M in all matching occasions. Commented Apr 24, 2016 at 2:58
  • @Johannes_B Or Dr.\ M Commented Aug 12, 2019 at 20:19
  • @CarLaTeX Thx for the hint! Commented Aug 13, 2019 at 18:21
  • @Johannes_B Thanks for the hint (sorry, that was years ago but I missed it apparently that time)! Commented Aug 13, 2019 at 18:22
  • You're welcome! Commented Aug 13, 2019 at 18:58

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.