emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org, reftex and LaTeX with multiple bibliographies
@ 2016-09-16 18:19 Ken Mankoff
  2016-09-17  9:32 ` Andreas Kiermeier
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Mankoff @ 2016-09-16 18:19 UTC (permalink / raw)
  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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Org, reftex and LaTeX with multiple bibliographies
  2016-09-16 18:19 Org, reftex and LaTeX with multiple bibliographies Ken Mankoff
@ 2016-09-17  9:32 ` Andreas Kiermeier
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Kiermeier @ 2016-09-17  9:32 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

On 17/09/2016 03:49, Ken Mankoff wrote:
> Hi Org list,[snip]
>
> # 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?

Hi Ken, I use John Kitchin's org-ref. Multiple bibfiles can easily be 
include. I use this approach for most it for most projects - one global 
bib file and one project specific one, e.g. bibliographystyle:plainnat 
bibliography:C:/Users/andre/Dropbox/_biblio/refs.bib,C:/Users/andre/Dropbox/Consulting/Projects/RedMeat/MLA_Beef_Measles-C_bovis/literature/cbovis.bib 
Hope this helps. Cheers, AK


[-- Attachment #2: Type: text/html, Size: 1144 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-17  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16 18:19 Org, reftex and LaTeX with multiple bibliographies Ken Mankoff
2016-09-17  9:32 ` Andreas Kiermeier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).