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 18:27:35 +0200 Message-ID: <87613awcqw.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcFWx-0006m6-RI for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 12:26:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcFWw-0004T7-Va for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 12:25:59 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:59935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcFWw-0004Sz-P3 for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 12:25:58 -0400 In-Reply-To: (Andrew Davis's message of "Tue, 15 Sep 2015 20:08:45 +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 Hello, Andrew Davis writes: > #+CAPTION: Plot of something interesting. > #+ATTR_LaTeX: :width \textwidth > #+NAME: fig:result_plot > file:./img/plot.pdf > > This method of placing plots into an org document no longer > works. Previously, this would correctly produce the figure with > a consistent label for internal references within the org document and > the exported LaTeX document. Now, the export results in the following > TeX code: > > \begin{figure}[htb] > \centering > \includegraphics[width=\textwidth]{./img/plot.pdf} > \caption{\label{fig:orgparagraph1} > Plot of something interesting.} > \end{figure} > > As it can be seen above, the intended label of fig:result_plot is no > longer exported. This breaks any reference to \ref{fig:result_plot} in > the LaTeX document while the label of ref:fig:result_plot only works > within the org document. This is usually not an issue since [[fig:result_plot]] will results in \ref{fig:result_plot}. In any case, see `org-latex-prefer-user-labels'. Regards, -- Nicolas Goaziou