From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] is #+bind supported? Date: Tue, 05 Mar 2013 23:07:26 +0100 Message-ID: <8738w9ts9t.fsf@gmail.com> References: <874ngq7wsq.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD01O-0003UD-Tb for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:07:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD01M-0003jK-3M for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:07:42 -0500 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:51758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD01L-0003iz-TC for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:07:40 -0500 Received: by mail-wg0-f41.google.com with SMTP id ds1so3848278wgb.4 for ; Tue, 05 Mar 2013 14:07:39 -0800 (PST) In-Reply-To: <874ngq7wsq.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Tue, 5 Mar 2013 14:20:37 +0000") 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 Hello, Eric S Fraga writes: > I seem to have some problem with the new exporter taking into account a > =#+BIND= directive such as > > #+bind: org-latex-pdf-process ("pdflatex %b" "bibtex %b" "pdflatex %b" "pdflatex %b") > > Am I doing something really silly here? I need bibtex to export my org > paper to PDF. This used to work... Bind keywords are supported. Unfortunately, `org-latex-pdf-process' is not bind-able. BIND variables are set as buffer-local variables in the buffer where the transcoding takes place. So, they affect the way the current buffer is changed into LaTeX code. However, `org-latex-pdf-process' is used during post-processing, i.e. after transcoding is over. At this time, the buffer where local variables were set has disappeared already. If you need to change the value of `org-latex-pdf-process', use a file local variable in the current buffer instead. Regards, -- Nicolas Goaziou