From mboxrd@z Thu Jan  1 00:00:00 1970
From: Christian Moe <mail@christianmoe.com>
Subject: Re: exporting cross-references to source block results CORRECTION
Date: Thu, 11 Apr 2013 12:37:32 +0200
Message-ID: <m238uxwdxv.fsf@christianmoe.com>
References: <20130411084634.GA10767@panahar> <m261ztwgif.fsf@christianmoe.com>
	<20130411095747.GC18521@panahar>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:46011)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@christianmoe.com>) id 1UQEqg-0000Qd-8B
	for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 06:35:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mail@christianmoe.com>) id 1UQEqd-0004qR-IY
	for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 06:35:22 -0400
Received: from mail2.b1.hitrost.net ([91.185.211.205]:29930)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@christianmoe.com>) id 1UQEqd-0004q4-Bl
	for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 06:35:19 -0400
In-reply-to: <20130411095747.GC18521@panahar>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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: Vikas Rawal <vikaslists@agrarianresearch.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>


Oops, sorry, I take back my last message, there was an error in my test
example.

Adding a #+NAME above the generated table DOES result in a correct
cross-reference. That seems like reasonable behavior to me.

Vikas, can you try this? Simply add a name to the generated table when
you also add a caption, and use that name to link.

Yours,
Christian



>> Vikas Rawal didn't say if he also added a `#+NAME: foo' line above the
>> generated table. I expected that to solve it, so I tried. This did give
>> the table an `id="foo"' attribute on HTML export for a cross-reference
>> to target. However, the cross-reference still behaved the same way.
>
> Thanks Christian for confirming this. 
>
> The previous discussion is at
> http://thread.gmane.org/gmane.emacs.orgmode/67727/
>
> I had mentioned that everything works fine if you change the variable
> org-babel-results-keyword to NAME. But Nicolas said that should not be
> done and that the exporter should work correctly with #+RESULTS. But
> at least for me, it does not work correctly.
>
> Vikas