From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Edward DeMeulle <ed@demeulle.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Export of property key:value
Date: Tue, 16 Jul 2013 08:45:24 +0200 [thread overview]
Message-ID: <87mwpnypdn.fsf@gmail.com> (raw)
In-Reply-To: <87ppujgh3v.fsf@demeulle.org> (Edward DeMeulle's message of "Mon, 15 Jul 2013 23:21:24 -0700")
Hello,
Edward DeMeulle <ed@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
next prev parent reply other threads:[~2013-07-16 6:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 6:21 Export of property key:value Edward DeMeulle
2013-07-16 6:45 ` Nicolas Goaziou [this message]
2013-07-27 23:44 ` Edward DeMeulle
2013-07-30 3:11 ` Edward DeMeulle
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=87mwpnypdn.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=ed@demeulle.org \
--cc=emacs-orgmode@gnu.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).