emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: LaTeX export - customize own class


From: Nick Dokos
Subject: Re: [Orgmode] Re: LaTeX export - customize own class
Date: Tue, 29 Sep 2009 01:55:13 -0400

henry atting <address@hidden> wrote:


> I pulled the newest git version, reloaded org.el  and tried to load the hook 
> with
> 
> (add-hook 'org-mode-hook 'org-export-latex-final-hook)
> 
> but when I am trying to export an org file to LaTeX I get an error message:
> 
> run-hooks: Symbol's function definition is void:
> org-export-latex-final-hook
> 

org-export-latex-final-hook is just another hook, so you have to use it
like this:

(defun my-func ()
       <body>
       )

(add-hook 'org-export-latex-final-hook (function my-func))

Then your function will be called at the time that the hook is run:
after the latex export is done.

HTH,
Nick





reply via email to

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