emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Lars Bjørndal" <lars@lamasti.net>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Citations with org-ref in apa style
Date: Fri, 26 May 2017 13:24:03 +0200	[thread overview]
Message-ID: <20170526112403.GE14793@lamasti.net> (raw)
In-Reply-To: <CAJ51ETq59yM+cwUewej4G3hfHZCG1ujFK=_idvy4y0XawqdQhA@mail.gmail.com>

On Thu, May 25, 2017 at 08:36:28PM -0400, John Kitchin wrote:
> I guess you should change
> #+LATEX_HEADER:
>  \usepackage[citestyle=authoryear-icomp,bibstyle=authoryear,
>  hyperref=true,backref=false,maxcitenames=3,url=true,
> backend=biber,natbib=true]
>  {biblatex}
> to
> #+LATEX_HEADER: \usepackage[american]{babel}
> #+LATEX_HEADER: \usepackage{csquotes}
> #+LATEX_HEADER: \usepackage[style=apa]{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=biber,style=apa]{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ørndal 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
> 
> References
> 
> 1. http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa.pdf
> 2. http://kitchingroup.cheme.cmu.edu/
> 3. mailto:lars@lamasti.net

  reply	other threads:[~2017-05-26 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6dc0a293c50c44f3bffeb638fed1b744@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-25 16:36 ` Citations with org-ref in apa style Eric S Fraga
2017-05-25 19:57   ` Lars Bjørndal
2017-05-26  0:36     ` John Kitchin
2017-05-26 11:24       ` Lars Bjørndal [this message]
2017-06-16 12:40         ` Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: Citations with org-ref in apa style) Lars Bjørndal
2017-06-17 16:17           ` John Kitchin
2017-05-25 11:47 Citations with org-ref in apa style Lars Bjørndal

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=20170526112403.GE14793@lamasti.net \
    --to=lars@lamasti.net \
    --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).