From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: Re: [new exporter] Captions for tables made by source blocks Date: Wed, 6 Mar 2013 20:52:54 -0500 Message-ID: References: <20130306095512.GA1489@panahar> <87k3pk268w.fsf@gmail.com> <20130306105410.GA8157@panahar> <87zjygzp9g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f6477c74b944204d74bf82e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDQ1J-0000H0-HN for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 20:53:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDQ1I-0006aD-2y for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 20:53:21 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:59955 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDQ1H-0006a9-Tu for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 20:53:19 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 52833BC06 for ; Wed, 6 Mar 2013 20:53:16 -0500 (EST) Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 22F13BC04 for ; Wed, 6 Mar 2013 20:53:16 -0500 (EST) Received: from mail-oa0-f41.google.com (unknown [209.85.219.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id A9EC1BBFE for ; Wed, 6 Mar 2013 20:53:15 -0500 (EST) Received: by mail-oa0-f41.google.com with SMTP id i10so13767305oag.0 for ; Wed, 06 Mar 2013 17:53:15 -0800 (PST) In-Reply-To: <87zjygzp9g.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Eric Schulte --e89a8f6477c74b944204d74bf82e Content-Type: text/plain; charset=UTF-8 On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou wrote: > 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. > Interesting that this topic comes up today just as I noticed it. I'm still unclear about how to put the CAPTION keyword in when using a dynamic block via org-collector.el. I have the lines below and I do not get a table caption like I used to in the old exporter. #+NAME: tbl-coi #+CAPTION: COI Table #+BEGIN: propview :colnames ( "Area" "Shorthand" "COI" ) :cols ( AREA CATEGORY ITEM ) :match "+COI+LEVEL=2-ARCHIVE" :noquote t :scope agenda :inherit (AREA) Mike --e89a8f6477c74b944204d74bf82e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou <n.goaziou@gmail.com= > wrote:
Vikas Rawal <vikaslists@agrarianresearch.org> wri= tes:

>> CAPTION keyword above a source block applies to the source block o= nly.
>> If the source block generates a table, you have to put a CAPTION a= bove
>> it, as it will not inherit the caption of the source block.
>>
>> It also implies that you need to name the results. Otherwise, sour= ce
>> block will not recognize its own production, due to the CAPTION ke= yword
>> 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 t= hat you must provide
your source block a "#+NAME: something" attribute, so the generat= ed
table gets a "#+RESULTS: something" attribute.

Interesting that this topic comes up today just as I noti= ced it. I'm still unclear about how to put the CAPTION keyword in when = using a dynamic block via org-collector.el.

I have the lines below and I do not get a table caption= like I used to in the old exporter.

#+NAME: tbl-c= oi
#+CAPTION: COI Table
#+BEGIN: propview :colnames ( &= quot;Area" "Shorthand" "COI" ) :cols ( AREA CATEGO= RY ITEM ) :match "+COI+LEVEL=3D2-ARCHIVE" :noquote t :scope agend= a :inherit (AREA)

Mike
=C2=A0
--e89a8f6477c74b944204d74bf82e--