From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Export of property key:value Date: Tue, 16 Jul 2013 08:45:24 +0200 Message-ID: <87mwpnypdn.fsf@gmail.com> References: <87ppujgh3v.fsf@demeulle.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyz0b-000273-7S for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 02:45:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uyz0Z-0002SJ-Ut for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 02:45:13 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:33063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyz0Z-0002Ru-Mv for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 02:45:11 -0400 Received: by mail-wi0-f173.google.com with SMTP id hq4so3718246wib.0 for ; Mon, 15 Jul 2013 23:45:10 -0700 (PDT) In-Reply-To: <87ppujgh3v.fsf@demeulle.org> (Edward DeMeulle's message of "Mon, 15 Jul 2013 23:21:24 -0700") 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: Edward DeMeulle Cc: emacs-orgmode@gnu.org Hello, Edward DeMeulle writes: > This is my simple example. Is there a simpler way to export the amount > property without duplicating "amount: {{{property(amount)}}}" in every > subheading? > > #+OPTIONS: toc:nil d:t > > * Buy stuff > :PROPERTIES: > :COLUMNS: %25ITEM %TODO %15amount(Amount){$} > :END: > ** DONE Buy something > :PROPERTIES: > :amount: 1234.56 > :END: > amount: {{{property(amount)}}} > > ** TODO Buy something else > :PROPERTIES: > :ID: db34ed38-7658-48b4-9770-9a572efcdb11 > :amount: 5445.43 > :END: You can use a hook (e.g., `org-export-before-processing-hook) to insert "amount : {{{property(amount)}}}" (or with `org-entry-get', you don't need the macro in that case) after each property drawer with an amount property. Regards, -- Nicolas Goaziou