![LaTeX 警告:第 N 页上的引用‘foo’在输入行 XX 上未定义](https://linux22.com/image/282044/LaTeX%20%E8%AD%A6%E5%91%8A%EF%BC%9A%E7%AC%AC%20N%20%E9%A1%B5%E4%B8%8A%E7%9A%84%E5%BC%95%E7%94%A8%E2%80%98foo%E2%80%99%E5%9C%A8%E8%BE%93%E5%85%A5%E8%A1%8C%20XX%20%E4%B8%8A%E6%9C%AA%E5%AE%9A%E4%B9%89%20.png)
当我编译我的 tex 文档时,我收到所有 bib 条目的一些警告。警告是
LaTeX Warning: Citation `foo' on page N undefined on input line XX.
我使用的命令是
bibtex template.tex
I couldn't open file name `template.tex.aux'
pdflatex template.tex
....
LaTeX Warning: Citation `foo' on page N undefined on input line XX.
该文件是
documentclass[pageno]{jpaper}
\usepackage[normalem]{ulem}
\usepackage{array}
\usepackage{mathtools}
\usepackage{multirow}
\usepackage{rotating}
\begin{document}
\title{the tile}
\date{}
\maketitle
\begin{abstract}
the abs
\end{abstract}
\section{Introduction}
....
\bstctlcite{bstctl:etal, bstctl:nodash, bstctl:simpurl}
\bibliographystyle{IEEEtranS}
\bibliography{references}
\end{document}
该reference.bib
文件是
@IEEEtranBSTCTL{bstctl:etal,
CTLuse_forced_etal = {no},
CTLmax_names_forced_etal = {3},
}
@IEEEtranBSTCTL{bstctl:nodash,
CTLdash_repeated_names = {no},
}
@IEEEtranBSTCTL{bstctl:simpurl,
CTLname_url_prefix = {Available: },
}
@inproceedings{foo,
author = "some ones",
title = "{something}",
booktitle = {proc},
year = {2011},
pages = {1-2},
}
....
这个警告是什么意思?
答案1
bibtex template.tex
永远不会起作用。
您首先需要运行 latex template.tex
,然后bibtex template
bibtex 就会查找template.aux
。
当您再次运行 latex 时(必须运行两次),引用参考应该可用。