From mboxrd@z Thu Jan 1 00:00:00 1970 From: wlharvey4@mac.com Subject: Seeking identical output for export Date: Tue, 7 Jan 2020 10:22:21 -0800 Message-ID: <20CA6217-EECB-48CF-B17B-D933CD0ABD51@mac.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45682) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iotUp-0002wg-Nr for emacs-orgmode@gnu.org; Tue, 07 Jan 2020 13:22:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iotUo-0007mw-NG for emacs-orgmode@gnu.org; Tue, 07 Jan 2020 13:22:27 -0500 Received: from pv50p00im-ztdg10011201.me.com ([17.58.6.39]:49929) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iotUo-0007jc-HP for emacs-orgmode@gnu.org; Tue, 07 Jan 2020 13:22:26 -0500 Received: from [192.168.0.7] (c-73-96-79-94.hsd1.wa.comcast.net [73.96.79.94]) by pv50p00im-ztdg10011201.me.com (Postfix) with ESMTPSA id 588F4800A5F for ; Tue, 7 Jan 2020 18:22:22 +0000 (UTC) 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" To: emacs-orgmode@gnu.org Hello: I am seeking to find the right way to obtain identical output when = exporting an Org file into texinfo using the export menu from within the = Org file as well as from a Makefile using an Emacs batch script. Currently I am using (org-export-to-file =E2=80=98texinfo = =E2=80=9C=E2=80=9D) from within a Makefile. This produces a = file that has a few differences from that produced by using the export = menu 'C-c C-e i t=E2=80=99. The batch script is: emacs -Q --batch --eval '\ (progn \ (require '\''org) \ (require '\''ob) \ (require '\''ox-texinfo) \ (require '\''ob-shell) \ (setq org-confirm-babel-evaluate nil) \ (find-file "$(ORG)") \ (org-export-to-file '\''texinfo "$(TEXI)"))' The differences include: - the {{{date}}} macro is empty when created with the Makefile e.g. subtitle Version 0.0.0=20 versus subtitle Version 0.0.0 2020-01-07 10:05 The Org source is: #+subtitle {{{version}}} {{{date}}} #+macro:version Version 0.0.0 The version macro is expanded but not the date macro. - references are random strings rather than similar to the #+name when = created with the Makefile e.g. float Listing,orge1fba27 versus=20 float Listing,get-org-filename - periods at the end of variable references e.g. ... exists: $NEWDIR. versus=20 ...exists: $NEWDIR@. Thank you for any suggestions. Wesley=