BibTeX, biblatex and biberHow to set up the preamble for APA-referencing

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

How to set up the preamble for APA-referencing

Post by Seanshine »

Dear readers,

Being somewhat pressed for time, I am confused on how to set up the correct environment for APA-citing. Current preamble:

Code: Select all

\documentclass[
11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside, 
chapterinoneline, reqno, a4paper
%consistentlayout, change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{MastersDoctoralThesis}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsthm, amsmath, amssymb, amsfonts, exscale, latexsym, float, eucal, mathtools}
\usepackage{booktabs, floatrow, threeparttable, adjustbox, textcomp, mathpazo, lipsum}
\usepackage[backend=bibtex, style=apa, natbib=true]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage[autostyle=true]{csquotes}
\addbibresource{References.bib}

\printbibliography[heading=bibintoc, title={References}]
For example, how does on achieve:

1. ''X and Y'' (YEAR, pages) state that ...''
2. ".... (X, et. al. YEAR, PAGES)"

With a nice cross-reference link to the appropriate paper in the references section.

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to set up the preamble for APA-referencing

Post by Johannes_B »

Do you know what an error message looks like? Do you know what error messages are for? From the exmple in the other thread, i was informed by biblatex, that you need biber as backend, not bibtex (template default).

Use biber instead. -> https://tex.stackexchange.com/questions ... -citations
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

How to set up the preamble for APA-referencing

Post by Seanshine »

Thanks for the reference, your help has been invaluable!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

How to set up the preamble for APA-referencing

Post by Stefan Kottwitz »

I guess the point is changing backend=bibtex to backend=biber:

Code: Select all

\usepackage[backend=biber, style=apa, natbib=true]{biblatex}
ShareLaTeX supports biblatex with biber.

Stefan
LaTeX.org admin
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

How to set up the preamble for APA-referencing

Post by Seanshine »

Hi,

I am still somewhat confused with citing. For most papers/books I have retrieved the BibTex from Google.Scholar or used a certain website that provides a BibTex if you insert the ISBN-number. The following lines are in my preamble:

Code: Select all

\documentclass[
11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside, 
chapterinoneline, reqno, a4paper, toctotoc,
]{MastersDoctoralThesis}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xpatch}
\usepackage{amsthm, amsmath, amssymb, amsfonts, exscale, latexsym, float, eucal, mathtools}
\usepackage{booktabs, threeparttable, adjustbox, textcomp, mathpazo, lipsum}

\usepackage[autostyle=true]{csquotes}  % Required to generate language-dependent quotes in the bibliography
\usepackage[backend=biber,style=apa, natbib=true]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{References.bib}

\printbibliography[heading=bibintoc, title={References}]
An example BibTex:

Code: Select all

@article{holston2017,
  title     =   {Measuring the natural rate of interest: International trends and determinants},
  author    =   {Holston, Kathryn and Laubach, Thomas and Williams, John C},
  journal   =   {Journal of International Economics},
  volume    =   {108},
  pages     =   {59--75},
  year      =   {2017},
  publisher =   {Elsevier}
}

 @Book{galí2008mon,
 author     =   {Galí, Jordi},
 title      =   {Monetary policy, inflation, and the business cycle : an introduction to the new Keynesian framework},
 publisher  =   {Princeton University Press},
 year       =   {2008},
 address    =   {Princeton, N.J},
 isbn       =   {9780691133164}
 }
A few issues that arise is that 'et al.' is not always displayed if there are more than two authors. Furthermore, LaTeX is unable to cite the above mentioned book by Galí, not sure why this is happening. Lastly, is there a way to hyperref the entire citation, instead of only the year?

Thanks guys, I am almost finished!!
Post Reply