all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jan-Mark Batke <badkey@gmx.net>
To: Org-Mode <emacs-orgmode@gnu.org>
Subject: reftex label generation and referencing
Date: Thu, 4 Jul 2013 16:16:56 +0000	[thread overview]
Message-ID: <CAHLa=T_Ut=c9V9KLfqFj2aLb5xJizYzM1TsTe-kQwaXn4LsNCA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1622 bytes --]

             reply	other threads:[~2013-07-04 16:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04 16:16 Jan-Mark Batke [this message]
2013-07-04 16:44 ` reftex label generation and referencing Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHLa=T_Ut=c9V9KLfqFj2aLb5xJizYzM1TsTe-kQwaXn4LsNCA@mail.gmail.com' \
    --to=badkey@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.