bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] scrbase.el and scrlttr2.el


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] scrbase.el and scrlttr2.el
Date: Wed, 24 Feb 2010 21:28:17 +0100

* AW (2010-02-23) writes:

> the "style" scrlttr2.el provides many commands of the documentclass 
> "scrlttr2.cls" (a KOMA-Script class) for AucTeX.
>
> As the file contains no reference to scrbase.el, most of the common 
> improvements of KOMA-Script are not available in scrlttr2.el
>
> For example, the environment called "addmargin" works in all KOMA-Script 
> classes. Same goes for "labeling".
>
> I do not know anything about Lisp. Just for my purposes I added some lines to 
> scrlttr2.el. I attach the modified file here. I'm aware that I should change 
> the name of it, but would't that render the file unusable?

At least the style system will not find it anymore.  You could probably
put the modified version in your private style directory.

By the way, the license does not require you to change the name.

> However, it would be an improvement if scrlttr2.el knew about "labeling", 
> "addmargin" and so on.

Surely, but if possible we should avoid copying and pasting the
implementation from scrbase.el to scrlttr2.el.  It would probably be
better if we had an scrbase.el which would not add so many things not
used by scrlttr2, then we could just load that.  Not sure if we'd run
into copy/paste issues with the other KOMA-Script classes then.
KOMA-Script itself seems to be spread across a lot of smaller files and
we likely don't want to replicate this complexity.

It could be an option to define only the functions for stuff like
`captionbeside' (which would be an example of an environment not
supported in scrlttr2) in scrbase.el and then add the environments or
macros in the files for the classes where they are actually available.

-- 
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]