On Wednesday, 31 Mar 2021 at 12:40, Jean Louis wrote: > But then the line with \def\version{ {{{version}}} } gets shown in > HTML export, which is not what I want. How to resolve that?
Can you surround the line with @@latex: ... @@? You might need to do @@latex:\def\version{@@ {{{version}}} @@latex:}@@ Also, a macro can itself use the @@ directive to provide alternate versions for LaTeX and HTML, as in #+macro: blah @@html:some HTML code@@@@latex: some LaTeX code@@ > Another issue related to this setup is that I would like: I cannot help you with this unfortunately. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-254-g37749c