Scot Becker wrote: >[1 <multipart/alternative (7bit)>] >[1.1 <text/plain; ISO-8859-1 (7bit)>]
>[1.2 <text/html; ISO-8859-1 (quoted-printable)>] >SHORT VERSION: >Can someone tell me how I might be able to get a property value exported to >LaTeX? This is currently not possible but attached patch adds a new macro (cf. Manual, 11.6 Macro replacement) that inserts a property of the current subtree. Example: {{{property(id)}}} Will insert the ID property of current subtree if the Org buffer is exported. This patch only works for singe value properties and raises an error if the macro is inserted above the first headline. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmj...@jabber.org Email..... dm...@ictsoc.de
From ca968bee5a935229370555e9ad915d12e2eb22ab Mon Sep 17 00:00:00 2001 From: David Maus <dm...@ictsoc.de> Date: Thu, 9 Sep 2010 15:38:07 +0200 Subject: [PATCH] Provide new macro to insert entry property * org-exp.el (org-infile-export-plist): Provide new macro to insert entry property. Format: {{{property(PROP)}}}, where PROP is the name of the property. This currently only works for single value properties and fails with an error if used above the first headline. --- lisp/org-exp.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index c16bec8..64ad454 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -771,6 +771,7 @@ modified) list.") ;; Add macro definitions (setq p (plist-put p :macro-date "(eval (format-time-string \"$1\"))")) (setq p (plist-put p :macro-time "(eval (format-time-string \"$1\"))")) + (setq p (plist-put p :macro-property "(eval (org-entry-get nil \"$1\"))")) (setq p (plist-put p :macro-modification-time (and (buffer-file-name) -- 1.7.1
pgpDGuGyyEXoE.pgp
Description: PGP signature
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode