在latexmk
bibtex 的自动处理中,如果bibtex
抛出一个可以通过额外运行解决的错误,则latexmk
停止其“进一步处理”,建议使用-f
强制运行。我原本以为它可以解决 latex .log 文件中缺少引用的警告。相反,latexmk
需要 3 次手动运行才能打印出参考文献,而无需?
在 pdf 文档中打印
\documentclass{article}
\begin{document}
\cite{patashnik88}
\bibliographystyle{plain}
\bibliography{sample}
\end{document}
.bib 文件内容
@misc{patashnik88,
author = "Oren Patashnik",
title = "{B}ib{T}e{X}ing. Documentation for General {B}ib{T}e{X} users",
year = "1988",
howpublished = "Electronic document accompanying BibTeX
distribution"
}
@misc{patashnik88,
author = "Oren Patashnik",
title = "{B}ib{T}e{X}ing. Documentation for General {B}ib{T}e{X} users",
year = "1988",
howpublished = "Electronic document accompanying BibTeX
distribution"
}
bibtex 错误(由于存在重复的 bibtex 条目):
@misc{patashnik88 : , I'm skipping whatever remains of this entry (There was 1 error message)