From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Macros in included file not expanded in batch export Date: Tue, 15 Jul 2014 06:49:22 -0400 Message-ID: <87bnsqsxql.fsf@gmail.com> References: <20140714222453.GA2413@chitra.no-ip.org> <87r41nuygi.fsf@gmail.com> <20140715065422.GD2413@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X70Ip-0001eG-Rm for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 06:49:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X70Ij-0007fp-09 for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 06:49:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:33047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X70Ii-0007f7-QS for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 06:49:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X70Ih-0007oK-Pq for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 12:49:35 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Jul 2014 12:49:35 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Jul 2014 12:49:35 +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: emacs-orgmode@gnu.org Suvayu Ali writes: > 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. > See (info "(emacs) Initial options") -- Nick