emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to add a label in LaTeX export
@ 2016-09-06  8:32 Florian Lindner
  2016-09-06  8:59 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Lindner @ 2016-09-06  8:32 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

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. I also tried using #+LABEL or transposing NAME and caption
but same result.

What is wrong there?

Thanks,
Florian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-09  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06  8:32 How to add a label in LaTeX export Florian Lindner
2016-09-06  8:59 ` Nicolas Goaziou
2016-09-09  8:53   ` Florian Lindner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).