From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref: citation types (insert full citation); bib style; bib scope Date: Fri, 06 Jan 2017 10:26:22 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPWPU-00017l-Sp for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 10:26:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPWPR-0006fk-OY for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 10:26:28 -0500 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:33645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPWPR-0006fJ-Je for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 10:26:25 -0500 Received: by mail-qt0-x22a.google.com with SMTP id v23so81397835qtb.0 for ; Fri, 06 Jan 2017 07:26:25 -0800 (PST) In-reply-to: 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" To: Matt Price Cc: Org Mode Matt Price writes: > After several years, I'm finally trying to move to bibtex from zotero, > partly because org-zotxt has stopped working for me (both link insertion > and html export seem at least temporarily broken). > > The UI for org-ref is pretty fantastic, and I love it. I'm having trouble > getting the behaviour I want fro mthe actual links, though. My needs may > be somewhat atypical but I'm hoping someone else has figured these > questions out already. > > * citation types > The org-ref manual talks about different citation types, but the external > link it suggests is not loading: > http://ctan.unixbrain.com/macros/latex/contrib/natbib/natnotes.pdf try: http://tug.ctan.org/macros/latex/contrib/natbib/natnotes.pdf > > Does anyone know what the other options are? In particular, for the syllabi > I'm currently creating I'd like to just insert the org-formatted citation > information itself -- is this possible? Can you give an example? > I'd like to be able to point my > students directly to my github repo, and it will ultimately be more > convenient to have the links already present in the source code, since > github doesn't reoslve org-ref I do not follow what you want here. Another example would be helpful. > > * bib style > When I right-click on a link and select "copy the formatted citation", I > don't get the URL field, which my students need. I assume that's because > I'm not using the right bibliographic style. How do I set the citation > format? Would I use the bibliographystyle link, or a header argument > somewhere? Support for this is kind of rudimentary, because it is really difficult to get properly formatted strings for all references. When you click on a cite link and select copy formatted entry what happens is the bibfile is opened to that entry and then the result of org-ref-bib-citation is copied. It is pretty simple, and limited. At the moment, I think helm-bibtex does the actual formatting if you load it, and it does not appear to be customizable. See bibtex-completion-apa-format-reference I will work on this a little bit and see if some improvements can be made. > > Also, is it possible to set this option to use org formatting instead of > html formatting? You could use a function like this on a link to get something more customizable. (defun better-formatted-citation () (interactive) (kill-new (org-ref-get-bibtex-entry-citation (car (org-ref-get-bibtex-key-and-file))))) see the variable org-ref-bibliography-entry-format, you can set this to be whatever format you want. > > * Bibliography scope > I guess I don't really know how to build a bibliographic file to go with a > particular project. At present I am using my full Zotero library exported > to bibtex as a default. Is there a way to just build the bibliography from > the set of sources cited in the paper? M-x org-ref-extract-bibtex-entries should put a new heading in the buffer with the relevant bibtex entries. > > Thanks everyone, and of course especially John for this amazing tool. > > Matt -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu