From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars =?iso-8859-1?Q?Bj=F8rndal?= Subject: Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: Citations with org-ref in apa style) Date: Fri, 16 Jun 2017 14:40:26 +0200 Message-ID: <20170616124025.GA2693@lamasti.net> References: <6dc0a293c50c44f3bffeb638fed1b744@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87o9ugrj0o.fsf@t3610> <20170525195704.GB14793@lamasti.net> <20170526112403.GE14793@lamasti.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLqYJ-00071a-AZ for emacs-orgmode@gnu.org; Fri, 16 Jun 2017 08:40:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLqYG-00063d-4X for emacs-orgmode@gnu.org; Fri, 16 Jun 2017 08:40:39 -0400 Received: from lamasti.net ([195.159.152.110]:35240 helo=dalen.lamasti.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLqYF-00060m-Tz for emacs-orgmode@gnu.org; Fri, 16 Jun 2017 08:40:36 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by dalen.lamasti.net (Postfix) with ESMTP id D3AB52404F for ; Fri, 16 Jun 2017 14:40:31 +0200 (CEST) Received: from dalen.lamasti.net ([127.0.0.1]) by localhost (dalen.lamasti.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M0-ZKrME4-es for ; Fri, 16 Jun 2017 14:40:26 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170526112403.GE14793@lamasti.net> 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" On Fri, May 26, 2017 at 01:24:03PM +0200, Lars Bj=F8rndal wrote: [...] > After a bit of fiddling, I got it. The headers I have now, and which > work, are: >=20 > #+LANGUAGE: no > #+OPTIONS: toc:nil timestamp:nil time:nil > #+LATEX_CLASS: article > #+LaTeX_CLASS_OPTIONS: [a4paper,norsk,12pt,listings-bw,microtype] > #+LATEX_HEADER: \usepackage{babel} > #+LATEX_HEADER: \usepackage{fancyhdr} > #+LATEX_HEADER: \usepackage{csquotes} > #+LATEX_HEADER: \usepackage[backend=3Dbiber,style=3Dapa]{biblatex} > #+LATEX_HEADER: \DeclareLanguageMapping{norsk}{norsk-apa} >=20 > #+LATEX_HEADER: \usepackage{lastpage} > #+LATEX_HEADER: \usepackage{hyperref} > #+LATEX_HEADER: \usepackage{url} > #+Latex_header: \addbibresource{~/mydoc/smartlaring/ref.bib} > #+BIBLIOGRAPHY: ~/mydoc/smartlaring/ref apa > #+Latex_header: \linespread{1.4} If I want HTML export with citations, I need to use `bibliography:ref.bib' at the end, where I want the list of references. However, when exporting to pdf, it works only if I have \printbibliography at the end. If I use bibliograph:ref.bib, I get the following error from pdflatex: ! LaTeX Error: Can be used only in preamble. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.368 \bibliography {ref} ? If I type H, I get: Your command was ignored. What can I do to fix this? Thanks and regards, Lars > > On Thu, May 25, 2017 at 05:36:07PM +0100, Eric S Fraga wrote: > > > On Thursday, 25 May 2017 at 11:47, Lars Bj=F8rndal wrote: > > > > Hi, list! > > > > > > > > I'm currently writing an exam in org-mode with org-ref, > > installed from > > > > elpa. I think the institution expects to get the referances in > > apa > > > > style. So I wonder if I can do that, and how I can do it. > > > > > > Have you tried? What happens? > > Well, to be honest, I don't know what to replace the line in > > question > > with. I'm a novice both in LaTeX and in org-mode/org-ref. > > Lars > >=20 > > References > >=20 > > 1. http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/biblatex-cont= rib/biblatex-apa/biblatex-apa.pdf > > 2. http://kitchingroup.cheme.cmu.edu/ > > 3. mailto:lars@lamasti.net >=20