From: John Kitchin <jkitchin@andrew.cmu.edu>
To: John Kitchin <jkitchin@andrew.cmu.edu>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-ref code
Date: Thu, 1 May 2014 13:07:35 -0400 [thread overview]
Message-ID: <CAJ51ETpbPxSpa_8GcwEA1tMhqy_9nRNh6H-AfcodrwQ1+yA9BA@mail.gmail.com> (raw)
In-Reply-To: <87eh0d62ys.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 3567 bytes --]
I implemented some of this partially. I made it so you can specify the
default cite link in a user variable, with a default of cite. When you type
C-c ], this format will automatically be used. If you want to choose
another format, type C-u C-c ] which will prompt you for a type, and then
use the reftex-citation command to complete it. I added most of the
citation types I know of to this. Most of those will not work with
completion. I did make the cite link completion function use the default
link type, so that it will at least do what you want. I might add
completion functions for all the link types, it is just a lot of cut and
pasting. and I do not use that much. I just wanted to see if I could do it
;)
I also added addbibresource as a link type, and updated org-ref to be able
to use that instead of bibliography.
Thanks for the ideas!
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 Thu, May 1, 2014 at 9:30 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Thursday, 1 May 2014 at 08:47, John Kitchin wrote:
>
> [...]
>
> Hi John,
>
> thanks for your quick response!
>
> > an alternative would be to use a prefix command that gave you an option
> to
> > change the cite format, similar to the minibuffer menu for cite links. I
> > have not written much prefix code before, but I will try that out.
>
> This would be good, with many a way of stating the default one would
> like? For instance, for grant proposals, I often use autocite in
> biblatex for generating citations as footnotes whereas for research
> papers I use cite most often.
>
> > In the end, the link definitions can be as short as this:
> >
> > #+BEGIN_SRC emacs-lisp :tangle org-ref.el
> > (org-add-link-type
> > "cite"
> > 'org-ref-cite-onclick-minibuffer-menu
> > 'org-ref-cite-link-format)
> > #+END_SRC
>
> My comment was not so much the definitions you used but that you were
> overwriting those that I had already defined. Your definitions were
> arguably better than mine so maybe I was being a bit picky here... :)
>
> > I wrote this for my research group to use, and eventually the links have
> to
> > be defined somewhere. I am not sure what the best place would be. It is
> an
> > interesting issue of reproducibility though. Two people with different
> link
> > definitions would get different results.
>
> Yes, this is true but there is so much that can be customised in org
> that you will never have reproducibility at this level (e.g. handling of
> latex snippets, code listings, even latex classes). I would leave
> something like this to a separate set of code that is not part of
> org-ref.
>
> > It should be easy enough to make an addbibresource link that does the
> same
> > thing as the bibliography link. And maybe to modify the find-bibliography
> > code to check for that too. I have never used biblatex though, so I dont
> > have any experience with it.
>
> I have only started using biblatex recently, and that was because I
> wanted to use autocite. The only change I had to make was \bibliography
> to \addbibresource. I still use the same bibtex files. Of course,
> others may be making more effective use of biblatex...
>
> >>> 4. The customisation interface for org-ref-default-bibliography should
> be
> >>> list aware...
> >>
> > I think I fixed this.
>
> Thanks!
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
>
[-- Attachment #2: Type: text/html, Size: 4477 bytes --]
next prev parent reply other threads:[~2014-05-01 17:07 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51ETpbPxSpa_8GcwEA1tMhqy_9nRNh6H-AfcodrwQ1+yA9BA@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.