Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anybody know of a good way to write simple paper letters in LaTeX, so that the formatting shows the receivers address on the right place so I will show in the window of those C5 envelops with a "address window" (see picture)?


Those envelope follows some kind of standard here in Sweden, I would like too use them since my handwriting is not that good looking.

How can I get a box with the receivers address in the upper right corner on the first page?

Update: I think the letter should conform to SS 34321 (Swedish Standard).

Update: A copy of this question can be found over at the tex.stackexchange site, where it has a working example:

share|improve this question
As you seem aware of based on your comment below, there exists perhaps this question should be moved there. – user31752 Aug 15 '10 at 17:04
I am now :) But the question is already "manually" moved so no need to do much but add a link to this question. – Johan Aug 15 '10 at 21:14
up vote 2 down vote accepted

I haven't been able to find any packages which use the Swedish standards you cite. But I think if you look in the wikibook that Dave mentioned and follow the example previous to the Koma example which uses the standard letter package, you should be able to measure the window dimensions and use them with the parindent command.

Alternatively you could try modifying the variables for Koma's window information. They seem to be: toaddrvpos, toaddrhpos, toaddrwidth, toaddrindent.

share|improve this answer
This I must try – Johan Oct 23 '09 at 8:01
+1 Good suggestions – DaveParillo Oct 23 '09 at 15:02

There's a wikibook with an example - it discusses using the letter class (scrlttr2) from CTAN's KOMA package. I've never done what you're trying, but I expect this will work.


I was not intending that the wikibook example would work 'out of the box' for you, but I knew it would be close. Are you using A4 paper? If not you need to adjust that using \LetterOptionNeedsPapersize. Page 197 of the english documentation for koma explains how to use \backaddress , \backaddressseparator, and \backaddrheight to adjust how your return address gets aligned in the address window.

If you can't get it right simply using these parameters, you may have to edit the lco file in the koma package by hand.

share|improve this answer
The first example was really close, but the address was approx 2-3cm to far down on the page (so it was right below the address window on the envelope)... – Johan Oct 22 '09 at 8:05
You mean CTAN, not CPAN. – dlamblin Oct 23 '09 at 5:56
@dlamblin - you are so right! Thanks for noticing – DaveParillo Oct 23 '09 at 14:55

You must log in to answer this question.

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