
我在 Mac 上使用 TexMaker。在我的 BIB 文件中,我有一個類似以下的項目:
@inproceedings{DBLP:conf/wsdm/YeungI11,
author = {Ching{-}man Au Yeung and
Tomoharu Iwata},
title = {Strength of social influence in trust networks in product review sites},
booktitle = {Proceedings of the Forth International Conference on Web Search and
Web Data Mining, {WSDM} 2011, Hong Kong, China, February 9-12, 2011},
pages = {495--504},
year = {2011},
crossref = {DBLP:conf/wsdm/2011},
url = {http://doi.acm.org/10.1145/1935826.1935899},
doi = {10.1145/1935826.1935899},
timestamp = {Mon, 31 Jan 2011 13:46:06 +0100},
biburl = {http://dblp.uni-trier.de/rec/bib/conf/wsdm/YeungI11},
bibsource = {dblp computer science bibliography, http://dblp.org}
}
(我是從DBLP網站上得到的)
當我編譯 TEX 檔案時,出現錯誤:
bad cross reference---entry "DBLP:conf/wsdm/YeungI11" refers to entry "DBLP:conf/wsdm/2011", which doesn't exist
我可以在 ShareLatex 中毫無問題地編譯該檔案。
我該怎麼做才能在 TexMaker 中編譯該檔案?
答案1
(評論太長,因此作為答案發布。)
我可以想到您收到以下錯誤訊息的兩個原因
錯誤的交叉引用---條目“DBLP:conf/wsdm/YeungI11”引用條目“DBLP:conf/wsdm/2011”,該條目不存在
DBLP:conf/wsdm/2011
首先,您在本機電腦(以 TeXMaker 作為前端)上使用的 bib 檔案中缺少帶有 key 的條目。其次,該條目實際上存在於 bib 檔案中,但它發生了前用鑰匙進入DBLP:conf/wsdm/YeungI11
。為了使 BibTeX 的crossref
字段發揮作用,條目被交叉引用必須在 bib 檔案中出現的時間晚於包含crossref
相關欄位的條目。
無論如何,以下 MWE 工作正常(從 DBLP 獲得的兩個條目的資訊);請注意 中條目的順序test.bib
。
\RequirePackage{filecontents}
\begin{filecontents}{test.bib}
@inproceedings{DBLP:conf/wsdm/YeungI11,
author = {Ching{-}man Au Yeung and
Tomoharu Iwata},
title = {Strength of social influence in trust networks in product review sites},
booktitle = {Proceedings of the Forth International Conference on Web Search and
Web Data Mining, {WSDM} 2011, Hong Kong, China, February 9-12, 2011},
pages = {495--504},
year = {2011},
crossref = {DBLP:conf/wsdm/2011},
url = {http://doi.acm.org/10.1145/1935826.1935899},
doi = {10.1145/1935826.1935899},
timestamp = {Mon, 31 Jan 2011 13:46:06 +0100},
biburl = {http://dblp.uni-trier.de/rec/bib/conf/wsdm/YeungI11},
bibsource = {dblp computer science bibliography, http://dblp.org}
}
@proceedings{DBLP:conf/wsdm/2011,
editor = {Irwin King and
Wolfgang Nejdl and
Hang Li},
title = {Proceedings of the Forth International Conference on Web Search and
Web Data Mining, {WSDM} 2011, Hong Kong, China, February 9-12, 2011},
publisher = {{ACM}},
year = {2011},
isbn = {978-1-4503-0493-1},
timestamp = {Mon, 31 Jan 2011 13:29:32 +0100},
biburl = {http://dblp.uni-trier.de/rec/bib/conf/wsdm/2011},
bibsource = {dblp computer science bibliography, http://dblp.org}
}
\end{filecontents}
\documentclass{article}
\usepackage[numbers]{natbib}
\bibliographystyle{plainnat}
\begin{document}
\cite{DBLP:conf/wsdm/YeungI11}
\bibliography{test}
\end{document}