From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Org, reftex and LaTeX with multiple bibliographies Date: Fri, 16 Sep 2016 14:19:01 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkxjC-0006Gk-B0 for emacs-orgmode@gnu.org; Fri, 16 Sep 2016 14:19:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkxj6-0000D4-Cp for emacs-orgmode@gnu.org; Fri, 16 Sep 2016 14:19:09 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:36415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkxj6-0000CP-9C for emacs-orgmode@gnu.org; Fri, 16 Sep 2016 14:19:04 -0400 Received: by mail-qk0-x236.google.com with SMTP id z190so96132044qkc.3 for ; Fri, 16 Sep 2016 11:19:04 -0700 (PDT) Received: from client-104-39-40-241.mobility.psu.edu (client-104-39-40-241.mobility.psu.edu. [104.39.40.241]) by smtp.gmail.com with ESMTPSA id m201sm5347493qke.46.2016.09.16.11.19.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Sep 2016 11:19:02 -0700 (PDT) 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: Org Mode Hi Org list, I'm trying to work with multiple .bib files and having trouble. In my Org file, I have: #+LATEX_HEADER_EXTRA:\addbibresource{Library.bib,local.bib} And this works. I can search for a string in reftex and both bibliographies are found. It does not seem to matter what =reftex-default-bibliography= is set to. But when I export to LaTeX, pdflatex (or latexmk) doesn't work, and complains: Biber error: [268] Utils.pm:165> ERROR - Cannot find 'Library.bib,local.bib'! Latexmk: Biber did't find bib file [Library.bib,local.bib] And the biber documentation states that you cannot use a comma separated list of bibliographies in an =\addbibresource= command. You should use multiple of those commands. However, if I use multiple of those commands, then Org only searches in the first bib file, not in both. While writing this email and testing things yet again, I think I've found a way to get this to work. But I'm pretty sure this is exploiting some bug, and not a recommended method. If I have the \addbibresource{a,b} commented out, Org (reftex?) uses this, but it is not exported. I then repeat it twice, breaking apart the comma, and those get exported. For example: # Note that the first line below is commented out # #+LATEX_HEADER_EXTRA:\addbibresource{Library.bib,local.bib} #+LATEX_HEADER_EXTRA:\addbibresource{Library.bib} #+LATEX_HEADER_EXTRA:\addbibresource{local.bib} Is this how others work with multiple bibliographies? Some other method? Thanks, -k.