未定义控制序列使用 biblatex 和 Zotero

未定义控制序列使用 biblatex 和 Zotero

我正在使用 Texmaker 4.0.4 并从 Zotero 导出biblatex.bib。我的文件test.tex

\documentclass{article}
\usepackage[backend=biber]{biblatex}
\bibliography{Biblatex.bib}
\begin{document}
\cite{campbell2007}
\cite{moffitt86}

\printbibliography 
\end{document}

我的biblatex.bib

@article{moffitt86,
    title = {The econometrics of piecewise-linear budget constraints: a survey and exposition of the maximum likelihood method},
    shorttitle = {The econometrics of piecewise-linear budget constraints},
    pages = {317–328},
    journaltitle = {Journal of Business \& Economic Statistics},
    author = {Moffitt, R.},
    date = {1986},
    file = {Google Scholar Linked Page:files/837/Moffitt - 1986 - The econometrics of piecewise-linear budget constr:}
}


@article{campbell2007,
    title = {"Says who" How the source of price information and affect influence perceived price (un) fairness},
    volume = {44},
    issue = {2},
    pages = {261-271},
    journaltitle = {Journal of Marketing Research},
    author = {Campbell, {M.C.}},
    date = {2007},
    file = {Google Scholar Linked Page:files/912/jmkr.44.2.html:text/html}
}

我收到一条错误消息:

! Undefined control sequence.
<to be read again> \edef \blx@tempa {317\x
{FFFD}\x {FFFD}\x {FFFD}328}
l.11 \end
{document}

关于如何解决这个问题您有什么想法吗?

答案1

请注意,这是不是不过,这是 Zotero 的一个错误。您已将 Zotero 导出字符集设置为,utf-8并且短划线是有效utf-8字符。

\usepackage[utf8]{inputenc} 您可以使用例如以下方法解决此问题,而无需搜索和替换突出显示使用创建的参考列表中特定条目中的更改biblatex

或者,您可以将 Zotero 中的导出字符集设置为ISO 8859-1,这样将把短破折号转义为{\textendash}(后一个选项在 Zotero 导出时不可用biblatex,仅在 BibTeX 中可用)

相关内容