From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: exporting cross-references to source block results CORRECTION Date: Thu, 11 Apr 2013 12:37:32 +0200 Message-ID: References: <20130411084634.GA10767@panahar> <20130411095747.GC18521@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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." 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: Vikas Rawal Cc: emacs-orgmode 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