From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Reftex in Org-Mode exporting and recognizing figures or equations Date: Fri, 03 Aug 2012 10:38:50 +0100 Message-ID: <87a9yc5n85.fsf@pank.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxELg-00020O-Fv for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 05:39:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxELa-0001y4-9V for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 05:39:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:51020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxELa-0001y0-2P for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 05:39:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SxELX-0002or-8T for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 11:39:03 +0200 Received: from 93-96-208-164.zone4.bethere.co.uk ([93.96.208.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Aug 2012 11:39:03 +0200 Received: from rasmus by 93-96-208-164.zone4.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Aug 2012 11:39:03 +0200 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: emacs-orgmode@gnu.org Jeffrey Spencer writes: > 1) I was wondering if anyone has got the reftex feature of easily > recognizing the figures and equations to insert as a ref command to work in > org-mode. I haven't gotten this to work. It's doable, but requires some work. For now I'd be happy if I could replace the \ref > 2) Also I had seen on a website that you can use the command to get > org-mode type citations. This seems to export to latex as a \ref command > with citep in the middle (eg. \ref{citep}). > (reftex-set-cite-format > "[[citep][%l]]") > This doesn't seem to work for me but maybe I'm doing something wrong. Here's my setup which works decently: #+begin_src emacs-lisp (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]]")))))) #+end_src I add nodes manually with C-l after inserting, if needed. –Rasmus -- ⠠⠵