I would like to use Harvard style in overleaf, therefore I use
\usepackage[sorting=nyt,style=apa,maxcitenames=2,backend=biber]{biblatex}
\addbibresource{sample.bib}
\begin{document}
\printbibliography
\end{document}
and then use \autocite{}, but it prints four authors names. I tried to use \natbib, but it was not comaptible with overleaf. Then I tried authoryear-ibid style again the problem was the same. Is there any trick that I could solve this problem? agsm style does not work on overleaf as well.
PS1. I went through this page as well enter link description here, but I could not find a solution. I also saw enter link description here, but Overleaf gets errors about Harvard style.
PS2. For some, it shows just one, and the et. al for some it prints 3 or 4 author names.
style=apa,does. If you don't want real APA style it is better not to usestyle=apa,. ... – moewe Aug 06 '21 at 19:11style=authoryear-ibid,might be more appropriate if you do not want APA style. By default the styles of thebiblatexstandard styles of theauthoryearfamily also add more names (and name initials) to make citation labels unique, but this can be turned off: https://tex.stackexchange.com/q/69028/35864 and https://tex.stackexchange.com/q/134535/35864. – moewe Aug 06 '21 at 19:12