From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: Org/LaTex setup for Business Letter Revisited Date: Thu, 27 Dec 2012 08:31:51 +0100 Message-ID: <3902057.9vSfNFHHgc@linux-ik7b.site> References: <50D82370.5040308@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To7ul-0006y9-SN for emacs-orgmode@gnu.org; Thu, 27 Dec 2012 02:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1To7uk-0001fU-7m for emacs-orgmode@gnu.org; Thu, 27 Dec 2012 02:30:03 -0500 Received: from mailout11.t-online.de ([194.25.134.85]:47619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To7uk-0001eZ-1V for emacs-orgmode@gnu.org; Thu, 27 Dec 2012 02:30:02 -0500 In-Reply-To: <50D82370.5040308@wilkesley.net> 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, ian@manor-farm.org Am Montag, 24. Dezember 2012, 09:42:08 schrieb Ian Barton: > I have been following the various threads about using the scrlttr2 > class. However, none of them quite worked for me. > > I have come up with the following hack using Babel. There are three > files attached which illustrates the general principles. Ian, this is really of interest to me, but I don't quite get it. > > * koma variables which don't change are defined in an LCO file. So this is the usual LCO file, in a place where kpathsea will find it, namely at ~/texmf/tex/latex/ -- right? > * koma variables (toaddress, etc) which change between letters are > defined using org PROPERTIES. > * a letter template in defined in a latex src block. But what is the sense of having a LaTeX scr block? I'd like to outsource this somewhere as a template. Or is it necessary in each file including a letter? > * The letter body is written in an org_mode src block. > * The final letter is produced by tangling the body, the lco file and > the letter template. "tangling" -- could you elaborate, please? > > In normal use you would simply modify the PROPERTIES and body text to > suit each letter. The whole thing can probably be made into a yasnippet. > "the whole thing"? What has to be included in the snippet? > Suggestions for improvement welcome, as the existing stuff is just a > quick hack. > > Happy Christmas everyone and best wishes for the New Year. Yeah, and thanks to you for your time and effort, Alexander > > Ian.