From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Bug: begin_src org :results replace does not work Date: Mon, 29 May 2017 16:59:12 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFUZG-0005Bl-6W for emacs-orgmode@gnu.org; Mon, 29 May 2017 19:59:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFUZD-0000oZ-4B for emacs-orgmode@gnu.org; Mon, 29 May 2017 19:59:22 -0400 Received: from iport-bcv4-out.ucsd.edu ([132.239.0.122]:51206) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFUZC-0000oQ-JP for emacs-orgmode@gnu.org; Mon, 29 May 2017 19:59:19 -0400 In-Reply-To: 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: Vikas Rawal Cc: "emacs-orgmode@gnu.org" On Mon, 29 May 2017, Vikas Rawal wrote: >> >>> >> The problem is that the results you generate is a table with affiliated >> keywords NAME and CAPTION and ATTR_[backend]. >> >> `org-at-table-p' does not recognize that the keywords are followed by a >> table. Altering this function might be asking for trouble as it is used >> outside babel. >> >> So maybe the cond test should refer to `org-element-context' to better >> sort this out and correctly identify the table end. >> >> > Thanks for the explanation. > > Since this was meant for use in a tutorial, I wanted #+NAME, etc to be > there. > > I will have to use some other work around. :wrap does not work for me, as > it does not remove the , escape characters. > Right. But that should export properly. If you just want to show what the src block yields on execution, perhaps: #+NAME: one #+BEGIN_SRC org :results replace drawer ,#+NAME: table-yield ,#+CAPTION: Simple table created using latex tabular environment ,#+attr_latex: :environment tabular :width \textwidth :align lrr | State | Variable one | Varia two | |----------------+---------------+----------------| | MP | 672 | 13000 | | Har | 300 | 25000 | | Pun | 260 | 35000 | #+End_SRC Chuck