henry atting <[email protected]> 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
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode