From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Andreas Reuleaux <andreas@a-rx.info>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-ref code
Date: Mon, 12 May 2014 22:37:05 -0400 [thread overview]
Message-ID: <CAJ51ETroP7QVS64_bi2nBOu5A89=1XebhFP8UBDy7K=_LtZMvQ@mail.gmail.com> (raw)
In-Reply-To: <87iopbv2j9.fsf@a-rx.info>
[-- Attachment #1: Type: text/plain, Size: 3171 bytes --]
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
-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu
On Mon, May 12, 2014 at 4:12 AM, Andreas Reuleaux <andreas@a-rx.info> wrote:
> John Kitchin <jkitchin@andrew.cmu.edu> 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)
>
> (custom-set-variables
> '(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
>
>
> http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
>
>
> http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bibliographic-notesrefs-in-org-mode/
>
> Thanks for org-ref.
>
> -Andreas
>
>
>
[-- Attachment #2: Type: text/html, Size: 4704 bytes --]
next prev parent reply other threads:[~2014-05-13 2:37 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 20:59 org-ref code John Kitchin
2014-05-01 6:23 ` Eric S Fraga
2014-05-01 10:01 ` Eric S Fraga
2014-05-01 12:21 ` Seb Frank
2014-05-01 14:08 ` Eric S Fraga
2014-05-01 12:36 ` John Kitchin
2014-05-01 12:47 ` John Kitchin
2014-05-01 13:30 ` Eric S Fraga
2014-05-01 17:07 ` John Kitchin
2014-05-10 14:44 ` Eric S Fraga
2014-05-11 18:48 ` John Kitchin
2014-05-12 8:12 ` Andreas Reuleaux
2014-05-13 2:37 ` John Kitchin [this message]
2014-05-12 13:36 ` Eric S Fraga
2014-05-12 17:20 ` Andreas Reuleaux
2014-05-12 17:26 ` John Kitchin
2014-05-13 0:03 ` Andreas Reuleaux
2014-05-13 11:00 ` Eric S Fraga
2014-05-13 18:51 ` John Kitchin
2014-05-13 20:01 ` Eric S Fraga
2014-05-13 20:11 ` Eric S Fraga
2014-05-14 0:28 ` John Kitchin
2014-05-14 18:17 ` Eric S Fraga
2014-05-14 19:03 ` Andreas Reuleaux
2014-05-14 19:48 ` Sharon Kimble
2014-05-14 20:08 ` Andreas Reuleaux
2014-05-14 22:14 ` Eric S Fraga
2014-05-14 20:35 ` John Kitchin
2014-05-15 6:58 ` Eric S Fraga
2014-05-15 8:17 ` Eric S Fraga
2014-05-15 13:05 ` John Kitchin
2014-05-15 13:14 ` Eric S Fraga
2014-05-15 13:30 ` Eric S Fraga
2014-05-15 14:19 ` John Kitchin
2014-05-15 14:31 ` Eric S Fraga
2014-05-15 15:03 ` Eric S Fraga
2014-05-15 13:15 ` John Kitchin
2014-05-14 3:58 ` Andreas Reuleaux
2014-05-14 13:17 ` John Kitchin
2014-05-13 23:33 ` Andreas Reuleaux
2014-05-14 0:38 ` John Kitchin
2014-05-14 3:39 ` Andreas Reuleaux
2014-05-14 13:14 ` John Kitchin
2014-05-14 17:39 ` Andreas Reuleaux
2014-05-18 17:16 ` org-ref for biblatex Andreas Reuleaux
2014-05-18 21:40 ` John Kitchin
2014-05-18 22:38 ` Andreas Reuleaux
2014-05-19 11:38 ` John Kitchin
2014-05-19 12:15 ` Andreas Reuleaux
2014-05-19 17:34 ` Andreas Reuleaux
2014-05-08 8:31 ` org-ref code Vikas Rawal
2014-05-08 13:53 ` John Kitchin
2014-05-15 10:09 ` Bastien
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='CAJ51ETroP7QVS64_bi2nBOu5A89=1XebhFP8UBDy7K=_LtZMvQ@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=andreas@a-rx.info \
--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 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).