From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan-Mark Batke Subject: reftex label generation and referencing Date: Thu, 4 Jul 2013 16:16:56 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7ba9719839e81404e0b1e83f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UumDP-0001iA-0n for emacs-orgmode@gnu.org; Thu, 04 Jul 2013 12:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UumDK-0004MF-7Q for emacs-orgmode@gnu.org; Thu, 04 Jul 2013 12:17:02 -0400 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:53766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UumDK-0004Lr-02 for emacs-orgmode@gnu.org; Thu, 04 Jul 2013 12:16:58 -0400 Received: by mail-pd0-f176.google.com with SMTP id t12so1218830pdi.7 for ; Thu, 04 Jul 2013 09:16:56 -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: Org-Mode --047d7ba9719839e81404e0b1e83f Content-Type: text/plain; charset=ISO-8859-1 Hi all. I turned on reftex-mode in ord-mode and did some experiments with the automated reftex label generation which I like a lot. 1. A reference is generated for Fig.~\ref{fig:1} nicely using reftex using C-c ) as shown in this text. #+BEGIN_LaTeX \begin{figure}[h] \centering \includegraphics{test} \label{fig:1} \caption{text} \end{figure} #+END_LaTeX However, reftex complains when using the automated label insertion as started by auctex when I use the latex editing buffer started with C-c', e.g. : reftex-access-scan-info: RefTeX works only in buffers visiting a file so I inserted the label afterwards in the org-buffer. Is it possible to avoid that problem? 2. How do I actually address Figure~\ref{fig:name} (this is the latex way) using org-mode means (to be more generic)? #+name: fig:name #+caption: Figure [[ ./figure.png]] 3. Is there a difference between #+name: and #+label: to label a figure? Best Jan-Mark -- Jan-Mark Batke badkey@gmx.net FON +49 511 33 64 800 FAX +49 511 22 09 521 --047d7ba9719839e81404e0b1e83f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all.

I turned on reftex-m= ode in ord-mode and did some experiments with the
automated refte= x label generation which I like a lot.

1. A refere= nce is generated for Fig.~\ref{fig:1} nicely using reftex
=A0 =A0using C-c ) as shown in this text.
=A0 =A0#+BEGIN_LaT= eX
=A0 =A0\begin{figure}[h]
=A0 =A0 =A0 \centering
=A0 =A0 =A0 \includegraphics{test}
=A0 =A0 =A0 \label{fig:1= }
=A0 =A0 =A0 \caption{text}
=A0 =A0 \end{figure}
=A0 =A0#+END_LaTeX
=A0 =A0How= ever, reftex complains when using the automated label insertion
= =A0 =A0as started by auctex when I use the latex editing buffer started
=A0 =A0with C-c', e.g.
=A0=A0
=A0 =A0: reftex-access-scan-info: RefTeX works only i= n buffers visiting a file
=A0=A0
=A0 =A0so I inserted t= he label afterwards in the org-buffer.
=A0 =A0Is it possible to a= void that problem?
=A0=A0
2. How do I actually address Figure~\ref{fig:name} (t= his is the latex
=A0 =A0way) using org-mode means (to be more gen= eric)?
=A0=A0
=A0 =A0#+name: fig:name
=A0 =A0= #+caption: Figure
=A0 [[ =A0./figure.png]]

3. Is there a differ= ence between #+name: and #+label: to label a
=A0 =A0figure?
=

Best=A0

Jan-Mark
--
Jan-Mark Batke=A0=A0badkey@gmx.net=A0
FON +49 511 33 64 800=A0
FAX +49 51= 1 22 09 521
--047d7ba9719839e81404e0b1e83f--