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 19:17:21 +0200 Message-ID: <871tdywafy.fsf@nicolasgoaziou.fr> References: <87613awcqw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcGJ6-00073X-V0 for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 13:15:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcGJ5-0006S7-Ut for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 13:15:44 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:55632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcGJ5-0006Rk-GK for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 13:15:43 -0400 In-Reply-To: (Andrew Davis's message of "Wed, 16 Sep 2015 16:35:03 +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: > Thanks for getting back to me. Unfortunately this is not the issue I am > reporting. The problem is that the #+NAME that produces the label is > incorrectly exported to the LaTeX document. That is it is the weird > \label{fig:orgparagraph1} which is not what I am trying to label the figure > as. > > You are right that [[fig:result_plot]] does produce the > \ref{fig:result_plot}, However, the reference appears unresolved in the > resulting document because the figure itself is incorrectly labeled. I cannot reproduce it. With the following document #+CAPTION: Plot of something interesting. #+ATTR_LaTeX: :width \textwidth #+NAME: fig:result_plot file:./img/plot.pdf [[fig:result_plot]] I get \begin{figure}[htb] \centering \includegraphics[width=\textwidth]{./img/plot.pdf} \caption{\label{fig:orgparagraph1} Plot of something interesting.} \end{figure} \ref{fig:orgparagraph1} which seems fine. Regards,