[Tex/LaTex] Authors are not found for citation by natbib

bibliographiescitingnatbib

I am trying to use Natbib to print et al. for authors, for instance "Jeannet et al. [1]".

\documentclass[runningheads,orivec]{llncs}
\usepackage{natbib}
\begin{document}
\cite{jeannetmine09}    % gives [1]
\citet{jeannetmine09}   % gives (author?) [1]
\citep{jeannetmine09}   % gives [1]
\bibliographystyle{plain}
\bibliography{bibfile}
\end{document}

where bibfile.bib contains

@InProceedings{jeannetmine09, 
   Author = {Jeannet, B. and Min\'e, A.},
   Title = {{APRON}: A Library of Numerical Abstract Domains for Static Analysis},
   BookTitle = {Computer Aided Verification, CAV'2009},
   Volume = {5643},
   Pages = {661--667},
   Series = {LNCS},
   Year = {2009}
} 

I don't know why \citet{jeannetmine09} can't find the authors as this link shows. Could anyone help?

Best Answer

I answered in the comment you should use the bibliography style plainnat.

In combination with this bibliography style you have to submit the option numbers to natbib.

Here the complete example:

\documentclass{article}
\usepackage[numbers]{natbib}

\usepackage{filecontents}
\begin{filecontents}{bibfile.bib}
@InProceedings{jeannetmine09, 
   Author = {Jeannet, B. and Min\'e, A.},
   Title = {{APRON}: A Library of Numerical Abstract Domains for Static Analysis},
   BookTitle = {Computer Aided Verification, CAV'2009},
   Volume = {5643},
   Pages = {661--667},
   Series = {LNCS},
   Year = {2009}
} 

\end{filecontents}
\begin{document}
\cite{jeannetmine09}    % gives [1]

\citet{jeannetmine09}   % gives (author?) [1]

\citep{jeannetmine09}   % gives [1]

\bibliographystyle{plainnat}
\bibliography{bibfile}
\end{document}

Result:

enter image description here

PS: Please don't provide examples with unknown (i.e. not on CTAN) document classes unless (i) the class is relevant to the problem you're having and (ii) you supply a link to the class.

Related Question