From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Davis Subject: Bug: LaTeX export #+NAME failing [8.3.1 (release_8.3.1-123-g823cad @ /home/amdavis/src/org-mode/lisp/)] Date: Tue, 15 Sep 2015 20:08:45 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114136486442e2051fcec06b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbwXF-0006VE-Po for emacs-orgmode@gnu.org; Tue, 15 Sep 2015 16:09:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbwXA-0003Ya-LD for emacs-orgmode@gnu.org; Tue, 15 Sep 2015 16:09:01 -0400 Received: from authsmtp01.uchicago.edu ([128.135.12.121]:43899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbwXA-0003YS-Gb for emacs-orgmode@gnu.org; Tue, 15 Sep 2015 16:08:56 -0400 Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com [209.85.160.173]) (Authenticated sender: amdavis) by authsmtp01.uchicago.edu (Postfix) with ESMTP id 4C9484980B9 for ; Tue, 15 Sep 2015 15:08:55 -0500 (CDT) Received: by ykdt18 with SMTP id t18so177621914ykd.3 for ; Tue, 15 Sep 2015 13:08:55 -0700 (PDT) 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: emacs-orgmode@gnu.org --001a114136486442e2051fcec06b Content-Type: text/plain; charset=UTF-8 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ #+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. I do not regularly update my org-mode version, so the last working commit I had been using behaves correctly is 83fe247. Please let me know if I can provide any other information. Best, Andrew Emacs : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on bitzer.hoetzel.info Package: Org-mode version 8.3.1 (release_8.3.1-123-g823cad @ /home/amdavis/src/org-mode/lisp/) --001a114136486442e2051fcec06b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? Se= e

http://or= gmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

#+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=3D\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.

I do not regularly update my org-mode version, so the last working
commit I had been using behaves correctly is 83fe247. Please let me know
if I can provide any other information.

Best,
Andrew

Emacs : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2)
of 2015-04-20 on bitzer.hoetzel.inf= o
Package: Org-mode version 8.3.1 (release_8.3.1-123-g823cad @ /home/amdavis/= src/org-mode/lisp/)=C2=A0
--001a114136486442e2051fcec06b-- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Davis 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 16:35:03 +0000 Message-ID: References: <87613awcqw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07b550f0e266051fdfe13e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcFfy-0003Yf-My for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 12:35:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcFft-0000Ll-Fe for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 12:35:18 -0400 Received: from authsmtp03.uchicago.edu ([128.135.165.74]:37968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcFft-0000Lh-8o for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 12:35:13 -0400 Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) (Authenticated sender: amdavis) by authsmtp03.uchicago.edu (Postfix) with ESMTPSA id 9F8EB1F500 for ; Wed, 16 Sep 2015 11:35:12 -0500 (CDT) Received: by ykdt18 with SMTP id t18so204415023ykd.3 for ; Wed, 16 Sep 2015 09:35:12 -0700 (PDT) In-Reply-To: <87613awcqw.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org --94eb2c07b550f0e266051fdfe13e Content-Type: text/plain; charset=UTF-8 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. Best, Andrew On Wed, Sep 16, 2015 at 11:26 AM Nicolas Goaziou wrote: > 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 > --94eb2c07b550f0e266051fdfe13e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for getting back to me. Unfortunately this is not t= he issue I am reporting. The problem is that the #+NAME that produces the l= abel 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 figur= e as.

You are right that [[fig:result_plot]] does produc= e the \ref{fig:result_plot}, However, the reference appears unresolved in t= he resulting document because the figure itself is incorrectly labeled.

Best,
Andrew

On Wed, Sep 16, 2015 at 11:26 AM Nicolas Goaziou <<= a href=3D"mailto:mail@nicolasgoaziou.fr">mail@nicolasgoaziou.fr> wro= te:
Hello,

