emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeffrey Spencer <jeffspencerd@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: Reftex in Org-Mode exporting and recognizing figures or equations
Date: Sun, 5 Aug 2012 19:02:53 +1000	[thread overview]
Message-ID: <CALmFPZ3wsDxEQwSQrJi5+OO4SMCk=1UXTX+coKAO36gYQYNQkw@mail.gmail.com> (raw)
In-Reply-To: <87a9yc5n85.fsf@pank.lan>

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

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 <rasmus@gmx.us> 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]]"))))))
>

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

  reply	other threads:[~2012-08-05  9:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-03  3:39 Reftex in Org-Mode exporting and recognizing figures or equations Jeffrey Spencer
2012-08-03  6:20 ` Thomas S. Dye
2012-08-03  9:38 ` Rasmus
2012-08-05  9:02   ` Jeffrey Spencer [this message]
2012-08-05 11:18     ` 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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to='CALmFPZ3wsDxEQwSQrJi5+OO4SMCk=1UXTX+coKAO36gYQYNQkw@mail.gmail.com' \
    --to=jeffspencerd@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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 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).