I'm trying to convert my manuscript to PloS Comp Bio style. They provide a BibTeX style file. This works fine for inline citations with \usepackage[numbers,sort&compress]{natbib} (i.e. \citep{FooYear} -> [1]).
However, this style file does not seem to be compatible with the natbib \citet command. Whenever I use this I get \citet{FooYear} -> "(author?) [1]" (the reference to the author's name is unresolved). What I want is to display a reference to the author (i.e. "Foo & Smith [1]". Obviously, I could fix this manually, but I have quite a large number of cases in the manuscript.
If I use a different BibTeX style then the citations work fine but then the bibliography is not formatted correctly.
Minimum example
As suggested below here is a minimum example.
\documentclass{article}
\usepackage[numbers]{natbib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Test, A. and Foo, B.},
year = {2001},
title = {Alpha},
}
@misc{A02,
author = {Alex, A. and Bar, B.},
year = {2005},
title = {Alpha},
}
\end{filecontents}
\begin{document}
% These citations will work but in the apalike bibstyle they will not be sorted
% in citation order (the first citation is [2]).
\citep{A01}, \citep{A02}, \citet{A02}
% The author name will be undefined with the unsrt bibtex style
\citeauthor{A02}, \citet{A01}
\bibliography{\jobname}
\bibliographystyle{unsrt}
%\bibliographystyle{apalike}
\end{document}