Biber 中的奇怪错误

Biber 中的奇怪错误

在使用 Biber 编制参考书目时,我遇到了一个奇怪的错误,我不明白为什么:

:2620:解析器错误:标签部分第 2218 行中的数据过早结束 ^ :2620:解析器错误:标签控制文件第 2 行中的数据过早结束 ^

信息 - 这是 Biber 2.1 信息 - 日志文件是“THESE_docm.blg” 信息 - 正在读取“THESE_docm.bcf”

进程因错误而退出

我的参考书目无法编译,我不明白这个错误——主文档用 XeLaTex 编译得很好——所以我不知道在哪里或要查找什么。Biber 可以正常编译另一个 latex 文档,我尝试清理输出文件,但仍然无法编译。我甚至尝试注释整个文档。

知道我能做什么吗?这是 MWE:

\documentclass[twoside,10pt,a4paper]{report}
\usepackage{fontspec} 
\usepackage{docmute}
\usepackage{filecontents}
\usepackage[hyperref=true,
            url=true,
            doi=true,
            natbib=true,
            backref=true,
            backrefstyle=three,
            backend=biber,
            refsegment=chapter,
            citestyle=numeric-comp,
            style=chem-rsc,
            maxcitenames=5,
            date=year,
            block=none,
            maxbibnames=100]{biblatex}

%%%%%%

\DefineBibliographyStrings{english}{%
    backrefpage  = {\it\footnotesize Cited on page}, % for single page number
    backrefpages = {\it\footnotesize Cited on pages} % for multiple page numbers
}


\begin{filecontents}{\jobname.bib}
@Article{hung2010practical,
  Title                    = {On the practical aspects of recording wideline QCPMG NMR spectra},
  Author                   = {Hung, Ivan and Gan, Zhehong},
  Journal                  = {J. Magn. Reson.},
  Year                     = {2010},
  Number                   = {2},
  Pages                    = {256--265},
  Volume                   = {204},
  Doi                      = {10.1016/j.jmr.2010.03.001},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
Some text.\cite{hung2010practical}

\printbibliography
\end{document}

答案1

2015 年 11 月 29 日更新:看来更新软件包后这个问题不再出现biblatex

找到问题了!它来自加载docmute我计划在将来使用的包。我所要做的就是加载docmutebiblatex现在一切都编译正常了。

\documentclass[twoside,10pt,a4paper]{report}
\usepackage{fontspec} 
\usepackage{filecontents}
\usepackage[hyperref=true,
            url=true,
            doi=true,
            natbib=true,
            backref=true,
            backrefstyle=three,
            backend=biber,
            refsegment=chapter,
            citestyle=numeric-comp,
            style=chem-rsc,
            maxcitenames=5,
            date=year,
            block=none,
            maxbibnames=100]{biblatex}

%%%%%%
\usepackage{docmute}
\DefineBibliographyStrings{english}{%
    backrefpage  = {\it\footnotesize Cited on page}, % for single page number
    backrefpages = {\it\footnotesize Cited on pages} % for multiple page numbers
}


\begin{filecontents}{\jobname.bib}
@Article{hung2010practical,
  Title                    = {On the practical aspects of recording wideline QCPMG NMR spectra},
  Author                   = {Hung, Ivan and Gan, Zhehong},
  Journal                  = {J. Magn. Reson.},
  Year                     = {2010},
  Number                   = {2},
  Pages                    = {256--265},
  Volume                   = {204},
  Doi                      = {10.1016/j.jmr.2010.03.001},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
Some text.\cite{hung2010practical}

\printbibliography
\end{document}

相关内容