From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: MWE for BibLaTex and org-ref? Date: Wed, 12 Jul 2017 13:55:59 -0400 Message-ID: References: <87inixoiwx.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f40304388c7454ffbe055422874b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVLso-0004YA-LX for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 13:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVLsk-0002mx-OA for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 13:57:06 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:35591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVLsk-0002lq-E9 for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 13:57:02 -0400 Received: by mail-wr0-f173.google.com with SMTP id k67so41680713wrc.2 for ; Wed, 12 Jul 2017 10:57:00 -0700 (PDT) In-Reply-To: <87inixoiwx.fsf@hornfels.zedat.fu-berlin.de> 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: Loris Bennett Cc: "emacs-orgmode@gnu.org" --f40304388c7454ffbe055422874b Content-Type: text/plain; charset="UTF-8" org-ref should work fine for biblatex, but the setup for biblatex in the org file is a bit different than for bibtex. The org-ref manual can be opened by running M-x org-ref-help. Go to the ** biblatex users heading. Hopefully that is clear enough to help. If not, let me know what is missing. Best wishes, John ----------------------------------- 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 On Wed, Jul 12, 2017 at 9:59 AM, Loris Bennett wrote: > Hi, > > Does org-ref work with BibLaTeX? > > With org-ref, I have an MWE using natbib that works: > > #+LATEX_CLASS_OPTIONS: [a4paper, 11pt] > #+LATEX_HEADER: \usepackage{natbib} > > #+TITLE: MWE > > * Introduction > > This MWE was found on the internet (see cite:Botha). > > bibliographystyle:abbrvnat > bibliography:file.bib > > with 'file.bib' being > > @Online{Botha, > author = {Charl Botha}, > title = {From org file with local bibtex to LaTeX and PDF}, > date = {2017-02-20}, > url = {https://vxlabs.com/2017/02/20/from-org-file-with-local- > bibtex-to-latex-and-pdf/}, > } > > For org-latex-pdf-process, I'm using the following: > > ("latexmk -g -pdf -pdflatex=\"%latex\" -shell-escape -outdir=%o %f") > > However, if I try to replace natbib by BibLaTeX via > > #+LATEX_HEADER: \usepackage{biblatex} > #+LATEX_HEADER: \addbibresource{file.bib} > > bibliographystyle:alphabetic > bibliography:file.bib > > I get errors about the style being invalid and the \bibliography only > being allowed in the preamble. > > So if it should work, does anyone have a MWE for org-ref with BibLaTeX? > > Cheers, > > Loris > > -- > This signature is currently under construction. > > > --f40304388c7454ffbe055422874b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
org-ref should work fine for biblatex, but the setup for b= iblatex in the org file is a bit different than for bibtex.=C2=A0

<= /div>
The org-ref manual can be opened by running M-x org-ref-help. Go = to the ** biblatex users heading. Hopefully that is clear enough to help. I= f not, let me know what is missing.=C2=A0

Best wis= hes,


John

---------------------------= --------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Departmen= t of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 1= 5213
412-268-7803

On Wed, Jul 12, 2017 at 9:59 AM, Loris Benne= tt <loris.bennett@fu-berlin.de> wrote:
Hi,

Does org-ref work with BibLaTeX?

With org-ref, I have an MWE using natbib that works:

=C2=A0 #+LATEX_CLASS_OPTIONS: [a4paper, 11pt]
=C2=A0 #+LATEX_HEADER: \usepackage{natbib}

=C2=A0 #+TITLE: MWE

=C2=A0 * Introduction

=C2=A0 =C2=A0 This MWE was found on the internet (see cite:Botha).

=C2=A0 bibliographystyle:abbrvnat
=C2=A0 bibliography:file.bib

with 'file.bib' being

=C2=A0 @Online{Botha,
=C2=A0 =C2=A0 author =3D {Charl Botha},
=C2=A0 =C2=A0 =C2=A0title =3D {From org file with local bibtex to LaTeX and= PDF},
=C2=A0 =C2=A0 =C2=A0 date =3D {2017-02-20},
=C2=A0 =C2=A0 =C2=A0 =C2=A0url =3D {https://vxlabs.com/2017/02/20/from-org-file-with-local-= bibtex-to-latex-and-pdf/},
=C2=A0 }

For org-latex-pdf-process,=C2=A0 I'm using the following:

=C2=A0 ("latexmk -g -pdf -pdflatex=3D\"%latex\" -shell-escap= e -outdir=3D%o %f")

However, if I try to replace natbib by BibLaTeX via

=C2=A0 #+LATEX_HEADER: \usepackage{biblatex}
=C2=A0 #+LATEX_HEADER: \addbibresource{file.bib}

=C2=A0 bibliographystyle:alphabetic
=C2=A0 bibliography:file.bib

I get errors about the style being invalid and the \bibliography only
being allowed in the preamble.

So if it should work, does anyone have a MWE for org-ref with BibLaTeX?

Cheers,

Loris

--
This signature is currently under construction.



--f40304388c7454ffbe055422874b--