Andrew Davis <= amdavis@uchicago.edu> 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<= br> > TeX code:
>
> \begin{figure}[htb]
> \centering
> \includegraphics[width=3D\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
--94eb2c07b550f0e266051fdfe13e-- 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, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Davis 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 17:30:18 +0000 Message-ID: References: <87613awcqw.fsf@nicolasgoaziou.fr> <871tdywafy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114214788dfea1051fe0a748 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcGXQ-00056V-8N for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 13:30:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcGXM-00067F-US for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 13:30:32 -0400 Received: from authsmtp01.uchicago.edu ([128.135.12.121]:39176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcGXM-000674-Cl for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 13:30:28 -0400 Received: from mail-yk0-f181.google.com (mail-yk0-f181.google.com [209.85.160.181]) (Authenticated sender: amdavis) by authsmtp01.uchicago.edu (Postfix) with ESMTP id F07E04980C6 for ; Wed, 16 Sep 2015 12:30:27 -0500 (CDT) Received: by ykdt18 with SMTP id t18so206083748ykd.3 for ; Wed, 16 Sep 2015 10:30:27 -0700 (PDT) In-Reply-To: <871tdywafy.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org --001a114214788dfea1051fe0a748 Content-Type: text/plain; charset=UTF-8 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. Best, Andrew On Wed, Sep 16, 2015 at 12:15 PM Nicolas Goaziou wrote: > 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, > --001a114214788dfea1051fe0a748 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 t= hat is being applied to the the exported tex document, i.e.

<= /div>
\label{fig:orgparagraph1}

\ref{fig:orgpa= ragraph1}

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 docum= ent. If I want to create some multi figure plot in which the internal capti= on references another figure, the reference in that caption to \ref{fig:res= ult_plot} will no longer work.

Again, I am pretty = sure this is a bug as it was previously possible to refer to the assigned l= abels (i.e. fig:result_plot) rather than needing to know whatever sequentia= l reference is assigned by org mode on the export.

Best,
Andrew

On Wed, Sep 16, 2015 at 12:15 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Andrew Davis <amdavis@uchicago.edu> writes:

> Thanks for getting back to me. Unfortunately this is not the issue I a= m
> 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 f= igure
> as.
>
> You are right that [[fig:result_plot]] does produce the
> \ref{fig:result_plot}, However, the reference appears unresolved in th= e
> resulting document because the figure itself is incorrectly labeled.
I cannot reproduce it. With the following document

=C2=A0 #+CAPTION: Plot of something interesting.
=C2=A0 #+ATTR_LaTeX: :width \textwidth
=C2=A0 #+NAME: fig:result_plot
=C2=A0 file:./img/plot.pdf

=C2=A0 [[fig:result_plot]]

I get

=C2=A0 \begin{figure}[htb]
=C2=A0 \centering
=C2=A0 \includegraphics[width=3D\textwidth]{./img/plot.pdf}
=C2=A0 \caption{\label{fig:orgparagraph1}
=C2=A0 Plot of something interesting.}
=C2=A0 \end{figure}

=C2=A0 \ref{fig:orgparagraph1}

which seems fine.

Regards,
--001a114214788dfea1051fe0a748-- 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, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Davis 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 21:08:16 +0000 Message-ID: References: <87613awcqw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11490ede13745e051fe3b3f5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcJwO-0006PK-MA for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 17:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcJwJ-00063u-Kb for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 17:08:32 -0400 Received: from authsmtp01.uchicago.edu ([128.135.12.121]:44406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcJwJ-00063m-GE for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 17:08:27 -0400 Received: from mail-yk0-f181.google.com (mail-yk0-f181.google.com [209.85.160.181]) (Authenticated sender: amdavis) by authsmtp01.uchicago.edu (Postfix) with ESMTP id 35BD44980B9 for ; Wed, 16 Sep 2015 16:08:26 -0500 (CDT) Received: by ykdu9 with SMTP id u9so233311998ykd.2 for ; Wed, 16 Sep 2015 14:08:25 -0700 (PDT) In-Reply-To: <87613awcqw.fsf@nicolasgoaziou.fr> 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 , emacs-orgmode@gnu.org --001a11490ede13745e051fe3b3f5 Content-Type: text/plain; charset=UTF-8 Nicolas, Thanks for following up on this with me. I now understand that this is intentional. Could you just briefly let me know why this is a feature? I am assuming that this is so that org references are unique should you accidentally reuse a label? Best, Andrew On Wed, Sep 16, 2015 at 11:26 AM Nicolas Goaziou wrote: > 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 > --001a11490ede13745e051fe3b3f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Nicolas,

Thanks for following up on thi= s with me. I now understand that this is intentional. Could you just briefl= y let me know why this is a feature? I am assuming that this is so that org= references are unique should you accidentally reuse a label?
Best,
Andrew

= On Wed, Sep 16, 2015 at 11:26 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Andrew Davis <= amdavis@uchicago.edu> 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<= br> > TeX code:
>
> \begin{figure}[htb]
> \centering
> \includegraphics[width=3D\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
--001a11490ede13745e051fe3b3f5-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benda Xu Subject: Re: Bug: LaTeX export #+NAME failing [8.3.1 (release_8.3.1-123-g823cad @ /home/amdavis/src/org-mode/lisp/)] Date: Thu, 17 Sep 2015 12:25:59 +0900 Message-ID: <87bnd1ohfc.fsf@gentoo.org> 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]:34280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcPoy-0005N8-1N for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 23:25:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcPou-0004cF-Ug for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 23:25:16 -0400 Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:53129 helo=smtp.gentoo.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcPou-0004br-Oi for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 23:25:12 -0400 Received: from proton (www20427ue.sakura.ne.jp [49.212.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: heroxbd) by smtp.gentoo.org (Postfix) with ESMTPSA id 54C94340BA1 for ; Thu, 17 Sep 2015 03:25:10 +0000 (UTC) In-Reply-To: (Andrew Davis's message of "Wed, 16 Sep 2015 21:08:16 +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: emacs-orgmode@gnu.org Hi Andrew, Andrew Davis writes: > Thanks for following up on this with me. I now understand that this is > intentional. Could you just briefly let me know why this is a feature? > I am assuming that this is so that org references are unique should > you accidentally reuse a label? I think you are right. Please refer to this thread: http://thread.gmane.org/gmane.emacs.orgmode/96887 Benda 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: Thu, 17 Sep 2015 09:16:01 +0200 Message-ID: <87k2rpv7m6.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]:35536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcTOi-0006JK-GI for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 03:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcTOh-0004hF-Lf for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 03:14:24 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:51645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcTOh-0004h6-Fb for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 03:14:23 -0400 In-Reply-To: (Andrew Davis's message of "Wed, 16 Sep 2015 21:08:16 +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: > Could you just briefly let me know why this is a feature? I am > assuming that this is so that org references are unique should you > accidentally reuse a label? The main reason is that it puts much less restrictions on the name of internal links and is more portable across back-ends. Regards,