From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: [babel] Using Property Drawers to Pass Values to a Variable Date: Sun, 23 Dec 2012 09:27:34 +0000 Message-ID: <50D6CE86.20106@wilkesley.net> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmhqT-0007KJ-Rl for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 04:27:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmhqM-0006Dy-Ux for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 04:27:45 -0500 Received: from mail2.wilkesley.net ([109.74.196.44]:36924 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmhqM-0006Dn-PT for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 04:27:38 -0500 Received: from [192.168.0.58] (unknown [46.33.134.31]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id E7622192C12 for ; Sun, 23 Dec 2012 09:27:36 +0000 (GMT) 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 am trying to pass a variable value to a latex source code block: * Letter. :PROPERTIES: :first_name: Ian :last_name: Barton :END: #+begin_src latex var: last_name =(org-get-entry nil "last_name") #+end_src However, it appears as though it's only supported for lisp. Any suggestions as how to do this? I am trying to construct a business letter template using the KOMA scrlttrs class. I have got the letter looking the way I want it in tex. I propose to use babel to produce the tex, but need a way to pass variables stored in my org file to the various komavar. I have tried org-koma-letter.el, which isn't quite flexible enough for my needs. I know there have been several postings in the list about using KOMA. If anyone is interested I found this http://stefano.italians.nl/archives/55 site a great help in getting my design the way I wanted it. Ian.