From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: new LaTeX exporter hook Date: Wed, 23 May 2012 17:00:22 +0530 Message-ID: <81ipfnb0dt.fsf@gmail.com> References: <87aa0zxpmy.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9mP-0000wN-IA for emacs-orgmode@gnu.org; Wed, 23 May 2012 07:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX9mG-0005eA-Nm for emacs-orgmode@gnu.org; Wed, 23 May 2012 07:31:01 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:55805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9mG-0005dO-Es for emacs-orgmode@gnu.org; Wed, 23 May 2012 07:30:52 -0400 Received: by dakp5 with SMTP id p5so10265353dak.0 for ; Wed, 23 May 2012 04:30:50 -0700 (PDT) In-Reply-To: <87aa0zxpmy.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Wed, 23 May 2012 10:33:57 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > Hi all, > > the new LaTeX exporter does not seem to "run" the > org-export-latex-final-hook. Is there an equivalent? You are looking for `:filter-final-output' within `org-export-filters-alist'. I have defcustom that runs indent-region on final html output. Here is the relevant sections from org-e-html together with it's final section. Adopt this example to e-latex case. (defconst org-e-html-filters-alist '((:filter-final-output . org-e-html-final-function)) "Alist between filters keywords and back-end specific filters. See `org-export-filters-alist' for more information.") (defun org-e-html-final-function (contents backend info) (if (not org-e-html-pretty-output) contents (with-temp-buffer (nxml-mode) (insert contents) (indent-region (point-min) (point-max)) (buffer-substring-no-properties (point-min) (point-max))))) (defcustom org-e-html-pretty-output nil "Enable this to generate pretty HTML." :group 'org-export-e-html :type 'boolean) > Cheers, > Andreas > > > --