From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Spencer Subject: Re: Reftex in Org-Mode exporting and recognizing figures or equations Date: Sun, 5 Aug 2012 19:02:53 +1000 Message-ID: References: <87a9yc5n85.fsf@pank.lan> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04182658b214a704c6810739 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sxwjw-0007oQ-Eo for emacs-orgmode@gnu.org; Sun, 05 Aug 2012 05:03:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sxwju-0006RF-Fo for emacs-orgmode@gnu.org; Sun, 05 Aug 2012 05:03:12 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:32987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sxwju-0006QY-9N for emacs-orgmode@gnu.org; Sun, 05 Aug 2012 05:03:10 -0400 Received: by wibhm11 with SMTP id hm11so605261wib.12 for ; Sun, 05 Aug 2012 02:03:09 -0700 (PDT) In-Reply-To: <87a9yc5n85.fsf@pank.lan> 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: Rasmus Cc: emacs-orgmode@gnu.org --f46d04182658b214a704c6810739 Content-Type: text/plain; charset=ISO-8859-1 When I use your setup and insert a citation then export to latex I get: [[cite:Paper]] turns into: \ref{cite-Paper} On Fri, Aug 3, 2012 at 7:38 PM, Rasmus wrote: > (defun org-mode-reftex-setup () > (load-library "reftex") > (and (buffer-file-name) > (file-exists-p (buffer-file-name)) > (reftex-parse-all)) > (make-local-variable 'reftex-cite-format) > (setq reftex-cite-format 'org) > (define-key org-mode-map (kbd "C-c )") 'reftex-citation)) > > (add-hook 'org-mode-hook 'org-mode-reftex-setup) > > > (eval-after-load 'reftex-vars > '(progn > > (add-to-list 'reftex-cite-format-builtin > '(org "Org-mode citation" > ((?\C-m . "[[cite:%l]]") > (?t . "[[textcite:%l]]") > (?p . "[[parencite:%l]]") > (?s . "[[posscite:%l]]") > (?a . "[[citeauthor:%l]]") > (?y . "[[citeyear:%l]]")))))) > --f46d04182658b214a704c6810739 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When I use your setup and insert a citation then export to latex I get:[[cite:Paper]]
turns into:
\ref{cite-Paper}
=


On Fri, Aug 3, 2012 at 7:38 P= M, Rasmus <rasmus@gmx.us> wrote:
(defun org-mode-reftex-setu= p ()
=A0 =A0 (load-library "reftex")
=A0 =A0 (and (buffer-file-name)
=A0 =A0 =A0 =A0 =A0(file-exists-p (buffer-file-name))
=A0 =A0 =A0 =A0 =A0(reftex-parse-all))
=A0 =A0 (make-local-variable 'reftex-cite-format)
=A0 =A0 (setq reftex-cite-format 'org)
=A0 =A0 (define-key org-mode-map (kbd "C-c )") 'reftex-citati= on))

=A0 (add-hook 'org-mode-hook 'org-mode-reftex-setup)


(eval-after-load 'reftex-vars
=A0 '(progn

=A0 =A0 =A0(add-to-list 'reftex-cite-format-builtin
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '(org "Org-mode citation"=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ((?\C-m . "[[cite:%l]]= ")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(?t . "[[textcite:%= l]]")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(?p . "[[parencite:= %l]]")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(?s . "[[posscite:%= l]]")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(?a . "[[citeauthor= :%l]]")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(?y . "[[citeyear:%= l]]"))))))

--f46d04182658b214a704c6810739--