From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars =?iso-8859-1?Q?Bj=F8rndal?= Subject: Re: Citations with org-ref in apa style Date: Fri, 26 May 2017 13:24:03 +0200 Message-ID: <20170526112403.GE14793@lamasti.net> References: <6dc0a293c50c44f3bffeb638fed1b744@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87o9ugrj0o.fsf@t3610> <20170525195704.GB14793@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]:44484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEDLo-0008WN-NP for emacs-orgmode@gnu.org; Fri, 26 May 2017 07:24:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEDLl-0007ym-KK for emacs-orgmode@gnu.org; Fri, 26 May 2017 07:24:12 -0400 Received: from lamasti.net ([195.159.152.110]:33228 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 1dEDLl-0007x3-DU for emacs-orgmode@gnu.org; Fri, 26 May 2017 07:24:09 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by dalen.lamasti.net (Postfix) with ESMTP id B492F24045 for ; Fri, 26 May 2017 13:24:05 +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 dmphJ4eN9W_q for ; Fri, 26 May 2017 13:24:03 +0200 (CEST) Content-Disposition: inline In-Reply-To: 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 Thu, May 25, 2017 at 08:36:28PM -0400, John Kitchin wrote: > I guess you should change > #+LATEX_HEADER: > \usepackage[citestyle=3Dauthoryear-icomp,bibstyle=3Dauthoryear, > hyperref=3Dtrue,backref=3Dfalse,maxcitenames=3D3,url=3Dtrue, > backend=3Dbiber,natbib=3Dtrue] > {biblatex} > to > #+LATEX_HEADER: \usepackage[american]{babel} > #+LATEX_HEADER: \usepackage{csquotes} > #+LATEX_HEADER: \usepackage[style=3Dapa]{biblatex} > #+LATEX_HEADER: \DeclareLanguageMapping{american}{american-apa} Thank you very much! After a bit of fiddling, I got it. The headers I have now, and which work, are: #+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} #+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} Again, thank you! 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-contri= b/biblatex-apa/biblatex-apa.pdf > 2. http://kitchingroup.cheme.cmu.edu/ > 3. mailto:lars@lamasti.net