From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Strey Subject: Re: [patch] ox-koma-letter Date: Tue, 26 Feb 2013 13:38:19 +0100 Message-ID: <20130226123819.GQ24632@strey.biz> References: <87vc9gkund.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAJno-0005L1-87 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 07:38:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAJnl-0006ie-9u for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 07:38:36 -0500 Received: from mx1.supremebox.com ([198.23.53.39]:41266 helo=mx10.supremebox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAJnl-0006iO-6f for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 07:38:33 -0500 Received: from [77.179.203.227] (helo=localhost) by mx10.supremebox.com with esmtpa (Exim 4.80) (envelope-from ) id 1UAJnj-0008Ot-My for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 12:38:32 +0000 Content-Disposition: inline In-Reply-To: <87vc9gkund.fsf@pank.eu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Rasmus, Thank you for sharing this patch. I have changed ox-koma-letter.el as well to fit my needs but didn't publish my changes. On Mon, Feb 25, 2013 at 09:25:58PM +0100, Rasmus wrote: [...] > I have been working on extending the KOMA letter support in Org. The > backend is still rough and I would like to more stuff such as > designing firstfood and firsthead with org elements (e.g. I use a > tabularx for my firstfood with varioues stuff). > > I have changed the following objects: [...] > 3. Added from-bank, invoice and other keywords like that. Still > many to go, but some of them would probably need some thought. > For instance firstfoot should work differently depending on > whether it is given a NAMEd table or a string. Any though? [...] IMO your approach goes into a questionable direction here. Following it we will end up defining the complete letterhead and letter layout by setting org-mode variables. Wouldn't it be better to use Markus Kohm's concept of letter class options to set all the static stuff? If I write a letter, I would like to say "this is a business letter from Michael Strey", give the address the date and maybe some references and start writing. I do not want to give in my phone number, my e-mail address or my backaddress. I don't even want to see them in the org-mode document. Therefore I have two letter class options, one for my private letters and one for my business letters that contain the complete letter head and foot, phone number, backaddress, e-mail address and so on. Following this concept ox-koma-letter.el should support LCO and the following variables and nothing else: - customer - date - invoice - myref - specialmail - subject - title - yourmail - yourref - address - opening - closing - cc - encl - ps - language > 2. Added AFTER_CLOSING and AFTER_LETTER keywords for arbitrary code > after \closing{.} and \end{letter}, respectively. > a. A weird bug I don't understand is why I cannot have > #+AFTER_CLOSING{\ps{ps:}} > b. Would it be better to have a dedicated, say, PS and ENCL rather > than the generic AFTER_CLOSING? I would opt for dedicated variables. Regards, -- Michael Strey www.strey.biz