* Citations with org-ref in apa style
@ 2017-05-25 11:47 Lars Bjørndal
0 siblings, 0 replies; 5+ messages in thread
From: Lars Bjørndal @ 2017-05-25 11:47 UTC (permalink / raw)
To: emacs-orgmode
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.
In the .org file, I have a line like this, that I suppose I have to
change:
(all in one line)
#+LATEX_HEADER:
\usepackage[citestyle=authoryear-icomp,bibstyle=authoryear,
hyperref=true,backref=false,maxcitenames=3,url=true,backend=biber,natbib=true]
{biblatex}
With this line, the c-c c-e l p command compiles to pdf, according to
the following setting in my .emacs file:
(setq org-latex-pdf-process
'("pdflatex -interaction nonstopmode -output-directory %o %f"
"biber %b"
"pdflatex -interaction nonstopmode -output-directory %o %f"
"pdflatex -interaction nonstopmode -output-directory %o %f"))
Org-mode version:
Org-mode version 8.2.10 (release_8.2.10 @
/usr/share/emacs/25.2/lisp/org/)
Thanks and regards, Lars
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations with org-ref in apa style
[not found] <6dc0a293c50c44f3bffeb638fed1b744@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-05-25 16:36 ` Eric S Fraga
2017-05-25 19:57 ` Lars Bjørndal
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2017-05-25 16:36 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
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?
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-425-gf4fca1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations with org-ref in apa style
2017-05-25 16:36 ` Eric S Fraga
@ 2017-05-25 19:57 ` Lars Bjørndal
2017-05-26 0:36 ` John Kitchin
0 siblings, 1 reply; 5+ messages in thread
From: Lars Bjørndal @ 2017-05-25 19:57 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations with org-ref in apa style
2017-05-25 19:57 ` Lars Bjørndal
@ 2017-05-26 0:36 ` John Kitchin
2017-05-26 11:24 ` Lars Bjørndal
0 siblings, 1 reply; 5+ messages in thread
From: John Kitchin @ 2017-05-26 0:36 UTC (permalink / raw)
To: Lars Bjørndal; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]
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}
I am not a biber user. See
http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa.pdf
for more details.
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Thu, May 25, 2017 at 3:57 PM, Lars Bjørndal <lars@lamasti.net> wrote:
> 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
>
>
[-- Attachment #2: Type: text/html, Size: 3911 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations with org-ref in apa style
2017-05-26 0:36 ` John Kitchin
@ 2017-05-26 11:24 ` Lars Bjørndal
0 siblings, 0 replies; 5+ messages in thread
From: Lars Bjørndal @ 2017-05-26 11:24 UTC (permalink / raw)
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=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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-05-26 11:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 11:47 Citations with org-ref in apa style Lars Bjørndal
[not found] <6dc0a293c50c44f3bffeb638fed1b744@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-25 16:36 ` 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.