How can I convert below code into a macro?

#+REVEAL_HTML: <div class="absolute" style="left:60%;top:0%">
#+REVEAL_HTML: </div>

I try it as below but doesn't work:

#+MACRO: mymacro #+REVEAL_HTML:<div class="absolute" style="left:60%;top:0%">$3#+REVEAL_HTML: </div>

Call it as:

  • I don't use REVEAL so cannot answer directly. However, for HTML export, say, you can use inline directives, as in @@html:<div ...>@@text etc. You can therefore put these in the macro instead of the #+ directives.
    – éric
    Jan 27, 2021 at 16:24
  • Does this help?
    – Rusi
    Jan 28, 2021 at 4:20


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.