emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Properties] accessing propreties in text
@ 2020-01-09 20:09 sergio ruiz
  2020-01-09 20:21 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: sergio ruiz @ 2020-01-09 20:09 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 785 bytes --]

Is there a way to reference the values of properties, so that at render time, the document does something like:

* Opening section
:PROPERTIES:
: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

Thanks!

----
peace,
sergio
photographer, journalist, visionary

Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[-- Attachment #1.2: Type: text/html, Size: 3652 bytes --]

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Properties] accessing propreties in text
  2020-01-09 20:09 [Properties] accessing propreties in text sergio ruiz
@ 2020-01-09 20:21 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2020-01-09 20:21 UTC (permalink / raw)
  To: sergio ruiz, emacs-orgmode

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
> :PROPERTIES:
> :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
:PROPERTIES:
:section:  test
:time:     1 day
:END:

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-09 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 20:09 [Properties] accessing propreties in text sergio ruiz
2020-01-09 20:21 ` Kyle Meyer

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