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: Mon, 14 Jul 2014 22:50:53 -0400 Message-ID: <87r41nuygi.fsf@gmail.com> References: <20140714222453.GA2413@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6spm-00062J-4E for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 22:51:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6spf-0001iN-Ee for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 22:51:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:42299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6spf-0001hR-8G for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 22:51:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X6spd-0002Os-0l for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 04:51:05 +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 04:51:05 +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 04:51:05 +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, > > 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? -- Nick