emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: preparation-function syntax for publishing


From: Carsten Dominik
Subject: Re: [Orgmode] Re: preparation-function syntax for publishing
Date: Thu, 22 Oct 2009 10:39:48 +0200


On Oct 22, 2009, at 10:37 AM, Julien Barnier wrote:

Hi,

I'm trying to use the :preparation-function argument for project
publishing. What I'd like to achieve i s to load a file in order to
define some styling elements for the export process, something such
as :

(load "org-style")

I tried several different syntaxes, such as :

:preparation-function (load "org-style")

But I didn't manage to achieve it, whichever syntax I try I get an
invalid function error.

Sorry to answer to myself, but I just wanted to mention that I found a
quick workaround. You can just create a new function :

(defun my-load-org-style () (load "org-style"))

And then use :

:preparation-function my-load-org-style

:preparation-function (lambda () (load "org-style"))

HTH

- Carsten





reply via email to

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