Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

2 Answers 2

up vote 7 down vote accepted

use the style 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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