From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: LaTeX export #+NAME failing [8.3.1 (release_8.3.1-123-g823cad @ /home/amdavis/src/org-mode/lisp/)] Date: Wed, 16 Sep 2015 22:47:15 +0200 Message-ID: <87si6eum5o.fsf@nicolasgoaziou.fr> References: <87613awcqw.fsf@nicolasgoaziou.fr> <871tdywafy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcJaG-0007k1-00 for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 16:45:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcJaF-0004hh-1u for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 16:45:39 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcJaE-0004hG-OS for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 16:45:38 -0400 In-Reply-To: (Andrew Davis's message of "Wed, 16 Sep 2015 17:30:18 +0000") 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: Andrew Davis Cc: emacs-orgmode@gnu.org Andrew Davis writes: > You are getting the same results I am. What is concerning me is the fact > that the label you are applying in the document: > > #+NAME: fig:result_plot > > is not the label that is being applied to the the exported tex document, > i.e. > > \label{fig:orgparagraph1} > > \ref{fig:orgparagraph1} > > This is rather problematic as there are a variety of things that sometimes > need to be done with just pure LaTeX in a babel source block that operate > on the figures elsewhere in the org document. If I want to create some > multi figure plot in which the internal caption references another figure, > the reference in that caption to \ref{fig:result_plot} will no longer work. > > Again, I am pretty sure this is a bug as it was previously possible to > refer to the assigned labels (i.e. fig:result_plot) rather than needing to > know whatever sequential reference is assigned by org mode on the > export. This is a feature. And I already explained in my first answer how to tweak it. Regards,