[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Export of property key:value
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Export of property key:value |
Date: |
Tue, 16 Jul 2013 08:45:24 +0200 |
Hello,
Edward DeMeulle <address@hidden> 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