From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: Re: MWE for BibLaTex and org-ref? Date: Thu, 13 Jul 2017 10:34:01 +0200 Message-ID: <20170713103401.05319529@gaia> References: <87inixoiwx.fsf@hornfels.zedat.fu-berlin.de> <8737a0etru.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVZZk-0008DP-JJ for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 04:34:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVZZg-0006Q3-Rx for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 04:34:20 -0400 Received: from [195.159.176.226] (port=56823 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVZZg-0006OY-LE for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 04:34:16 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dVZZY-0002og-IW for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 10:34:08 +0200 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: emacs-orgmode@gnu.org Hi! Look here: https://tex.stackexchange.com/questions/5091/what-to-do-to-switch-to-biblat= ex In short \bibliographystyle and biblatex don't match. Hope that helps Detlef Am Thu, 13 Jul 2017 08:27:17 +0200 schrieb "Loris Bennett" : > Hi John, >=20 > Thanks for the pointer. I think some of the errors I was getting were > due having old temporary files (aux, bcf, ...) lying around and then > switching between natbib and biblatex. >=20 > Following the org-ref manual I now have >=20 > #+LATEX_HEADER: > \usepackage[citestyle=3Dauthoryear-icomp,bibstyle=3Dauthoryear, > hyperref=3Dtrue,backref=3Dtrue,maxcitenames=3D3,url=3Dtrue,backend=3Dbibe= r,natbib=3Dtrue] > {biblatex} >=20 > and then use >=20 > bibliographystyle:authoryear >=20 > I'm now just getting the following error: >=20 > ! Package biblatex Error: '\bibliographystyle' invalid. >=20 > Any ideas what I'm doing wrong? >=20 > Cheers, >=20 > Loris >=20 > John Kitchin writes: >=20 > > 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=20 > > 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 =3D {Charl Botha}, > > title =3D {From org file with local bibtex to LaTeX and PDF}, > > date =3D {2017-02-20}, > > url =3D > > {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=3D\"%latex\" -shell-escape -outdir=3D%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. > > > > =20 >=20 --=20 "Wisely and slow. Those stumble that run fast." Shakespeare -- Romeo and Juliet Dr. Detlef Steuer Helmut-Schmidt-Universit=C3=A4t Fakult=C3=A4t WiSo Holstenhofweg 85 22043 Hamburg Tel: 040/6541-2819 mail: steuer@hsu-hh.de