From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Lindner <mailinglists@xgm.de> Subject: Re: How to add a label in LaTeX export Date: Fri, 9 Sep 2016 10:53:54 +0200 Message-ID: <nqttb0$13s$1@blaine.gmane.org> References: <nqluvo$vm4$1@blaine.gmane.org> <87zinlv1y9.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:59273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1biHZp-0004IZ-6A for emacs-orgmode@gnu.org; Fri, 09 Sep 2016 04:54:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1biHZl-0002Ei-0w for emacs-orgmode@gnu.org; Fri, 09 Sep 2016 04:54:24 -0400 Received: from [195.159.176.226] (port=33861 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1biHZk-0002Do-Q5 for emacs-orgmode@gnu.org; Fri, 09 Sep 2016 04:54:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1biHZb-0002wC-D8 for emacs-orgmode@gnu.org; Fri, 09 Sep 2016 10:54:11 +0200 In-Reply-To: <87zinlv1y9.fsf@saiph.selenimh> List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode/> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=subscribe> Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: emacs-orgmode@gnu.org Am 06.09.2016 um 10:59 schrieb Nicolas Goaziou: > Hello, > > Florian Lindner <mailinglists@xgm.de> writes: > >> I have this org mode document: >> >> #+BEGIN_SRC python :exports results :results file >> import matplotlib.pyplot as plt, numpy as np >> x = np.linspace(-2, 2, 1000) >> plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4") >> plt.plot(x, np.exp(-np.power(2*x, 2)), label="shape-parameter=2") >> for i in range(-6, 7): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", color="r") >> plt.grid() >> plt.legend() >> plt.savefig('rbf-gaussian-4.pdf') >> return "rbf-gaussian-4.pdf" >> #+END_SRC >> #+NAME: fig:GaussianExample >> #+CAPTION: Gaussian Basis functions with vertex distances marked at $n \cdot \frac{1}{6}$. >> #+RESULTS: >> [[file:rbf-gaussian-4.pdf]] >> >> >> which exports to: >> >> >> \begin{document} >> >> \tableofcontents >> >> \begin{figure}[htb] >> \centering >> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf} >> \caption{\label{fig:orgparagraph1} >> Gaussian Basis functions with vertex distances marked at \(n \cdot \frac{1}{6}\).} >> \end{figure} >> \end{document} >> >> >> The #+NAME which I expect to translate to a label is ignored. > > It isn't. It is changed into > > \label{fig:orgparagraph1} > > See also `org-latex-prefer-user-labels'. Thanks, see related issue for org-ref: https://github.com/jkitchin/org-ref/issues/285 Florian