\printbibliography 导致“缺少 $ 插入”错误

\printbibliography 导致“缺少 $ 插入”错误

我想让我的参考文献正确无误。我使用 Biber,它可以识别文件.bib并在我引用时正确引用它们。但是,当我想使用 打印参考文献时\printbibliography,它会导致以下错误:

Missing $ inserted

在命令下方的行上\printbibliography。这是我的结构:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage[style = numeric, backend = biber]{biblatex}
\addbibresource{mybib.bib}

\author{Simon Götz}
\title{Muziek Genre Classificatie: Een Vergelijking Tussen Album Covers en 
Ander Beeldmateriaal}

\begin{document}
\maketitle
\section{Abstract}
\cite{Oramas}
\cite{Manning}
\cite{Downie}
\cite{Schedl}
\cite{humming}
\section{Introductie}
lorem ipsum
\section{Verwante literatuur}
\section{Referenties}
\printbibliography
\end{document}

这是我收到的错误的屏幕截图: 在此处输入图片描述

编辑:下面的代码是我使用的 mybib.bib 文件

@InProceedings{humming,
author = {T., Kageyama and K., Mochizuki and Y., Takashima},
title = { Melody Retrieval with Humming.},
booktitle = { Proceedings Int. Computer Music
Conference (ICMC)},
    pages = {349-351},
    year = {1993}
}

@Article{Oramas,
    author = {S., Oramas and F., Barbieri and X., Serra},
    title = {Multimodal Deep Learning for Music Genre Classification},
    journal = {Transactions of the International Society for Music Information Retrieval},
    year = {2018},
    volume = {1},
    number = {1},
    pages = {4-21}
}

@Article{Libeks,
    author = {J., Libeks and D., Turnbull},
    title = {You can judge an artist by an album cover: Using images for musicannotation.},
    journal = {IEEE MultiMedia},
    year = {2011},
    volume = {18},
    number = {4},
    pages = {30-37}
}

@Article{Schedl,
    author = {M., Schedl and E., Gómez and J., Urbano},
    title = { Music information retrieval: Recent developments and
applications.},
    journal = { Foundations and Trends® in Information Retrieval},
    volume = {8},
    number = {3},
    pages = {127 - 261}
}

@Article{Downie,
    author = {J.S., Downie},
    title = {Music information retrieval.},
    journal = {Annual Review of Information Science and
Technology},
    volume = {37},
    pages = {295-340},
    note = {Available from http://music-ir.org/downie_mir_arist37.pdf}
}

@Book{Manning,
author = {C.D., Manning and P., Raghavan and H., Schütze},
title = {Introduction to Information Retrieval},
publisher = {Cambridge University Press},
year = {2008},
}

答案1

该错误是由字段中的 URL 引起的,note例如Downie

note = {Available from http://music-ir.org/downie_mir_arist37.pdf}

有些 URL 包含特殊字符,例如_或 ,#可能会使 LaTeX 无法使用(_例如,会进入数学模式)。由于您使用,因此biblatex应使用url字段

url = {http://music-ir.org/downie_mir_arist37.pdf},

然后 URL 将使用url\url命令可以处理这些特殊字符而无需转义。


您的姓名字段看起来有误。

author = {J.S., Downie},

将被解析为姓氏为“JS”、名字为“Downie”的名称,但我认为应该反过来。你想要

author = {J. S. Downie},

或者

author = {Downie, J. S.},

有时人们认为后者形式更受欢迎(如果名称涉及次级部分,有时也是必要的)。参见我应该如何在 bib 文件中输入作者姓名? 如何在bibtex文件中正确写入多位作者?


通常不需要用title句号 ( ) 来结束字段等.。在某些情况下,这实际上可能有害并产生不想要的输出(双标点/标点冲突)。

答案2

尝试https://flamingtempura.github.io/bibtex-tidy/并选中“编码 URL”和“转义特殊字符”选项。它修复了我遇到的“缺少 $ 插入”错误。(不过它也让 .bib 文件看起来很不错)

免责声明:我与此工具没有任何关联。

相关内容