TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have taken a look through many other questions on this subject but cannot seem to fix my issue. Essentially while references display correctly I cannot get the author citation to appear in my text despite running pdflatex followed by bibtex followed by two more runs of pdflatex. Any help would be appreciated.

Sample tex file:

\documentclass{article}
\usepackage{natbib}

\begin{document}

Blahblahblah \citet*{Test12}.

\bibliographystyle{plain}
\bibliography{refs}

\end{document}

refs.bib:

@article{Test12,
author = "John Smith",
title = "Test Article",
year = "2012",
journal = "The Test Journal"
}

Output:

enter image description here

share|improve this question

marked as duplicate by Ronny, egreg bibtex Jul 19 at 6:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
How can be duplicate to question which has been asked one year after this? – Zarko Jul 19 at 5:24
    
Because the new one is answered. I'm also voting to close. – Ronny Jul 19 at 5:33
up vote 22 down vote accepted

Use the bibstyle file:

\bibliographystyle{plainnat}

and it should word.

enter image description here

And if you really want a numbered bibliography use also

\usepackage[numbers]{natbib}
share|improve this answer

As you surely get as output:

" Package natbib warning: Author undefined for citation `Test12' "

The reason is because your \bibliographystyle{plain} uses numbers for references and not the author-year style.

In order for you to get the author name, you need a style that author-year compatible, such as IEEEtranSN, IEEEtranN or any other of your choice.

Please refer to the natbib package documentation for more.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.