Package natbib Warning: Citation `a9' on page 5 un...
创建于:2025年5月5日
创建于:2025年5月5日
Package natbib Warning: Citation `a9' on page 5 undefined on input line 453. References follow the acknowledgments in the camera-ready paper. Use unnumbered first-level heading for
the references . Any choice of citation style is acceptable as long as you are
consistent. It is permissible to reduce the font size to \verb+small+ (9 point)
when listing the references.
Note that the Reference section does not count towards the page limit.\cite{a9}
That warning is La TeX’s way of saying, “I can’t find a reference with the key a9
.”
Here’s what it’s telling you and how to clear it up:
\cite{a9}
(line 453), but there is no BibTeX/\bibitem
entry whose key is exactly a9
when La TeX builds the document.Situation | What to do |
---|---|
You meant to cite an existing source but mistyped the key | Correct the key in \cite{…} so it matches the entry in your .bib file or your manual \bibitem . |
The source isn’t in your bibliography yet | Add a BibTeX entry (or \bibitem ) for it, using a9 as the key. Example for BibTeX: |
bibtex@inproceedings{a9, author = {First A. Author and Second B. Author}, title = {Title of the work}, booktitle = {Proceedings …}, year = {2024}, pages = {1--10} } ``` | | You no longer need that citation | Delete or comment out the `\cite{a9}` command. | After fixing one of the above, run: 1. **latex/pdflatex** 2. **bibtex** (or biber) 3. **latex/pdflatex** twice more to resolve all cross‑references. ### 3 Camera‑ready formatting reminders (per the note you quoted) - **References section** comes *after* acknowledgments. - Use an **unnumbered first‑level heading**: ```latex \section*{References}
\small
(9 pt) to save space:
latex\begingroup \small \bibliography{yourbibfile} \endgroup
@…{a9, …}
entry in your .bib
?\cite{…}
match exactly (case‑sensitive)?Once the key is defined and the document is recompiled in the proper sequence, the natbib warning will disappear and your citation will show up correctly.
consistent. It is permissible to reduce the font size to \verb+small+ (9 point)
when listing the references.
Note that the Reference section does not count towards the page limit.\cite{a9}
\medskip
{
\small
[1] Alexander, J.A.\ & Mozer, M.C.\ (1995) Template-based algorithms for
connectionist rule extraction. In G.\ Tesauro, D.S.\ Touretzky and T.K.\ Leen
(eds.), {\it Advances in Neural Information Processing Systems 7},
pp.\ 609--616. Cambridge, MA: MIT Press.
[2] Bower, J.M.\ & Beeman, D.\ (1995) {\it The Book of GENESIS: Exploring
Realistic Neural Models with the GEneral NEural SImulation System.} New York:
TELOS/Springer--Verlag.
[3] Hasselmo, M.E., Schnell, E.\ & Barkai, E.\ (1995) Dynamics of learning and
recall at excitatory recurrent synapses and cholinergic modulation in rat
hippocampal region CA3. {\it Journal of Neuroscience} {\bf 15}(7):5249-5262.
}
{
\small
\bibliographystyle{ieeenat_fullname}
\bibliography{main}
}
说中文 怎么引用的时候显示序号
下面用中文说明如何让 natbib 把引用显示成数字序号(如 [1]、[2]…)。
latex\usepackage[numbers]{natbib} % 仅数字 % 或者 \usepackage[numbers,sort&compress]{natbib} % 数字并按大小排序、连号压缩
要点
‑ 如果省略了numbers
,natbib 默认用作者‑年份格式。
‑sort&compress
可把[3,2,5,4]
自动排成[2‑5]
。
你已经用 ieeenat_fullname
,它本身就是数字样式的 BibTeX 文件;也可以用
plainnat
、unsrtnat
、abbrvnat
、IEEEtranN
等。示例:
latex\bibliographystyle{ieeenat_fullname} \bibliography{main} % .bib 文件名
\cite{键}
就会显示数字latex……这是正文中的一句话\cite{a9}。
编译顺序保持 LaTeX → BibTeX → LaTeX → LaTeX,PDF 里就会出现 [1]
形式。
[1] …
你在代码里手动列了
latex[1] Alexander, J.A. ...
如果继续用 BibTeX + natbib,请把这段删掉,改用标准环境:
latex\begingroup \small % 9pt 字号 \bibliography{main} \endgroup
BibTeX 会自动把 .bib
里的条目排成 [1]、[2]、[3]…。
现象 | 解决办法 |
---|---|
PDF 中显示 “??” | .bib 里没有对应 key;或忘记跑 BibTeX;或 key 拼写大小写不一致。 |
仍然是作者‑年份 | ① 确认 \usepackage[numbers]{natbib} ;② 检查是否有别的包(如 apalike )覆盖了样式。 |
想在文中用 “[作者, 年份]” 但参考文献仍用数字 | 不可同时;natbib 要么全数字,要么全作者‑年份。 |
latex\documentclass{article} \usepackage[numbers,sort&compress]{natbib} \begin{document} 这是一次引用\cite{a9}。 \section*{References} \begingroup \small \bibliographystyle{ieeenat_fullname} \bibliography{main} \endgroup \end{document}
确保 main.bib
里有 @…{a9, …}
条目并按前述顺序编译,即可得到数字序号引用。