我正在尝试创建一个自定义书目文件以与 natbib 一起使用。我曾使用过
latex makebst
在运行 makebst 期间,我选择了数字样式(默认)选项:
STYLE OF CITATIONS:
(*) Numerical as in standard LaTeX
但是,该样式不适用于该\citet
命令。
Whitney [2] has demonstrated ...
我明白了
(author?) [2] has demonstrated ...
以及以下警告
Package natbib Warning: Author undefined for citation`Whi65'(natbib) on page 1 on input line 6.
我究竟做错了什么?
梅威瑟:
\documentclass{article}
\usepackage[square, numbers, comma, sort, compress]{natbib}
\begin{filecontents}{database.bib}
@article{MP74,
author = "Robert MacPherson",
title = "Chern classes for singular algebraic varieties",
journal = "Ann. of Math.",
volume = 100,
year = 1974,
pages = "423--432"}
@article{Whi65,
author = "Hassler Whitney",
title = "Tangents to an analytic variety",
journal = "Ann. of Math.",
volume = 81,
year = 1965,
pages = "496--549"}
\end{filecontents}
\begin{document}
For more information read \citep{MP74}.
\citet{Whi65} has demonstrated ...
\bibliographystyle{mystyle}
\bibliography{database}
\end{document}