Hi
I would like to use macros in files that I include in another file.
The problem is that the macros don't expand in included files. Is
there something I have missed or?
Example with two files, main.org and sub.org
= main.org START ========
#+TITLE: Mainpage
#+MACRO: MacM @<strong>$1@</strong>
{{{MacM(Main)}}}
#+INCLUDE: "sub.org"
= main.org END ========
= sub.org START ========
#+TITLE: Subpage
#+MACRO: Mac @<strong>$1@</strong>
{{{MacM(Sub)}}}
{{{Mac(Sub)}}}
* Subpage title
content
= sub.org END ========
I export to html e.g. via:
org-export-as-html-to-buffer on main.org
The result is
{{{MacM(Main)}}} is expanded as expected but the {{{Mac*(Sub)}}} isn't expanded.
Best regards
Benny
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode