emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: MWE for BibLaTex and org-ref?
Date: Wed, 12 Jul 2017 15:59:26 +0200	[thread overview]
Message-ID: <87inixoiwx.fsf@hornfels.zedat.fu-berlin.de> (raw)

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.

             reply	other threads:[~2017-07-12 13:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12 13:59 Loris Bennett [this message]
2017-07-12 17:55 ` MWE for BibLaTex and org-ref? John Kitchin
2017-07-13  6:27   ` Loris Bennett
2017-07-13  8:34     ` Detlef Steuer
2017-07-13  9:01       ` Loris Bennett
2017-07-17 14:52         ` John Kitchin

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inixoiwx.fsf@hornfels.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --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 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).