Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

KOMA script fun - the date
22 July 2005 @ 00:14 BST
by Paul

Latex can create beautiful documents. Well apart from letters. The standard Latex letter class is not popular. KOMAscript comes to the rescue. KOMA has created new classes for everything, but most important is its letter class "scrlttr2".

The only problem with it, and it is a bit of a FAQ, is that you can't get the date to align left. This is because KOMA puts the date in something called a 'business line' that contains all sorts of other stuff. To zap this business line and to get the date to flush hard left, I created a 'lco' file (letter class options file), that contains the following:

\@setplength{refvpos}{74mm}
\renewcommand*{\@datefield}{\vskip\useplength{refvpos}%
\hbox{\usekomavar{date}}%
\vskip 2\baselineskip%
}%

It sure ain't beautiful, but it works. If anyone has a better way of doing it, it would be great to hear it.

Tags: text latex



Leave a comment:

Are you human?