如何在特定模板中使用 natbib 引用样式?

如何在特定模板中使用 natbib 引用样式?

我正在与背面的 NeurIPS 模板。从我的阅读中,我了解到这natbib是供参考的默认包。我尝试仔细阅读说明,并阅读了官方 Overleaf 的教程natbib

但我仍然无法使用参考通常情况下? 我更喜欢在单独的文件中引用,例如my_ref.bib包含:

@inproceedings{Arora2018StrongerGB,
  title={Stronger generalization bounds for deep nets via a compression approach},
  author={Sanjeev Arora and Rong Ge and Behnam Neyshabur and Yi Zhang},
  booktitle={International Conference on Machine Learning},
  year={2018}
}

然后在 中main.tex我这样做:

\section*{References}
\bibliographystyle{IEEEtran}
\bibliography{my_ref}

[已编辑] 我添加了该IEEEtran.bst文件。

然后\cite{Arora2018StrongerGB}在 中使用main.tex。我也试过了citet{Arora2018StrongerGB}。但它也不适用于此模板。

在此处输入图片描述

在此处输入图片描述

请随意检查项目:https://www.overleaf.com/8778352361kqjtqqkyncyw

任何建议都值得赞赏。谢谢!

以下是日志内容output.blg

This is BibTeX, Version 0.99d (TeX Live 2022)
Capacity: max_strings=200000, hash_size=200000, hash_prime=170003
The top-level auxiliary file: output.aux
The style file: IEEEtran.bst
You've used 1 entry,
            0 wiz_defined-function locations,
            87 strings with 538 characters,
and the built_in function-call counts, 0 in all, are:
= -- 0
> -- 0
< -- 0
+ -- 0
- -- 0
* -- 0
:= -- 0
add.period$ -- 0
call.type$ -- 0
change.case$ -- 0
chr.to.int$ -- 0
cite$ -- 0
duplicate$ -- 0
empty$ -- 0
format.name$ -- 0
if$ -- 0
int.to.chr$ -- 0
int.to.str$ -- 0
missing$ -- 0
newline$ -- 0
num.names$ -- 0
pop$ -- 0
preamble$ -- 0
purify$ -- 0
quote$ -- 0
skip$ -- 0
stack$ -- 0
substring$ -- 0
swap$ -- 0
text.length$ -- 0
text.prefix$ -- 0
top$ -- 0
type$ -- 0
warning$ -- 0
while$ -- 0
width$ -- 0
write$ -- 0

相关内容