我在 texmaker 中使用以下测试程序
例如
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{babel}
\usepackage{natbib}
\begin{document}
hello\citet*{greenwade93}
\bibliographystyle{plainat}
\bibliography{bibliography}
\end{document}
参考书目中的条目是
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351",
year = "2004"
}
当我构建 bibtex 和 pdflatex 时,输出只是“你好?” (texmaker中没有错误/警告)。然后我运行“pdflatex test”它显示
Package natbib Warning: Citation `greenwade93' on page 1 undefined on input lin
e 8.
然后“bibtex 测试”显示
I couldn't open style file plainat.bst
我检查了 miktex 包管理器 natbib 包是否已安装,所有 3 个 ntabib bst 文件都在C:\Program Files (x86)\MiKTeX 2.8\bibtex\bst\natbib
文件夹中。