From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Fenton Subject: Babel - :export-dir and :file-ext arguments cause all blocks to emit files Date: Thu, 24 May 2018 23:50:30 +0200 Message-ID: <3ac2f42a-8ff2-1464-fa36-451e2ef0eacd@pressure.to> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------2DA3F1CEAD35B6AFDD462158" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLyed-00020p-8N for emacs-orgmode@gnu.org; Thu, 24 May 2018 18:24:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLyeZ-0008T8-4N for emacs-orgmode@gnu.org; Thu, 24 May 2018 18:24:15 -0400 Received: from darwin.servwise.com ([31.193.138.136]:60598) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLyeY-0008Jd-Qd for emacs-orgmode@gnu.org; Thu, 24 May 2018 18:24:11 -0400 Received: from p578d3681.dip0.t-ipconnect.de ([87.141.54.129]:46558 helo=[192.168.178.25]) by darwin.servwise.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fLy7z-0002fE-2v for emacs-orgmode@gnu.org; Thu, 24 May 2018 21:50:31 +0000 Content-Language: en-GB 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. --------------2DA3F1CEAD35B6AFDD462158 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, As far I understand it, |:output-dir| and |:file-ext| that were intended to be used in the global document header, applying to all blocks. However, it seems to mean that all blocks regardless of their :results args then emit a file, and put their output as a [file:] link. It's not clear from the docs why this happens. Am I missing something, or does this mean that these arguments are useless unless a document happens only to emit graphics from blocks? At the moment, the blocks (R, as it happens) are meant to sometimes emit scalars, sometimes literal latex, sometimes tables to be formatted by orgs, and sometimes graphics. But all the non-graphics are at the moment being stuffed into (non-working) PDF files. Following a discussion and suggested, but not-working solution at: https://emacs.stackexchange.com/questions/41618/org-modes-output-dir-and-file-ext-arguments-cause-all-output-to-be-saved-to Thanks alex --------------2DA3F1CEAD35B6AFDD462158 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hi,

As far I understand it, :output-dir and :file-ext that were intended to be used in the global document header, applying to all blocks.

However, it seems to mean that all blocks regardless of their :results args then emit a file, and put their output as a [file:] link. It's not clear from the docs why this happens.

Am I missing something, or does this mean that these arguments are useless unless a document happens only to emit graphics from blocks? At the moment, the blocks (R, as it happens) are meant to sometimes emit scalars, sometimes literal latex, sometimes tables to be formatted by orgs, and sometimes graphics. But all the non-graphics are at the moment being stuffed into (non-working) PDF files.

Following a discussion and suggested, but not-working solution at: https://emacs.stackexchange.com/questions/41618/org-modes-output-dir-and-file-ext-arguments-cause-all-output-to-be-saved-to

Thanks

alex

--------------2DA3F1CEAD35B6AFDD462158--