LaTeX forum ⇒ Theses, Books, Title pagesChanging the bibliography style to APA in MasterDoctoralThesis Template

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
s_li
Posts: 2
Joined: Wed Jun 07, 2017 3:34 am

Changing the bibliography style to APA in MasterDoctoralThesis Template

Postby s_li » Wed Jun 07, 2017 3:56 am

Hi all,

I've gone through a few pages but couldn't find a solution to this so I thought I'd ask directly.

I simply want to change the bibliography style to APA in the latest version of Master/Doctoral Thesis Template. The original command reads:

  1. \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}


and I tried to change it to

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


This however gave me an error of showing (labelyearlabelmonthlabelday) in the bibliography instead of showing the correct year.

Some more googling makes me think that this has something to do with identifying language in package {babel}. So I tried

  1. \usepackage[british]{babel}
  2. \DeclareLanguageMapping{british}{british-apa}
  3. \usepackage[backend=bibtex,style=apa,natbib=true]{biblatex}


But an error returns that 'option clash in package babel}.

What should I do to correct this? I simply need the bibliography format to be APA and do not care whether the above mentioned methods are used.

I hope the description is clear enough and thanks in advance!
Last edited by cgnieder on Fri Jun 30, 2017 10:58 am, edited 1 time in total.
Reason: added code markup

Tags:

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

Postby Johannes_B » Wed Jun 07, 2017 7:00 am

Don't load babel. Default hyphenation is english, if you want it to be british, change the line at the beginning of the main file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

s_li
Posts: 2
Joined: Wed Jun 07, 2017 3:34 am

Postby s_li » Thu Jun 08, 2017 5:22 am

If I don't load babel and just keep the language as 'english', how do I change the style to APA without running into the error of (labelyearlabelmonthlabelday)?

Thanks!

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

Postby Johannes_B » Thu Jun 08, 2017 6:30 pm

Replace the default bib section in the preamble with the following (assuming english as the main langauge):
  1. \usepackage[backend=biber,style=apa,natbib=true]{biblatex}
  2. \DeclareLanguageMapping{english}{english-apa}
  3. \addbibresource{example.bib}


Note: You have to switch to biber iin order to use biblatex-apa.

On the other hand, most people confuse a regular author-year style (default) with APA. Have you checked? Maybe authoryear is just enough.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

geolykovitis
Posts: 3
Joined: Sat Jun 24, 2017 3:37 pm

Postby geolykovitis » Fri Jun 30, 2017 10:49 am

Hello,

I made the changes suggested in order to change the bibliography format to APA style:

  1. %------------------------------------
  2. %--------BIBLIOGRAPHY----------------
  3. %------------------------------------
  4.  
  5. \usepackage[backend=biber,style=apa,natbib=true]{biblatex}
  6. \DeclareLanguageMapping{english}{english-apa}
  7. \addbibresource{example.bib}


This is at the start of the main.tex file and kept as it was the code at the end of the main.tex file:

  1. %----------------------------------------------------------------------------------------
  2. % BIBLIOGRAPHY
  3. %----------------------------------------------------------------------------------------
  4.  
  5. \printbibliography[heading=bibintoc]


The bibliography appears in perfect APA style at the end of the created pdf file:

Böhme, R. (2010). Security metrics and security investment models. IWSEC, 10–24.
Fielder, A., Panaousis, E., Malacaria, P., Hankin, C., & Smeraldi, F. (2016). Decision support approaches for cyber security investments. Decision Support Systems,
86, 13–23.
Gordon, L. A. & Loeb, M. P. (2002). The economics of information security invest-
ment. ACM Transactions on Information and System Security (TISSEC), 5(4), 438– 457.

My problem starts when I try to cite a reference with many authors. I type in the code:

  1. happen? We will see that there are a lot of restrictions and difficulties during this process \parencite{Reference3}.


And I get as a result:

happen? We will see that there are a lot of restrictions and difculties during this process (Fielder, Panaousis, Malacaria, Hankin, & Smeraldi, 2016).

The correct according to APA style would be the name of the first author and et al. after. e.g., Fielder et al., 2016 in this example.

The same problem I have when I try to cite using this code:
  1. specifically this section is about information security and the money we have to invest in order to succeed it \citep{Reference3}.


The result is:

specically this section is about information security and the money we have to invest in order to succeed it (Fielder, Panaousis, Malacaria, Hankin, & Smeraldi, 2016).

The way my Reference3 is in the code is like this:

  1. @article{Reference3,
  2. Author = {A. Fielder and E. Panaousis and P. Malacaria and C. Hankin and F. Smeraldi},
  3. Journal = {Decision Support Systems},
  4. Pages = {13--23},
  5. Title = {Decision Support Approaches for Cyber Security Investments},
  6. Volume = {86},
  7. Year = {2016}}


Most probably I am doing something wrong or have misunderstood something. Can you please help me. Because if I do not solve this problem all the effort I put into this thesis will be lost and most probably will have to start over using word.

Thank you for your time.

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

Postby Johannes_B » Fri Jun 30, 2017 11:45 am

style=apa,maxnames=1
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest