\printbibliography (biblatex) 中未定义控制序列

\printbibliography (biblatex) 中未定义控制序列

编辑:根据建议,我添加了:

\usepackage[utf8]{inputenc}

并改变了

\bibliography{citations.bib}

进入

\addbibresrouce{citations.bib}

这解决了这个特定的问题,尽管我现在有一个输入问题,但可能与这个确切的问题没有直接关系。

我遇到了一个似乎无法理解的问题,而且我在谷歌上搜索这个问题时似乎也没有找到任何东西。我不知道,也许我只是在谷歌上搜索了错误的单词。

我正在使用带有 TexShop 的 Os X,并已定义使用 biber 运行的 BibTeX 引擎。

我有(摘录):

\usepackage[backend=biber]{biblatex}
\bibliography{citations.bib}

\begin{document}
\section{Some section}
Some text ... \cite{someBook}

\section{References}
\printbibliography
\end{document}

首先我运行了 LaTeX 编译,然后运行了 BibTeX。(确认 biber 正在运行。日志证实了这一点,同时还出现了几个警告:

/var/folders/f6/9vk9f7jn0zx_7cngdjxv1rdr0000gn/T/10ttGvYx8U/citations.bib_9023.utf8, line 46, syntax error: found "of", expected "="
/var/folders/f6/9vk9f7jn0zx_7cngdjxv1rdr0000gn/T/10ttGvYx8U/citations.bib_9023.utf8, line 50, warning: 13 characters of junk seen at toplevel
"\x{fffd}" does not map to ascii at Biber/Output/BBL.pm line 430.
"\x{fffd}" does not map to ascii at Biber/Output/BBL.pm line 430.
INFO - This is biber 0.9.3
INFO - Logfile is 'report, main.blg'
INFO - Reading report, main.bcf
INFO - Found 7 citekeys in bib section 0
INFO - Processing bib section 0
INFO - Looking for bibtex format file 'citations.bib' for section 0
INFO - Found bibtex data file 'citations.bib'
WARN - Entry relevance-basedlanguagemod does not parse correctly: skipping
INFO - Sorting list 'MAIN' keys
INFO - No sort tailoring available for locale 'en_US.UTF-8'
INFO - Sorting list 'SHORTHANDS' keys
INFO - No sort tailoring available for locale 'en_US.UTF-8'
INFO - Writing 'report, main.bbl' with encoding 'ascii'
INFO - Output to report, main.bbl

然后再次运行 LaTeX-compile 时我得到以下信息:

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 \write18 enabled.
entering extended mode
(./report, main.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2011/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/logreq/logreq.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/logreq/logreq.def))
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.def)
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx)
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.cfg))
(/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
(./report, main.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/local/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (./report, main.bbl)
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsb.fd)
(./report, main.toc) [1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updm
ap/pdftex.map}] [2] [3]
Overfull \hbox (14.92099pt too wide) in paragraph at lines 42--43
\OT1/cmr/m/n/12 page al-lows a wide range of data col-lec-tions, all of which a
re fetched from Wikipedia[    3],
[4] [5] [6] [7] [8]
./report, main.tex:119: Undefined control sequence.
<argument> Sch\x 
                 {fffd}tze
l.119 

?

./report, main.tx:119 处的行包含 \printbibliography 命令。我似乎无法理解为什么会出现此错误。

我的 citations.bib 文件如下所示:

@ARTICLE{learningsimilaritymetrics,
   author = {Hila Becker and Mor Naaman and Luis Gravano},
   title = {Learning Similarity Metrics for Event Identification in Social Media},
   institution = {Columbia and Rutgers University},
   year = {2010}
}

@ONLINE{dbpedia,
   title = {DBPedia},
   author = {Christopher Sahnwaldt},
   url = {http://www.DBpedia.org},
   year = {2013}
}

@ONLINE{mirflickr,
   title = {MIRFlickr},
   author = {Mark Huiskes and Bart Thomee and Michael Lew},
   url = {http://press.liacs.nl/mirflickr/},
   year = {2013}
}

@ONLINE{flickr,
   title = {Flickr},
   author = {The Flickr Team},
   url = {http://www.flickr.com},
   year = {2013}
}

@ONLINE{wiki,
   author = {The Wikimedia Foundation},
   title = {Wikipedia},
   url = {http://www.wikipedia.org},
   year = {2013}
}

@ARTICLE{approachtoautoqexp,
   author = {Claudio Carpineto and Renato De Mori and Giovanni Romano and Brigitte Bigi},
   title = {An Information-Theoretic Approach to Automatic Query Expansion},
   institution = {Fondazione Ugo Bordini and University of Avignon},
   year = {2001}
}

@ARTICLE{relevance-basedlanguagemod,
   author = {Victor Lavrenko and W. Bruce Croft},
   title = {Relevance-Based Language Models},
   institution = {Center for Intelligent Information Retrieval, Dept. of Computer Science}, University of Massachusetts},
   year = {2001}
}

@ARTICLE{comparingandcombiningmethodsautoqexp,
   author = {José R. Pérez-Agüera and Lourdes Araujo},
   title = {Comparing and Combining Methods for Automatic Query Expansion},
   institution = {Dpto. de Ingeniería del Software e Inteligencia Artificial, UCM and Dpto. Lenguajes y Sistemas Informáticos, UNED},
   year = {2008}
}

@BOOK{introtoinforetrieval,
   author = {Christopher D. Manning and Prabhakar Raghavan and Hinrich Schütze},
   title = {Introduction to Information Retrieval},
   publisher = {Cambridge University},
   year = {2008}
}

@BOOK{moderninforetrieval,
   author = {Ricardo Baeza-Yates and Berthier Ribeiro-Neto},
   title = {Modern Information Retrieval: The concepts and technology behind search},
   edition = {2nd},
   publisher = {Pearson Education Limited},
   year = {2011}
}

如果我按下回车键忽略这个错误,报告仍然会编译并生成一个看似正确的 PDF,但一直出现这个错误还是很烦人。

答案1

感谢 Andrew Swann 提出以下修复建议:

添加(重要提示:这不一定与我原来的问题直接相关,但却是我设置无错误运行之前所做的更改的一部分):

\usepackage[utf8]{inputenc}

并改变:

\bibliography{citations.bib}

进入:

\addbibresource{citations.bib}

这解决了我的问题。

相关内容