zepinglee / gbt7714-bibtex-style

GB/T 7714-2015 BibTeX Style
LaTeX Project Public License v1.3c
1.16k stars 197 forks source link

参考文献引入为问号 #116

Closed earlyEpiphyte closed 1 year ago

earlyEpiphyte commented 1 year ago

我将压缩包直接导入overleaf,然后随便测试了一个参考文献,编译出来是问号,请问是咋回事呢

zepinglee commented 1 year ago

给个 MRE

earlyEpiphyte commented 1 year ago

抱歉,MRE啥意思

.bib文件如下

@book{b1,
title = {神经网络与深度学习},
publisher = {机械工业出版社},
year = {2020},
author = {邱锡鹏},
address = {北京},
isbn = {9787111649687},
url = {https://nndl.github.io/},
}

@inproceedings {b2,
author = {Tianqi Chen and Thierry Moreau and Ziheng Jiang and Lianmin Zheng and Eddie Yan and Haichen Shen and Meghan Cowan and Leyuan Wang and Yuwei Hu and Luis Ceze and Carlos Guestrin and Arvind Krishnamurthy},
title = {{TVM}: An Automated {End-to-End} Optimizing Compiler for Deep Learning},
booktitle = {13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18)},
year = {2018},
isbn = {978-1-939133-08-3},
address = {Carlsbad, CA},
pages = {578--594},
url = {https://www.usenix.org/conference/osdi18/presentation/chen},
publisher = {USENIX Association},
month = oct,
}

然后就是在overleaf上运行gbt7714-2015-examples.tex文件,引用了b1和b2,使用XeLaTeX编译,结果是问号

ps:\bibliographystyle{gbt7714-author-year}引用是正常显示的

zepinglee commented 1 year ago

一般要将 .bst.tex 文件放在一起。

TeX Live 选择的是哪个版本?把报错信息也贴一下?

earlyEpiphyte commented 1 year ago

TeX Live 为2022,没有错误,只有warning。

Package natbib Warning: Citation `b2' on page 1 undefined on input line 10.
Package natbib Warning: There were undefined citations.
zepinglee commented 1 year ago

“Citation `b2' on page 1 undefined”

.bib 文件的路径没设对,建议新开一个 .bib 试一下。

earlyEpiphyte commented 1 year ago

可以了,之前.bst文件里面的是别的文件的引用,我把它替换成引用的文件就行了,十分感谢