On Thursday, 30 May 2024 at 07:03, Martin Steffen wrote: > [...] > #+macro: target {{{source({{{year}}})}}}
So, the problem you are running into is that you cannot evaluate a macro with arguments that require evaluating a macro. Unless you can change the order in which you evaluate these macros, the only solution I can suggest is that you define elisp macros. See the info manual, specifically the second example in the macro replacement section. #+macro: complicated (eval ...) -- : Eric S Fraga, with org release_9.6.19-1230-g407a55 in Emacs 30.0.50