From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: [New Exporter] org-export-latex-after-initial-vars-hook Date: Thu, 6 Jun 2013 10:59:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkW2T-0004SU-9W for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:59:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkW2O-0004Lg-LT for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:59:21 -0400 Received: from mail-vb0-x234.google.com ([2607:f8b0:400c:c02::234]:60854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkW2O-0004LY-Ho for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:59:16 -0400 Received: by mail-vb0-f52.google.com with SMTP id f12so980029vbg.25 for ; Thu, 06 Jun 2013 01:59:16 -0700 (PDT) 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: emacs-orgmode@gnu.org To minimize risk of eye cancer (previous version was sent from gmail web interface at work without plain text setting) here it goes again: Nicolas Goaziou writes: > S=F8ren Mikkelsen writes: >> But I have a problem with the exporter: >> >> I have modified by org-exporter to export latex-files with the xelatex >> compiler. The implementation uses the >> "org-export-latex-after-initial-vars-hook"-hook to reconfigure the >> default process, however, this hook seems to be deleted and I'm not >> able to find equivalent hook. > Isn't it sufficient to customize `org-latex-pdf-process' so it uses > xelatex? I assume S=F8ren is using a similar snippet [1] as I do which is very convenient (credit goes to Bruno Tavernier). This approach lets you specify a #+LATEX_CMD (think of xelatex, -shell-escape, etc.) on a per file basis and allows LaTeX package 'injection'. Is there a hook that is run before actual LaTeX export of a given org-mode buffer in the new exporter engine? [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-10/msg00218.html