From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: LaTeX export - customize own class Date: Tue, 29 Sep 2009 01:55:13 -0400 Message-ID: <4704.1254203713@gamaville.dokosmarshall.org> References: <87my4fyvvy.fsf@online.de> <81B98B42-372E-4CB9-B430-10DDE96A994E@gmail.com> <8763b2e2nz.fsf@online.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsVhO-0005z4-QO for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 01:56:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsVhJ-0005yQ-F3 for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 01:56:29 -0400 Received: from [199.232.76.173] (port=34178 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsVhJ-0005yN-5n for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 01:56:25 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:56114) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsVhI-0006SZ-KY for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 01:56:24 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KQP005MWXQT4E40@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 00:54:29 -0500 (CDT) In-reply-to: Message from henry atting of "Tue, 29 Sep 2009 07:32:48 +0200." <8763b2e2nz.fsf@online.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: henry atting Cc: emacs-orgmode@gnu.org, Carsten Dominik henry atting 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 () ) (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