I want to use the following citation style
(AuthorName, Year)
I tried to do this by using the following commands
\usepackage{natbib}
...
\fancyhead[LO]{Bibliography}
\setcitestyle{round}
\bibliographystyle{plainnat}
\bibliography{references}
but the results is:
[AuthorName, Year]
Because I am not that comfortable with latex, I am also adding the other packages I am using, just to make sure I am not using something that comes in conflict with the natbib package
\usepackage{placeins}
\usepackage{amsmath}
\usepackage{subcaption}
\usepackage{soul}
\usepackage{float}
\usepackage{amssymb} % Fancy letter package
\usepackage{mathrsfs} % Fancy letter package
\usepackage{caption}
\usepackage[toc,page]{appendix}
Update 1:
I forgot to mention that I am using overleaf.com for my document.
\setcitestyle{round}
in the document body? I can't quite tell, but the code snippet suggests you do. Try moving it into the preamble (i.e. before\begin{document}
).$O(\log_2 n)$
steps to reduce$n$
lines of code (so about 10 steps for 1000 lines of code).