Hello, Edward DeMeulle <e...@demeulle.org> 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