I need to put a subject line in a letter so after looking around most suggestions seem to point towards using the document class scrlttr2
instead of letter
since it is much more flexible.
However, the look of the letter when I change to scrlttr2
becomes totally messed up from the simple letter
format I prefer. More specifically:
- The from address is moved to the top left instead of the right over the date.
- OMR markers introduced on the left of the page.
- A separate underlined from address added on the top with a different font.
- The indentation and paragraphing is really ugly. It indents new paragraphs instead of putting whitespace. (While this is OK for a normal document, its totally ugly for a letter)
- While the normal
letter
style allowed me to leave the address of the recipient empty like this\begin{letter}{}
, I am forced to put something inscrlttr2
even if I don't want to put anything. (If I leave it empty or just put a space it gives a very cryptic errorLine 0: There's no line end here
even if its not on line 0.)
Is there anyway I can make it look like the letter
style? I am just going through this to add a subject line, so if there's a simpler way it would be equally good.
UPDATE
The output from scrlttr2
when I use \KOMAoptions{foldmarks=off,backaddress=false,fromalign=right}
is now as follows:
This is because it is inserted in the page header rather than the page content.
I need it to look at least as it is generated by letter
as follows:
The best thing would be if it is also right aligned, but if I manage to get it like letter
it should be enough.
Best Answer
It sounds like what you really want is to be able to add a subject line to the standard
letter
class, and that you really do not want to usescrlttr2
. If that is the case you can just modify theletter
class\opening
macro. I use theetoolbox
\patchcmd
, but I am sure there are other ways. The key part isYou would then specify the subject with
\subject
, just like you specify\name
. A full MWE is