From: Ken Mankoff <mankoff@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Org, reftex and LaTeX with multiple bibliographies
Date: Fri, 16 Sep 2016 14:19:01 -0400 [thread overview]
Message-ID: <m2eg4jk8ru.fsf@client-104-39-40-241.mobility.psu.edu> (raw)
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.
next reply other threads:[~2016-09-16 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 18:19 Ken Mankoff [this message]
2016-09-17 9:32 ` Org, reftex and LaTeX with multiple bibliographies Andreas Kiermeier
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=m2eg4jk8ru.fsf@client-104-39-40-241.mobility.psu.edu \
--to=mankoff@gmail.com \
--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.