Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to left justify the date in the KOMA-Script scrlttr2 class so that it aligns with the left margin of the body. I have no other data in the refline. This question helped me to get my present workaround, which is as follows:

Shrink the width of the refline field:


Manually position the refline field:


While this can produce the output I want, when the width of the date changes, such as at the start of the month (think July->August), I have to manually edit the variables to get the proper alignment.

Is there a more elegant way within KOMA-Script to left justify the date? If there is not a built-in method: Is there a way to automate the calculation of the widths or lengths when I compile so that justification remains constant regardless of the length of date?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

This is kind of a hack, and may be somewhat stupid, but it seemed to work fine with my simple test:

share|improve this answer
This does indeed seem to do the trick and certainly beats my manual workaround. – Brian Maicke Apr 6 '12 at 16:39

Another way to do this (maybe this option wasn't present before) is by setting the refline=dateleft option, either as a documentclass option, or in the preamble like this:


This aligns both the city and the date to the left.

share|improve this answer
This option was present since KOMAScript version 3.09 (January 2011). – esdd Jul 15 at 14:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.