From mboxrd@z Thu Jan 1 00:00:00 1970 From: KDr2 Subject: Re: #+INCLUDE: file in code block results does not work? Date: Wed, 26 Mar 2014 22:04:44 +0800 Message-ID: References: <87wqfhuwtp.fsf@gmail.com> <87siq5uwic.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33d67c959cd504f582f470 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSoS3-0004nY-0o for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 10:05:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSoS1-0002lz-K4 for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 10:05:06 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:58922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSoS1-0002kk-G1 for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 10:05:05 -0400 Received: by mail-ob0-f172.google.com with SMTP id wm4so2521402obc.3 for ; Wed, 26 Mar 2014 07:05:04 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --047d7b33d67c959cd504f582f470 Content-Type: text/plain; charset=ISO-8859-1 I wrote a blog entry to describe all the dynamic tricks I used in the exporting: http://kdr2.com/tech/emacs/orgmode-export-process.html On Wed, Mar 26, 2014 at 7:54 PM, KDr2 wrote: > Thanks very much. > > I use dynamic block now, by adding `org-update-all-dblocks' to > `org-export-before-processing-hook'. > > > On Wed, Mar 26, 2014 at 5:42 PM, Nicolas Goaziou wrote: > >> Nicolas Goaziou writes: >> >> > You can use a macro here: >> > >> > #+MACRO: inc-file #+INCLUDE: /path/to-include-dir/$1 >> > >> > {{{inc-file(a.org)}}} >> >> Err, no. Macros are also expanded after INCLUDE keywords. The only code >> executed before these are handled is >> `org-export-before-processing-hook'. >> > > > > -- > -- > > KDr2, http://kdr2.com > -- -- KDr2, http://kdr2.com --047d7b33d67c959cd504f582f470 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I wrote a blog entry to describe all the dynamic tricks I = used in the exporting:



O= n Wed, Mar 26, 2014 at 7:54 PM, KDr2 <killy.draw@gmail.com> wrote:
Thanks very much.

<= /div>
I use dynamic block now, by adding `org-update-all-dblocks' t= o=A0`org-export= -before-processing-hook'.


On Wed, Mar 26, 2014 at 5:42 PM, Nicolas Goaziou <n.goa= ziou@gmail.com> wrote:
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> You can use a macro here:
>
> =A0 #+MACRO: inc-file #+INCLUDE: /path/to-include-dir/$1
>
> =A0 {{{inc-file(a.org)}= }}

Err, no. Macros are also expanded after INCLUDE keywords. The only co= de
executed before these are handled is
`org-export-before-processing-hook'.



--
--=A0



--
--=A0

KDr2, http://kdr2.com
--047d7b33d67c959cd504f582f470--