From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Macros in included file not expanded in batch export Date: Tue, 15 Jul 2014 08:54:22 +0200 Message-ID: <20140715065422.GD2413@chitra.no-ip.org> References: <20140714222453.GA2413@chitra.no-ip.org> <87r41nuygi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6wdH-0006sN-6C for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 02:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6wdA-00029Y-CR for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 02:54:35 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:61207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6wdA-00029F-4W for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 02:54:28 -0400 Received: by mail-we0-f173.google.com with SMTP id q58so150006wes.18 for ; Mon, 14 Jul 2014 23:54:27 -0700 (PDT) Received: from chitra.no-ip.org (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id w10sm40102318wie.22.2014.07.14.23.54.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jul 2014 23:54:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87r41nuygi.fsf@gmail.com> 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 Hi Nick, On Mon, Jul 14, 2014 at 10:50:53PM -0400, Nick Dokos wrote: > Suvayu Ali writes: > > > Hi, > > > > I am trying to export to LaTeX in batch mode, but it seems the exporter > > ignores macros defined in included files when exporting in batch mode. > > > > I tried to export like this: > > > > $ emacs --eval "(require 'ox-latex)" include-test.org \ > > --eval '(org-LaTeX-export-to-latex nil nil nil t)' -f kill-emacs > > > > $ emacs --batch --eval "(require 'ox-latex)" include-test.org \ > > --eval '(org-LaTeX-export-to-latex nil nil nil t)' > > > > The first one exports correctly, the second doesn't. The org files, and > > the good and bad exported TeX files are attached. > > > > I haven't tried it but --batch implies -q, so it may be that the second > form is missing something essential from your init file - maybe? Indeed! I wasn't aware --batch implies -q, I had checked the man page before using it, but it isn't there. Probably it is hidden somewhere in the manual. Although, I can't think of what config it must be. As far as I recall I do not have anything related to include files or macro expansion. Anyway, thank you :). Cheers, -- Suvayu Open source is the future. It sets us free.