emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Macro expansion in included files


From: Benny Simonsen
Subject: [O] Macro expansion in included files
Date: Tue, 1 Mar 2011 22:59:16 +0100

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
main.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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]