From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Macros in included file not expanded in batch export Date: Tue, 15 Jul 2014 00:24:53 +0200 Message-ID: <20140714222453.GA2413@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6ogB-00068Y-DK for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 18:25:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6og6-00039p-Dc for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 18:25:03 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:60343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6og6-00038T-7b for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 18:24:58 -0400 Received: by mail-wi0-f180.google.com with SMTP id n3so3358657wiv.13 for ; Mon, 14 Jul 2014 15:24:56 -0700 (PDT) Received: from chitra.no-ip.org (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id wv8sm28270460wjb.1.2014.07.14.15.24.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jul 2014 15:24:55 -0700 (PDT) Content-Disposition: inline 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 Org mode --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. Can someone else reproduce this? Thanks, -- Suvayu Open source is the future. It sets us free. --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="include-test.org" #+INCLUDE: include.org * Some heading 1 {{{todo(foo)}}} * Some heading 2 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="include.org" #+MACRO: todo @@l:\todo[size=\scriptsize,$2]{@@$1@@l:}@@ --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="include-test-good.tex" \section{Some heading 1} \label{sec-1} \todo[size=\scriptsize,]{foo} \section{Some heading 2} \label{sec-2} --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="include-test-bad.tex" \section{Some heading 1} \label{sec-1} foo \section{Some heading 2} \label{sec-2} --FCuugMFkClbJLl1L--