[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-ref code

From: John Kitchin
Subject: Re: [O] org-ref code
Date: Mon, 12 May 2014 22:37:05 -0400

Here is a way you can add new citation formats to the reftex format:

;; get builtin formats
(setq formats (nth 2 (assoc 'org reftex-cite-format-builtin)))

;; add new format
(setf (nth 2 (assoc 'org reftex-cite-format-builtin))
      (append formats '((?W  . "textcite:%l")
            (?z  . "newcite:%l"))))

This does not define the links, but it does add the formats to the reftex menu.

I have figured out how to add new citation links without alot of cut and pasted code. I do not use biblatex much though. What are the common citation formats, and are they mostly written as \citation{label}?


John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213

On Mon, May 12, 2014 at 4:12 AM, Andreas Reuleaux <address@hidden> wrote:
John Kitchin <address@hidden> writes:

> C-c ] should be bound by default to org-ref-insert-cite-link. It is defined
> in a hook function in line 104 of org-ref.org.
> I made a custom variable to store the key-binding, but I realized it
> probably doesn't help, since the binding
>> 1. C-u on it does not give me a choice of citation method
> If you type C-u M-x  org-ref-insert-cite-link
> do you get a choice?
> I just tried this on a fresh pull and it does work for me. I am not sure
> why this wouldn't work for you.  Do you tangle the .el file from the .org
> file? I have this code somewhere else to build it when needed:

I can confirm that C-c ] and C-u C-c ]
work fine for me.

my setup if fairly simple (with org-ref.el tangled from org-ref.org)

  (require 'org-ref)

   '(org-ref-bibliography-notes "notes.org")
   '(org-ref-default-bibliography  (list "refs.bib"))
   ;; '(org-ref-pdf-directory "...")
   ;; '(org-ref-default-citation-link "...")
   ;; '(org-ref-insert-cite-key "...")

looking forward to discover more of org-ref.

FWIW, I was using textcite:... (with biblatex) as well, helped myself by
just inserting a cite:... and then changing the link with C-c C-l from
cite to textcite. But I really need read up on all those different
citations commands once more, maybe textcite is not really necessary?
Could I add it somehow to the list of choices available in "C-u C-c ]" ?
(I realized there are citetext, citep*, citep as well, that I yet have
to discover).

By the way: the org-ref.org literate programming docs are fine
for someone interested in the gory details / relatively experienced.
Ist there a simpler document just describing its usage - that
you would hand out to your chemistry students e. g. ?

Somehting maybe explaining the differences from the other approaches
that can be found e g in



Thanks for org-ref.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]