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



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to