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

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

How to set up the preamble for APA-referencing

Postby Seanshine » Sat Jul 07, 2018 10:48 am

Dear readers,

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

  1. \documentclass[
  2. 11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside,
  3. chapterinoneline, reqno, a4paper
  4. %consistentlayout, change the layout of the declaration, abstract and acknowledgements pages to match the default layout
  5. ]{MastersDoctoralThesis}
  6.  
  7. \usepackage[utf8]{inputenc}
  8. \usepackage[T1]{fontenc}
  9. \usepackage{amsthm, amsmath, amssymb, amsfonts, exscale, latexsym, float, eucal, mathtools}
  10. \usepackage{booktabs, floatrow, threeparttable, adjustbox, textcomp, mathpazo, lipsum}
  11. \usepackage[backend=bibtex, style=apa, natbib=true]{biblatex}
  12. \DeclareLanguageMapping{american}{american-apa}
  13. \usepackage[autostyle=true]{csquotes}
  14. \addbibresource{References.bib}
  15.  
  16. \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!

User avatar
Johannes_B
Site Moderator
Posts: 3830
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jul 07, 2018 4:17 pm

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

Postby Seanshine » Sat Jul 07, 2018 11:53 pm

Thanks for the reference, your help has been invaluable!

User avatar
Stefan Kottwitz
Site Admin
Posts: 9019
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Jul 10, 2018 10:20 am

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

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


ShareLaTeX supports biblatex with biber.

Stefan
Site admin

Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Postby Seanshine » Thu Jul 12, 2018 11:10 am

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:

  1. \documentclass[
  2. 11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside,
  3. chapterinoneline, reqno, a4paper, toctotoc,
  4. ]{MastersDoctoralThesis}
  5.  
  6. \usepackage[utf8]{inputenc}
  7. \usepackage[T1]{fontenc}
  8. \usepackage{xpatch}
  9. \usepackage{amsthm, amsmath, amssymb, amsfonts, exscale, latexsym, float, eucal, mathtools}
  10. \usepackage{booktabs, threeparttable, adjustbox, textcomp, mathpazo, lipsum}
  11.  
  12. \usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography
  13. \usepackage[backend=biber,style=apa, natbib=true]{biblatex}
  14. \DeclareLanguageMapping{english}{english-apa}
  15. \addbibresource{References.bib}
  16.  
  17. \printbibliography[heading=bibintoc, title={References}]


An example BibTex:

  1. @article{holston2017,
  2. title = {Measuring the natural rate of interest: International trends and determinants},
  3. author = {Holston, Kathryn and Laubach, Thomas and Williams, John C},
  4. journal = {Journal of International Economics},
  5. volume = {108},
  6. pages = {59--75},
  7. year = {2017},
  8. publisher = {Elsevier}
  9. }
  10.  
  11. @Book{galí2008mon,
  12. author = {Galí, Jordi},
  13. title = {Monetary policy, inflation, and the business cycle : an introduction to the new Keynesian framework},
  14. publisher = {Princeton University Press},
  15. year = {2008},
  16. address = {Princeton, N.J},
  17. isbn = {9780691133164}
  18. }


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!!


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests