
Estou usando o TexMaker no Mac. No meu arquivo BIB, tenho um item como:
@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}
}
(peguei no site DBLP)
Ao compilar o arquivo TEX, recebi um erro:
bad cross reference---entry "DBLP:conf/wsdm/YeungI11" refers to entry "DBLP:conf/wsdm/2011", which doesn't exist
Posso compilar o arquivo sem problemas no ShareLatex.
O que devo fazer para compilar o arquivo no TexMaker?
Responder1
(Muito longo para um comentário, portanto postado como resposta.)
Posso pensar em dois motivos pelos quais você está recebendo a seguinte mensagem de erro
referência cruzada incorreta --- a entrada "DBLP:conf/wsdm/YeungI11" refere-se à entrada "DBLP:conf/wsdm/2011", que não existe
Primeiro, a entrada com chave DBLP:conf/wsdm/2011
está faltando no arquivo bib que você usa em sua máquina local (com o TeXMaker como front end). Segundo, a entrada está realmente presente no arquivo bib, mas ocorreantesa entrada com chave DBLP:conf/wsdm/YeungI11
. Para que o campo do BibTeX crossref
funcione, a entrada sendo referenciadadeveocorrem posteriormente no arquivo bib do que a entrada que contém o crossref
campo em questão.
De qualquer forma, o seguinte MWE funciona bem (informações para ambas as entradas obtidas do DBLP); observe a ordem das entradas em 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}