From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] Captions for tables made by source blocks Date: Wed, 06 Mar 2013 13:28:11 +0100 Message-ID: <87zjygzp9g.fsf@gmail.com> References: <20130306095512.GA1489@panahar> <87k3pk268w.fsf@gmail.com> <20130306105410.GA8157@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDDSM-0002vt-FQ for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 07:28:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDDSK-0007He-GM for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 07:28:26 -0500 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:60236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDDSK-0007H9-AM for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 07:28:24 -0500 Received: by mail-wi0-f169.google.com with SMTP id l13so2995561wie.4 for ; Wed, 06 Mar 2013 04:28:23 -0800 (PST) In-Reply-To: <20130306105410.GA8157@panahar> (Vikas Rawal's message of "Wed, 6 Mar 2013 16:24:10 +0530") 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-orgmode@gnu.org Cc: Eric Schulte Vikas Rawal writes: >> CAPTION keyword above a source block applies to the source block only. >> If the source block generates a table, you have to put a CAPTION above >> it, as it will not inherit the caption of the source block. >> >> It also implies that you need to name the results. Otherwise, source >> block will not recognize its own production, due to the CAPTION keyword >> above it. >> > > Thank you once again Nicolas. > > I understand from this that the variable org-babel-results-keyword has > to be changed to NAME. I did this and it works. > > Is there a way that this could be file-specific? I wasn't clear. By "naming the results", I mean that you must provide your source block a "#+NAME: something" attribute, so the generated table gets a "#+RESULTS: something" attribute. BTW, you mustn't change `org-babel-results-keyword'. I don't even know why this is a defcustom and why it is allowed to turn it into "NAME". RESULTS refers to the name of the src-block which produced the current element, whereas NAME refers to the name of the current element. Their purpose is completely different. Cc'ing Eric Schulte about it. Regards, -- Nicolas Goaziou