* Use properties in a table
@ 2024-11-06 13:17 Roger Mason
2024-11-06 14:18 ` Fraga, Eric
0 siblings, 1 reply; 3+ messages in thread
From: Roger Mason @ 2024-11-06 13:17 UTC (permalink / raw)
To: Org Mode List
Hello,
I want to be able to set properties like this:
* Farms 5 -
:PROPERTIES:
:constants: kmax=7.3 gkmax=15.678 comment=alphaQuartz
:END:
then use them in a table like this:
| | r5 | 1x1x1_24116_7220 | Fleur.sc_i0_w3 | 1.8400000000 | 14.5670000000 | alphaQuartz |
| | r6 | 1x1x1_24116_7223 | Fleur.sc_i0_w3 | 1.8400000000 | 14.5670000000 | alphaQuartz |
#+TBLFM: $5=$kmax::$6=$gkmax::$7=$comment
I know I can do that with #+constants, but is there a syntax to use
properties in a table? The purpose would be to have settings that are
private to a heading.
Thanks,
Roger
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Use properties in a table
2024-11-06 13:17 Use properties in a table Roger Mason
@ 2024-11-06 14:18 ` Fraga, Eric
2024-11-06 14:42 ` Roger Mason
0 siblings, 1 reply; 3+ messages in thread
From: Fraga, Eric @ 2024-11-06 14:18 UTC (permalink / raw)
To: Roger Mason; +Cc: Org Mode List
Response below/inline for email Roger Mason wrote:
> (original email sent 6 Nov 2024 at 09:47)
>
> I know I can do that with #+constants, but is there a syntax to use
> properties in a table?
The variable $PROP_x would be the value of x in an org table. I have
used, say
#+property: x 23
I imagine you could try:
:PROPERTIES:
:x: 23
:END:
(untested)
--
: Eric S Fraga, with org 9.7.15-a1df10 in Emacs 31.0.50
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Use properties in a table
2024-11-06 14:18 ` Fraga, Eric
@ 2024-11-06 14:42 ` Roger Mason
0 siblings, 0 replies; 3+ messages in thread
From: Roger Mason @ 2024-11-06 14:42 UTC (permalink / raw)
To: Fraga, Eric; +Cc: Roger Mason, Org Mode List
Thank you, that works perfectly.
"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:
> Response below/inline for email Roger Mason wrote:
>> (original email sent 6 Nov 2024 at 09:47)
>>
>> I know I can do that with #+constants, but is there a syntax to use
>> properties in a table?
>
> The variable $PROP_x would be the value of x in an org table. I have
> used, say
>
> #+property: x 23
>
> I imagine you could try:
>
> :PROPERTIES:
> :x: 23
> :END:
>
> (untested)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-06 14:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 13:17 Use properties in a table Roger Mason
2024-11-06 14:18 ` Fraga, Eric
2024-11-06 14:42 ` Roger Mason
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).