emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: sergio ruiz <sergio.rrd@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [Properties] accessing propreties in text
Date: Thu, 09 Jan 2020 20:21:52 +0000	[thread overview]
Message-ID: <87lfqgcrdr.fsf@kyleam.com> (raw)
In-Reply-To: <58B64B0A-53E5-46CD-92E7-3475CE4CA113@gmail.com>

sergio ruiz <sergio.rrd@gmail.com> writes:

> Is there a way to reference the values of properties, so that at render time, the document does something like:
> * Opening section
> :section:  test
> :time:     1 day
> :END:
> Is there a way to do something like.. this section is the <section> section and will be done in <time>
> which would render as:
> Is there a way to do something like.. this section is the test section and will be done in 1 day

How about something like this?

--8<---------------cut here---------------start------------->8---
* Opening section
:section:  test
:time:     1 day

this section is the {{{property(section)}}} section and will be done
in {{{property(time)}}}
--8<---------------cut here---------------end--------------->8---

See (info "(org)Macro replacement") for more information on macros.

      reply	other threads:[~2020-01-09 20:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 20:09 [Properties] accessing propreties in text sergio ruiz
2020-01-09 20:21 ` Kyle Meyer [this message]

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:

  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=87lfqgcrdr.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sergio.rrd@gmail.com \


* 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


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).