Do I have to activate something to allow Org-mode 9 to process macros? An org-file with the following content gives me an error on export:

#+MACRO CANVAS @@html:<div align=center><canvas id="$1"></canvas></div>@@

Would somebody be able to point me in the right direction?!

Error message:

cond: Undefined Org macro: canvas; aborting

  • 3
    Missing colon in #+MACRO: ?
    – mutbuerger
    Mar 31, 2017 at 20:13
  • I feel like I should delete the question now.... =/ Thanks a lot for pointing it out.
    – Daniel
    Mar 31, 2017 at 20:15
  • Nah - leavie it. It's a useful reminder :-)
    – NickD
    Mar 31, 2017 at 21:32
  • 1
    But you or mutbuerger should add the solution to the question and you should accept it. It's more visible that way instead of the comment
    – p_wiersig
    Apr 5, 2017 at 12:01

1 Answer 1


In-buffer settings start with ‘#+’, followed by a keyword, a colon, and then a word for each setting.

(info "(org) In-buffer settings")

Your macro definition lacks the colon: #+MACRO:.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.