hope you are well!
I usually use "Overleaf" but recently I decided to switch to the offline version - LaTex. And, I am encountering this issue with references appearing as bold question marks "????". Do you know how to solve this? I've been reading and trying different things from the LaTeX forum but haven't been able to solve it. Thank you
\documentclass[12pt]{article}
\usepackage{mathptmx}
\usepackage{times} % these two packages "times" and "mathptmx" are for "times new roman" font, if you dont want these font, then delete these 2 packages
\usepackage{apacite} %for citations in APA style
\usepackage{etoolbox} %for bibliography
\usepackage{graphicx,url}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{placeins}
\usepackage{hyperref}
\usepackage{setspace}
\usepackage{csquotes}
\usepackage{natbib}
\typeout{}
\bibliographystyle{apalike}
\bibliography{bibfile}
\title{Bibliography management: \texttt{natbib} package}
\usepackage{listings}
\usepackage{color}
\usepackage[affil-it]{authblk}
\usepackage{soul}
\usepackage{booktabs} %For Tables
\usepackage{float} %For Tables
\usepackage{graphicx} %For Tables
\usepackage{caption} %For Tables
\usepackage{lscape} %for Tables
\usepackage{blindtext}
\pagestyle{plain}
\begin{document}
\addcontentsline{toc}{section}{References}
\begin{flushleft}
\raggedbottom
\bibliographystyle{apalike}
\bibliography{bibfile}
\end{flushleft}
\end{document}*
\usepackage{apacite}and\usepackage{natbib}in the same document. Rather, loadapacitewith the optionusepackage[natbibapa]{apacite}, which will automatically loadnatbibwith the correct compatibility options. – Manuel Weinkauf Jun 29 '21 at 10:50