I have been working with latex for several years, but have never used apa citation style. For two days I am now already busy trying to fix that bug and I am getting crazy now. I can't find any solution. Maybe one of you experts out there could help me with that. I use TexStudio and the 2020 version of (vanilla) texlive, I have also installed the biblatex-apa package.
I am also not sure, if I should use biblatex-apa or just biblatex and define the style as apa. If I use the biblatex-apa package, I often get the error that the file biblatex-apa.sty is missing, but I couldn't find it in all the biblatex apa packages online.
Attached I give my preamble and the part where I want to add the references, as well as the .bib file.
Best,
Viktoria
[
Code: Select all
\documentclass[11pt,a4paper,english,bibliography=totocnumbered,numbers=noenddot,twoside,headsepline,listof=totocnumbered]{article}
\usepackage[textwidth=15cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[doublespacing]{setspace}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{braket}
\usepackage{cite}
\usepackage{enumerate}
\usepackage{lmodern}
\usepackage{graphicx}% Graphikpaket (fuer PNG,GIF,JPG)
%\usepackage{subfigure}% Mehrfachabbildungen
\usepackage{subfloat}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage{subfig}
\usepackage{wrapfig}
\usepackage{longtable}
\usepackage{float,rotating}%Option [H] fuer fixe Position; Drehung von Abbildungen etc.
\usepackage{array,booktabs}%erweiterte Moeglichkeiten zur Tabellendarstellung
\renewcommand{\arraystretch}{1.2}
%\usepackage[thickspace,squaren,textstyle]{SIunits}
\usepackage{hyperref}
\usepackage{acronym}
\hypersetup{
colorlinks = true,
citecolor = black,
linkcolor = black,
urlcolor = black
}
\allowdisplaybreaks
\def\rb#1{\rotatebox{270}{${#1}$}}
\setlength\parindent{0pt}
%..............Kopf und Fusnotengestaltung:.................
%\usepackage{scrpage2}
%\pagestyle{scrheadings}
\setlength{\topmargin}{-0.8in}
%\setlength{\textwidth}{390pt}
\setlength{\textheight}{9.5in} %Texthöhe ohne Kopfzeile und Fusszeile
\setlength{\headheight}{1.3cm} %Kopfzeilenhöhe
\setlength{\headsep}{1.0cm}
%\setlength{\headwidth}{\textwidth}
\addtolength{\evensidemargin}{-6mm} % Berücksichtigung einer 6mm Bindekorrektur
\addtolength{\oddsidemargin}{6mm}
%Schusterjungen und Hurenkinder
\widowpenalty=300
\clubpenalty=300
%\ofoot[]{}% keine Seitenzahl mehr außen (o = near outer margin)
%\cfoot[\pagemark]{\pagemark}% Seitenzahl (c = centered)
%\ihead{}
%\ohead{}
%\chead{\textnormal{\leftmark}}
%[chapter]{chapter}
%----Fußnotengestaltung--
\usepackage{chngcntr}
\usepackage{pdfpages}
\usepackage{url}
\usepackage{apacite}
%---------------References APA Style:------------
\usepackage[style=apa,backend=biber]{biblatex}
%\addbibresource{bibliography.bib}
%---------------Seitenzahlen:------------------
\newcommand{\sectionnumbering}[1]{%
\setcounter{section}{0}%
\renewcommand{\thesection}{\csname #1\endcsname{section}}}
%------------------Body:----------------------------------
%.................Titelseite:............................
\begin{document}
blablabla
\newpage
%\bibliographystyle{apacite} %evtl. plain in den Klammern
%http://www.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf
\bibliography{PaperCaseMethodologyViktoriaEhret.bib} % database is "thesis.bib" located in a "bibtex" subfolder
%\addbibresource{referencespaper.bib}
%\printbibliography
\end{document}]
.bib file:
[@article{Bloom2015,
author = {Bloom, N., Liang, J., Roberts, J., Ying, Z. J.},
title = {Does working from home work? Evidence from a chinese experiment},
journal = {The Quarterly Journal of Economics},
year = {2015},
volume = {130},
number = {1},
pages = {165--218},
}
@article{Biron2016,
author = {Biron, N., van Veldhoven, M.},
title = {When control becomes a liability rather than an asset: Comparing home and office days among part-time teleworkers},
journal = {Journal of Organizational Behavior},
year = {2016},
volume = {37},
pages = {1317--1337},
}
@article{Coll2016,
author = {Collins, A. M., Hislop, D., Cartwright, S.},
title = {Social support in the workplace between teleworkers, office-based colleagues and
supervisors},
journal = {New Technology, Work and Employment},
year = {2016},
volume = {31},
number = {2},
pages = {161--175},
}
@article{Mess2016,
author = {Messenger, J. C., Gschwind, L.},
title = {Three generations of Telework: New ICTs and the (R)evolution from Home Office to Virtual Office},
journal = {New Technology, Work and Employment},
year = {2016},
volume = {31},
number = {3},
pages = {195--208},
}
@booklet{Grunau2019,
title = {Homeoffice bietet Vorteile, hat aber auch Tücken},
author = {Grunau, P., Ruf, K., Steffes, S., Wolter, S.},
howpublished = {ZEW – Leibniz-Zentrum für Europäische Wirtschaftsforschung \& Institut für Arbeitsmarkt- und Berufsforschung (IAB)},
month = {June},
year = {2019}
}
@book{Neum2020,
author = {Neumann, J., Lindert, L., Seinsche, L., Zeike, S., Pfaff, H.},
title = {Homeoffice- und Präsenzkultur im öffentlichen Dienst in Zeiten der Covid-19-Pandemie. Ergebnisbericht August 2020},
publisher = {IMVR - Institut für Medizinsoziologie, Versorgungsforschung und Rehabilitationswissenschaft der Humanwissenschaftlichen Fakultät und der Medizinischen Fakultät der Universität zu Köln (KöR)},
address = {Köln, Germany},
year = {2020}
}
@misc{Conn2020,
title = {13 ways the coronavirus pandemic could forever change the way we work},
author = {Connley, C., Hess, A., Liu, J.},
howpublished = {\url{}},
year = {2020},
note = {Accessed: 2020-10-11}
}][I am writing to you concerning a bug with the apa bibliography. I have been working with latex for several years, but have never used apa citation style. For two days I am now already busy trying to fix that bug and I am getting crazy now. I can't find any solution. Maybe you could help me with that. I use TexStudio and the 2020 version of (vanilla) texlive, I have also installed the biblatex-apa package.
I am also not sure, if I should use biblatex-apa or just biblatex and define the style as apa. If I use the biblatex-apa package, I often get the error that the file biblatex-apa.sty is missing, but I couldn't find it in all the biblatex apa packages online.
I attach my preamble and the part where I want to add the references, as well as the .bib file.
Best,
Viktoria
[\documentclass[11pt,a4paper,english,bibliography=totocnumbered,numbers=noenddot,twoside,headsepline,listof=totocnumbered]{article}
\usepackage[textwidth=15cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[doublespacing]{setspace}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{braket}
\usepackage{cite}
\usepackage{enumerate}
\usepackage{lmodern}
\usepackage{graphicx}% Graphikpaket (fuer PNG,GIF,JPG)
%\usepackage{subfigure}% Mehrfachabbildungen
\usepackage{subfloat}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage{subfig}
\usepackage{wrapfig}
\usepackage{longtable}
\usepackage{float,rotating}%Option [H] fuer fixe Position; Drehung von Abbildungen etc.
\usepackage{array,booktabs}%erweiterte Moeglichkeiten zur Tabellendarstellung
\renewcommand{\arraystretch}{1.2}
%\usepackage[thickspace,squaren,textstyle]{SIunits}
\usepackage{hyperref}
\usepackage{acronym}
\hypersetup{
colorlinks = true,
citecolor = black,
linkcolor = black,
urlcolor = black
}
\allowdisplaybreaks
\def\rb#1{\rotatebox{270}{${#1}$}}
\setlength\parindent{0pt}
%..............Kopf und Fusnotengestaltung:.................
%\usepackage{scrpage2}
%\pagestyle{scrheadings}
\setlength{\topmargin}{-0.8in}
%\setlength{\textwidth}{390pt}
\setlength{\textheight}{9.5in} %Texthöhe ohne Kopfzeile und Fusszeile
\setlength{\headheight}{1.3cm} %Kopfzeilenhöhe
\setlength{\headsep}{1.0cm}
%\setlength{\headwidth}{\textwidth}
\addtolength{\evensidemargin}{-6mm} % Berücksichtigung einer 6mm Bindekorrektur
\addtolength{\oddsidemargin}{6mm}
%Schusterjungen und Hurenkinder
\widowpenalty=300
\clubpenalty=300
%\ofoot[]{}% keine Seitenzahl mehr außen (o = near outer margin)
%\cfoot[\pagemark]{\pagemark}% Seitenzahl (c = centered)
%\ihead{}
%\ohead{}
%\chead{\textnormal{\leftmark}}
%[chapter]{chapter}
%----Fußnotengestaltung--
\usepackage{chngcntr}
\usepackage{pdfpages}
\usepackage{url}
\usepackage{apacite}
%---------------References APA Style:------------
\usepackage[style=apa,backend=biber]{biblatex}
%\addbibresource{bibliography.bib}
%---------------Seitenzahlen:------------------
\newcommand{\sectionnumbering}[1]{%
\setcounter{section}{0}%
\renewcommand{\thesection}{\csname #1\endcsname{section}}}
%------------------Body:----------------------------------
%.................Titelseite:............................
\begin{document}
blablabla
\newpage
%\bibliographystyle{apacite} %evtl. plain in den Klammern
%http://www.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf
\bibliography{PaperCaseMethodologyViktoriaEhret.bib} % database is "thesis.bib" located in a "bibtex" subfolder
%\addbibresource{referencespaper.bib}
%\printbibliography
\end{document}]
.bib file:
[@article{Bloom2015,
author = {Bloom, N., Liang, J., Roberts, J., Ying, Z. J.},
title = {Does working from home work? Evidence from a chinese experiment},
journal = {The Quarterly Journal of Economics},
year = {2015},
volume = {130},
number = {1},
pages = {165--218},
}
@article{Biron2016,
author = {Biron, N., van Veldhoven, M.},
title = {When control becomes a liability rather than an asset: Comparing home and office days among part-time teleworkers},
journal = {Journal of Organizational Behavior},
year = {2016},
volume = {37},
pages = {1317--1337},
}
@article{Coll2016,
author = {Collins, A. M., Hislop, D., Cartwright, S.},
title = {Social support in the workplace between teleworkers, office-based colleagues and
supervisors},
journal = {New Technology, Work and Employment},
year = {2016},
volume = {31},
number = {2},
pages = {161--175},
}
@article{Mess2016,
author = {Messenger, J. C., Gschwind, L.},
title = {Three generations of Telework: New ICTs and the (R)evolution from Home Office to Virtual Office},
journal = {New Technology, Work and Employment},
year = {2016},
volume = {31},
number = {3},
pages = {195--208},
}
@booklet{Grunau2019,
title = {Homeoffice bietet Vorteile, hat aber auch Tücken},
author = {Grunau, P., Ruf, K., Steffes, S., Wolter, S.},
howpublished = {ZEW – Leibniz-Zentrum für Europäische Wirtschaftsforschung \& Institut für Arbeitsmarkt- und Berufsforschung (IAB)},
month = {June},
year = {2019}
}
@book{Neum2020,
author = {Neumann, J., Lindert, L., Seinsche, L., Zeike, S., Pfaff, H.},
title = {Homeoffice- und Präsenzkultur im öffentlichen Dienst in Zeiten der Covid-19-Pandemie. Ergebnisbericht August 2020},
publisher = {IMVR - Institut für Medizinsoziologie, Versorgungsforschung und Rehabilitationswissenschaft der Humanwissenschaftlichen Fakultät und der Medizinischen Fakultät der Universität zu Köln (KöR)},
address = {Köln, Germany},
year = {2020}
}
@misc{Conn2020,
title = {13 ways the coronavirus pandemic could forever change the way we work},
author = {Connley, C., Hess, A., Liu, J.},
howpublished = {\url{}},
year = {2020},
note = {Accessed: 2020-10-11}
}]