From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: #+INCLUDE causes error when it attmepts to expand a LaTeX macro in source block Date: Sat, 7 Dec 2019 22:07:27 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------60D1DFDE225915F8BA149DCD" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idmvQ-00026S-5m for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 22:08:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idmvF-0002vI-7D for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 22:07:54 -0500 Received: from sonic316-55.consmr.mail.gq1.yahoo.com ([98.137.69.31]:35998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idmv9-0002rt-Lr for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 22:07:44 -0500 Content-Language: en-US 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" This is a multi-part message in MIME format. --------------60D1DFDE225915F8BA149DCD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Greetings, In my init file I have (setq org-confirm-babel-evaluate nil) File "A" is attached as an org file. I evaluate the source blocks (C-c C-v s), the table is generated and then I export it to PDF. The source blocks do not evaluate during export. In file B I have #+INCLUDE: "/path/to/FileA::*SCHEDULE A1112" When I attempt to export File B to PDF/LaTeX the following error occurs Debugger entered--Lisp error: (error "Undefined Org macro: cmhfill; aborting") signal(error ("Undefined Org macro: cmhfill; aborting")) error("Undefined Org macro: %s; aborting" "cmhfill") If I place a "#+HEADER: :eval no" in the source blocks in File A (after generating the table) File B will export the table to PDF. Also, please note that the cmhfill macro is in the table headings. Is this an error, i.e. the #+INCLUDE does not honor the setting in my init file? Is there a header or property setting for File B to prevent the exporter from evaluating the source blocks when executing through an #+INCLUDE, more particularly to prevent the attempted macro expansion within the source blocks? Both File A and File B had identical LaTeX settings, i.e. the macro was defined in both files. GNU Emacs 27.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.13) of 2019-12-07 Org mode version 9.3 (release_9.3-36-gbe7434 @ /usr/local/share/org-mode/lisp/) Charlie Millar --------------60D1DFDE225915F8BA149DCD Content-Type: text/plain; charset=UTF-8; name="ForINCLUDE-email.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ForINCLUDE-email.org" KiBTQ0hFRFVMRSBBMTExMgojK05BTUU6IFNDSEVEQVAKIytiZWdpbl9zcmMgcmVjIDpkYXRh IHNvbWVmaWxlLnJlYyA6dHlwZSBGaW5hbmNlIDpmaWVsZHMgQWNjb3VudERhdGUsU2hhcmVz LERlc2NyaXB0aW9uLEFjY291bnRBbW91bnQgOnNvcnQgQWNjb3VudERhdGUsRGVzY3JpcHRp b24gOnJlc3VsdHMgc2lsZW50CiAoRmlsZSA9ICdFc3RhdGUnICYmIEFjY291bnRTY2hlZHVs ZSA9ICdBJykKIytlbmRfc3JjCiMrUkVTVUxUUzogU0NIRURBUAojK05BTUU6IFNDSEVEQQoj K2JlZ2luX3NyYyBlbWFjcy1saXNwIDp2YXIgdGFibGU9U0NIRURBUCA6ZXhwb3J0cyByZXN1 bHRzCiAgKHNldHEgdGFibGUgKGNvbnMgJ2hsaW5lIHRhYmxlKSkKICAoc2V0cSB0YWJsZSAo Y29ucyAnKCJEYXRlIiAie3t7Y21oZmlsbH19fSBTaGFyZXMiICIgRGVzY3JpcHRpb24gIiAi e3t7Y21oZmlsbH19fSBJbnZlbnRvcnl7e3tjbTFzcGFjZX19fVZhbHVlIikgdGFibGUpKQog IChzZXRxIHRhYmxlIChhcHBlbmQgdGFibGUgJygoInwgfFRvdGFsIFNjaGVkdWxlIEEiKSkp KQogIChzZXRxIHRhYmxlIChhcHBlbmQgdGFibGUgJygoIlxuIytUQkxGTTogQD4kPj12c3Vt KEBJJD4uLkA+PiQ+KTslLjJmOjoiKSkpKQogIHRhYmxlCiMrZW5kX3NyYwojK0FUVFJfTEFU RVg6IDptb2RlIHRhYmxlIDplbnZpcm9ubWVudCBsb25ndGFibGUgOmFsaWduICBwezYwcHR9 Tns1fXszfXB7Mjc1cHR9Tns4fXsyfQojK1JFU1VMVFM6IFNDSEVEQQp8IERhdGUgICAgICAg fCB7e3tjbWhmaWxsfX19IFNoYXJlcyB8IERlc2NyaXB0aW9uICAgICAgfCB7e3tjbWhmaWxs fX19IEludmVudG9yeXt7e2NtMXNwYWNlfX19VmFsdWUgfAp8LS0tLS0tLS0tLS0tKy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfAp8IDIwMTgtMDMtMTggfCAgICAgICAgICAg ICAgICAgICAgICB8IFNvbWV0aGluZyAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgNDk2NDUuNTkgfAp8IGV0YyAgICAgICAgfCAgICAgICAgICAgICAgICAg ICAgICB8IGV0YyAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIDQ4NzguNTEgfAp8ICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICB8 IFRvdGFsIFNjaGVkdWxlIEEgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg NTQ1MjQuMTAgfAojK1RCTEZNOiBAPiQ+PXZzdW0oQEkkPi4uQD4+JD4pOyUuMmY6OiB8Cg== --------------60D1DFDE225915F8BA149DCD--