[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about links, macros + org-publish and "parametrization"
From: |
Martin Steffen |
Subject: |
Re: question about links, macros + org-publish and "parametrization" |
Date: |
Thu, 30 May 2024 05:52:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
>>>>> "Fraga," == Fraga, Eric <e.fraga@ucl.ac.uk> writes:
Fraga,> Hello,
Fraga,> I'm not entirely sure if I am missing something but, in case
thanks, it was more that I was missing something. I tried to combine
links and macros in a naive ways (without much studying the manual), so
I thought perhaps nesting is not possible (or there is another way).
Your suggestion solves my "problem" and makes the set-up a bit more
"parametric" and easier to adapt, without that one forgets some bits,
which is very nice.
best, Martin
Fraga,> it helps, macros can themselves invoke other macros and
Fraga,> macros can make use of [[target][desc]] syntax directly.
Fraga,> Can you not build up a hierarchy of macros that would
Fraga,> achieve what you want, along these lines:
Fraga,> #+macro: link [[file:t.org][$1]]
Fraga,> #+macro: target {{{link($1)}}}
Fraga,> This is some text where I can look at {{{target(blah)}}}
Fraga,> HTH, eric
Fraga,> -- : Eric S Fraga, with org release_9.6.19-1230-g407a55 in
Fraga,> Emacs 30.0.50
- question about links, macros + org-publish and "parametrization", Martin Steffen, 2024/05/28
- Re: question about links, macros + org-publish and "parametrization", Fraga, Eric, 2024/05/29
- Re: question about links, macros + org-publish and "parametrization",
Martin Steffen <=
- Re: question about links, macros + org-publish and "parametrization", Martin Steffen, 2024/05/30
- Re: question about links, macros + org-publish and "parametrization", Fraga, Eric, 2024/05/30
- Re: question about links, macros + org-publish and "parametrization", Martin Steffen, 2024/05/30
- Re: question about links, macros + org-publish and "parametrization", Max Nikulin, 2024/05/30
- Re: question about links, macros + org-publish and "parametrization", Ihor Radchenko, 2024/05/30
- Re: question about links, macros + org-publish and "parametrization", Max Nikulin, 2024/05/31
Re: question about links, macros + org-publish and "parametrization", Ihor Radchenko, 2024/05/29