Every time I compile my document and produce a PDF, it does not print my citations or references section. The preamble is copied below. I have a .bib file and all of the packages installed, the .bib file is in the same folder as the manuscript .tex file.
All the required packages are installed, and I have tried to fix this any number of ways, but with no luck. Does anyone have a suggestion? Note that I have tried to post a minimal working example in the code block. I am trying to get this to work on my own computer with the bibliography file I created from Zotero, rather than creating a new file contents on LaTeX, unless that is what you are supposed to do... I read the entire manual for biblatex but it does not explain clearly.
\documentclass[man]{apa7}
\usepackage[english]{babel}
\usepackage{kvoptions}
\usepackage{url}
\usepackage{csquotes}
\usepackage{setspace}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{etoolbox}
\usepackage{logreq}
\usepackage[sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
%%\addbibresource{C:/Users/meese/Box/Research/SeekingButDefensive/NewSelfZoo/NewSelfZooBibliography.bib}
\begin{filecontents}{bibliography.bib}
@article{karlsson_ostrich_2009,
title = {The ostrich effect: Selective attention to information},
volume = {38},
doi = {https://doi.org/10.1007/s11166-009-9060-6},
pages = {95--115},
number = {2},
journaltitle = {Journal of Risk and uncertainty},
author = {Karlsson, Niklas and Loewenstein, George and Seppi, Duane},
date = {2009},
note = {Publisher: Springer},
}
\end{filecontents}
\addbibresource{bibliography.bib}
\begin{document}
cite{karlsson_ostrich_2009}
\printbibliography
\end{document}
\bibliography.bib, instead ofbibliography.bib. That could be a problem. – Werner Mar 01 '21 at 04:21biber? – Werner Mar 01 '21 at 05:18\DeclareLanguageMapping{american}{american-apa}and should remove it. That line was once needed in very old versions ofbiblatex-apa. It is no longer needed with newer versions ofbiblatex-apaand was never needed if you didn't loadstyle=apa,(you don't). – moewe Mar 01 '21 at 07:16doifield should only contain the DOI, not the link portionhttps://doi.org/orhttp://dx.doi.org/. Sodoi = {https://doi.org/10.1007/s11166-009-9060-6},is wrong and should bedoi = {10.1007/s11166-009-9060-6},. It is also extremely uncommon to give the publisher of a journal, so I would drop thenote = {Publisher: Springer},. – moewe Mar 01 '21 at 07:32.bibfile in a central location. It is fine to keep it in the same directory as your main.texfile. (There are ways to use one big central file and make it accessible from 'everywhere', but I would not worry about that at the moment. Put your.bibfile in the same directory as your.texfile and see if you can get things going. Once things work, you can think about central.bibfiles: https://tex.stackexchange.com/q/6805/35864) – moewe Mar 01 '21 at 07:41cmd, then hit enter) and type inbiber --versionand hit enter. After a while you should get a response likebiber version: 2.16. If you have never used Biber before, this may take a while: Do not close the terminal window or do anything else to abort the Biber run in that case as that might lead to an incorrectly unpacked executable: Just wait. If Biber is not installed, you should get an error quickly. – moewe Mar 01 '21 at 07:44