emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@wilkesley.net>
To: emacs-orgmode@gnu.org
Subject: [babel] Using Property Drawers to Pass Values to a Variable
Date: Sun, 23 Dec 2012 09:27:34 +0000	[thread overview]
Message-ID: <50D6CE86.20106@wilkesley.net> (raw)

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.

             reply	other threads:[~2012-12-23  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-23  9:27 Ian Barton [this message]
2012-12-23 14:11 ` [babel] Using Property Drawers to Pass Values to a Variable Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50D6CE86.20106@wilkesley.net \
    --to=lists@wilkesley.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=ian@manor-farm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).