From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch] ox-koma-letter Date: Tue, 26 Feb 2013 22:14:28 +0100 Message-ID: <87mwuqg4ln.fsf@pank.iue.private> References: <87vc9gkund.fsf@pank.eu> <20130226123819.GQ24632@strey.biz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARrL-0006VW-E2 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 16:14:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UARrK-00011D-5N for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 16:14:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:38650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARrJ-00010p-Uw for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 16:14:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UARrc-00051a-HZ for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 22:15:04 +0100 Received: from dynamic-adsl-94-34-152-98.clienti.tiscali.it ([94.34.152.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 22:15:04 +0100 Received: from rasmus by dynamic-adsl-94-34-152-98.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 22:15:04 +0100 In-Reply-To: <20130226123819.GQ24632@strey.biz> (Michael Strey's message of "Tue, 26 Feb 2013 13:38:19 +0100") 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 >> 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? Potentially. What do you mean by "letter class options"? Are you referring to customized LCO files or do you refer to e.g. customized org-latex-classes? One reason for adopting such variables might be that it would, in a very long run, allow for export into other formats that scrlttr2. Even when using a dedicated LCO files and or org-latex-classes it might be appropriate to overwrite variables. In any case I don't have a strong opinion on this issue and your approach also makes sense. >> 2. Added AFTER_CLOSING and AFTER_LETTER keywords for arbitrary code >> after \closing{.} and \end{letter}, respectively. >> [...] >> 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. Fine by be.. At the very least these should come in the order that they are specified in the document, I guess. E.g. I should be able to place ENCL before PS in the output, if I so desire. For arbitrary code I find AFTER_CLOSING and AFTER_LETTER nice. E.g. for pdfpages inclusions. -- May contains speling mistake