From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: How to find out in Elisp which .bib file is used for the current org buffer? Date: Fri, 18 Nov 2016 14:43:59 -0500 Message-ID: References: <87oa1css9b.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7p4x-00042s-DU for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 14:44:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7p4s-0001Ud-D3 for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 14:44:07 -0500 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:36784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7p4s-0001UX-8i for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 14:44:02 -0500 Received: by mail-qk0-x22a.google.com with SMTP id n21so276860689qka.3 for ; Fri, 18 Nov 2016 11:44:01 -0800 (PST) In-reply-to: <87oa1css9b.fsf@fastmail.fm> 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: Joost Kremers Cc: "emacs-orgmode@gnu.org" It depends on how you put citations in I guess. If you use org-ref, then there is a bibliography link or a latex_header with addbibresource. Otherwise, it is one of the files defined in org-ref-default-bibliography. I am not sure about the ox-bibtex setup. Joost Kremers writes: > Hi all, > > If you're writing a scientific document in Org, you'll normally > have a .bib file that you use for your references. What I'd like > to know is: is there a (robust) way to find out if a specific Org > buffer has a .bib file associated with it? > > In a LaTeX file, you can usually find this out by looking for a > \bibliography command or, if you use biblatex, for > \addbibresource. I'm wondering what the canonical way is to > specify this for an Org file. > > TIA > > Joost -- 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