Hello, Jonathan Leech-Pepin <jonathan.leechpe...@gmail.com> writes:
> When trying to insert a macro as one of the variables in another macro > (inline and not in the definition), the export fails in both exporters > in different ways. > > Using the following example: > > #+begin_src org > #+MACRO: test2 /$1/ > #+MACRO: test3 *$1* > #+MACRO: test {{{test2($1)}}} - $2 > #+MACRO: test4 $1 - $2 > > Test > 1. {{{test(hello,goodbye)}}} > 2. {{{test(hello, {{{test3(goodbye)}}})}}} > 3. {{{test({{{test3(hello)}}},goodbye)}}} > 4. {{{test4({{{test3(hello)}}},goodbye)}}} > 5. {{{test4(hello,{{{test3(goodbye)}}})}}} > #+end_src You're not supposed to nest macro calls. Only macro definitions. Regards, -- Nicolas Goaziou