[Tex/LaTex] Author-year citation in LaTeX

bibtexnatbib

How can I do this style of citation in LaTeX (Shannon 1948)

what package I need?

I have used

\usepackage[authoryear]{natbib}
\bibliographystyle{plain}

and the output was [1] and I need to to be for example (Shannon 1948)

Best Answer

I solve it

it should be

\usepackage[round]{natbib}
\bibliographystyle{plainnat}

and use \citep instead of \cite