From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Using Property Drawers to Pass Values to a Variable Date: Sun, 23 Dec 2012 07:11:07 -0700 Message-ID: <87hanckgec.fsf@gmail.com> References: <50D6CE86.20106@wilkesley.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmmHa-0008Ns-6s for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 09:12:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmmHU-0006yC-QN for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 09:12:02 -0500 Received: from mail-vc0-f178.google.com ([209.85.220.178]:57611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmmHU-0006xy-Mo for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 09:11:56 -0500 Received: by mail-vc0-f178.google.com with SMTP id x16so6684356vcq.23 for ; Sun, 23 Dec 2012 06:11:56 -0800 (PST) In-Reply-To: <50D6CE86.20106@wilkesley.net> (Ian Barton's message of "Sun, 23 Dec 2012 09:27:34 +0000") 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: Ian Barton Cc: ian@manor-farm.org, emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Ian Barton writes: > 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. > Looks like you're the victim of two small typos. The following works for me. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=foo.org * Letter. :PROPERTIES: :first_name: Ian :last_name: Barton :END: #+begin_src latex :var last_name=(org-entry-get nil "last_name") My last name is last_name. #+end_src --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--