答案1
\documentclass{amsart}
\begin{document}
This part was taken from the following paper: \cite{article-minimal}
\bibliographystyle{ams}
\bibliography{xampl}
\end{document}
(使用 texlive 中的示例 bib 文件)生成
这是预期的输出。请注意,您显示了不同的格式,前面有一个空格,:
并且 ?? 而不是 [?],但您没有提供不可重现的示例。
如果在运行 pdflatex 之后再运行 bibtex 来生成参考书目,那么您会得到:
$ bibtex bb812
This is BibTeX, Version 0.99d (TeX Live 2021)
The top-level auxiliary file: bb812.aux
I couldn't open style file ams.bst
---line 3 of file bb812.aux
: \bibstyle{ams
: }
I'm skipping whatever remains of this command
I found no style file---while reading file bb812.aux
(There were 2 error messages)
并且没有生成参考书目,因为\bibliographystyle
参考文献的样式未知。更改为以下 plain
样式:
\documentclass{amsart}
\begin{document}
This part was taken from the following paper: \cite{article-minimal}
\bibliographystyle{plain}
\bibliography{xampl}
\end{document}
再次运行 pdflatex,然后运行 bibtex,终端显示:
$ bibtex bb812
This is BibTeX, Version 0.99d (TeX Live 2021)
The top-level auxiliary file: bb812.aux
The style file: plain.bst
Database file #1: xampl.bib
并再次运行 pdflatex两次解决交叉引用产生