\printbibliography 导致错误:!\UTFviii@three@octets 的参数有一个额外的 }

\printbibliography 导致错误:!\UTFviii@three@octets 的参数有一个额外的 }

我已经处理这个问题好几天了。也许你能帮助我?运行时pdflatex我收到此错误:

! Argument of \UTFviii@three@octets has an extra }.
<inserted text>
\par
l.15
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?

最小工作示例

\documentclass[12pt,twoside]{report}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
% no recuerdo para que era fancy
\usepackage{csquotes} 
\usepackage[backend=biber]{biblatex}
\addbibresource{bibtex.bib}

\begin{document}
\cite{klamt1993cosmo} \cite{quantum-continuum-tomasi2005}  \cite{tomasi-PCM1981}.
\printbibliography

\end{document}

我正在使用的 bib 文件是:

% This file was created with JabRef 2.10.
% Encoding: UTF-8

@Article{klamt1993cosmo,
  Title                    = {COSMO: a new approach to dielectric screening in solvents with explicit expressions for the screening energy and its gradient},
  Author                   = {Klamt, Andreas and Sch{\"u}{\"u}rmann, GJGJ},
  Journal                  = {Journal of the Chemical Society, Perkin Transactions 2},
  Year                     = {1993},
  Number                   = {5},
  Pages                    = {799--805},

  __markedentry            = {},
  Publisher                = {Royal Society of Chemistry}
}

@Article{tomasi-PCM1981,
  Title                    = {Electrostatic interaction of a solute with a continuum. A direct utilizaion of AB initio molecular potentials for the prevision of solvent effects},
  Author                   = {Miertu{\v{s}}, S and Scrocco, E and Tomasi, J},
  Journal                  = {Chemical Physics},
  Year                     = {1981},
  Number                   = {1},
  Pages                    = {117--129},
  Volume                   = {55},

  Publisher                = {Elsevier}
}

@Article{quantum-continuum-tomasi2005,
  Title                    = {Quantum mechanical continuum solvation models},
  Author                   = {Tomasi, Jacopo and Mennucci, Benedetta and Cammi, Roberto},
  Journal                  = {Chemical reviews},
  Year                     = {2005},
  Number                   = {8},
  Pages                    = {2999--3094},
  Volume                   = {105},

  Publisher                = {ACS Publications}
}

我无法更改此文件,我所做的任何更改jabRef都会以这种方式返回。

只是为了有帮助,我已经从 promt 下载了所有软件包(texlive、biber 1.9、texmaker),而且我正在使用 Debian。

当我删除时\printbibliography错误就消失了(但我需要打印它)

知道发生什么事了吗?

编辑我不知道这是否是一个答案,但改用 biblatex 就可以了。

答案1

您的示例确实可以使用biber和的当前版本biblatex

过时的组合的问题biber biblatex是,

  Author                   = {Klamt, Andreas and Sch{\"u}{\"u}rmann, GJGJ},

行。使用真正的 UTF8 编码文件确实有效:

\listfiles
\begin{filecontents*}{\jobname.bib}
% This file was created with JabRef 3.6.
% Encoding: UTF-8

@Article{klamt1993cosmo,
  Title                    = {COSMO: a new approach to dielectric screening in solvents with explicit expressions for the screening energy and its gradient},
  Author                   = {Klamt, Andreas and Schüürmann, GJGJ},
  Journal                  = {Journal of the Chemical Society, Perkin Transactions 2},
  Year                     = {1993},
  Number                   = {5},
  Pages                    = {799--805},
  __markedentry            = {},
  Publisher                = {Royal Society of Chemistry}
}
\end{filecontents*}

\documentclass[12pt,twoside]{report}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes} 
\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}
\cite{klamt1993cosmo}.
\printbibliography

\end{document}

 *File List*
  report.cls    2014/09/29 v1.4h Standard LaTeX document class
  size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
   babel.sty    2014/09/25 3.9l The Babel package
 spanish.ldf
inputenc.sty    2014/04/30 v1.2b Input encoding file
    utf8.def    2014/09/29 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2014/09/29 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2014/09/29 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2014/09/29 v1.1m UTF-8 support for inputenc
csquotes.sty    2011/10/22 v5.1d context-sensitive quotations
etoolbox.sty    2015/03/19 v2.1d e-TeX tools for LaTeX (JAW)
    etex.sty    2015/03/02 v2.1 eTeX basic definition package (PEB,DPC)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
csquotes.def    2011/10/22 v5.1d csquotes generic definitions
csquotes.cfg    
biblatex.sty    2014/06/25 v2.9a programmable bibliographies (PK/JW/AB)
biblatex2.sty    2014/06/25 v2.9a programmable bibliographies (biber) (PK/JW/AB)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
  logreq.sty    2010/08/04 v1.0 xml request logger
  logreq.def    2010/08/04 v1.0 logreq spec v1.0
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  blx-dm.def
biblatex-dm.cfg
blx-compat.def    2014/06/25 v2.9a biblatex compatibility (PK/JW/AB)
biblatex.def    
standard.bbx    2014/06/25 v2.9a biblatex bibliography style (PK/JW/AB)
 numeric.bbx    2014/06/25 v2.9a biblatex bibliography style (PK/JW/AB)
 numeric.cbx    2014/06/25 v2.9a biblatex citation style (PK/JW/AB)
biblatex.cfg    
 spanish.lbx    2014/06/25 v2.9a biblatex localization (PK/JW/AB)
    test.bbl
   ulasy.fd    1998/08/17 v2.2e LaTeX symbol font definitions
 ***********

1.9biber确实导致

参考书目

没有任何错误。

因此我建议要么更新你的 TeX 发行版(至少biberbiblatex),要么更改你的数据库以使用真正的 UTF8 编码的特殊字符,而不是诸如 之类的东西{\"u}

顺便提一句:

\listfiles
\begin{filecontents*}{\jobname.bib}
@Article{klamt1993cosmo,
  Title                    = {COSMO: a new approach to dielectric screening in solvents with explicit expressions for the screening energy and its gradient},
  Author                   = {Klamt, Andreas and Sch\"u\"urmann, GJGJ},
  Journal                  = {Journal of the Chemical Society, Perkin Transactions 2},
  Year                     = {1993},
  Number                   = {5},
  Pages                    = {799--805},
  __markedentry            = {},
  Publisher                = {Royal Society of Chemistry}
}
\end{filecontents*}

\documentclass[12pt,twoside]{report}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes} 
\usepackage[backend=biber,bibencoding=ascii]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}
\cite{klamt1993cosmo}.
\printbibliography

\end{document}

也可以。

相关内容