Hi Achim, Achim Gratz wrote: > Nicolas Goaziou writes: >> As discussed a few days ago, here is a document describing the complete >> Org syntax as read by the parser. I also added some comments. I am going >> to put the Org file on Worg, so anyone can update it and fix mistakes. > > after some playing with the Org manual in Org that Tom has been working > on I am starting to think that there should be a way to define the same > macro differently for different export backends. That would be mainly > so that you could have a macro expansion use export snippets tailored to > that backend where (after stripping the export snippets) the expansion > makes little or no sense in other backends. What do you think?
This is already possible, as once explained by Nicolas on this ML: ╭──── │ You can also have macros generating raw code geared towards LaTeX or HTML │ back-ends (through export-snippets). For example: │ │ #+MACRO: my-mod @@e-latex:\something{$1}@@@@e-html:<div class="something">$1</div>@@ │ │ This is an example: {{{my-mod(text)}}}. ╰──── Best regards, Seb -- Sebastien Vauban