即使我仍然在 XeLaTeX 中使用 \addbibresource{file.bib},也不会生成 bbl 文件,并且文件 bcf 仍然格式错误

即使我仍然在 XeLaTeX 中使用 \addbibresource{file.bib},也不会生成 bbl 文件,并且文件 bcf 仍然格式错误

我已经尝试过以下几个问题:

我用:

  • Manjaro Linux
  • XeTeX 3.14
  • 比伯 2.12
  • 类 abnetx2
  • 软件包 biblatex-abnt

版本bibtexBibTeX 0.99d (TeX Live 2018/Arch Linux)

我跑得像这样:

xelatex -synctex=1 -halt-on-error --shell-escape artigo.tex
biber artigo.tex

我也试過跑biber referencias

它没有生成 bbl 文件。

以下是代码:

\documentclass[11pt, article, a4paper, oneside, sumario=tradicional, chapter=TITLE, section=TITLE, subsection=Title, subsubsection=title, subsubsubsection=title, english, german, greek, portuguese]{abntex2}

\usepackage{babel}
\usepackage[backend = biber, dateabbrev = false, giveninits, ittitles, justify, language = brazil, sorting = none, style = abnt, url = true]{biblatex}

\addbibresource{referencias.bib}

\begin{filecontents}{referencias.bib}
@article{antonioleitao,
    Address = {Campinas},
    author = {Antonio Leitão},
    date = {1996-10-08},
    Publisher = {UNICAMP},
    title = {Funções Recursivas},
    url = {http://www.dca.fee.unicamp.br/courses/EA072/lisp9596/node17.html},
    urldate = {2018-11-03}
}
\end{filecontents}


\begin{document}
\selectlanguage{brazil}
\frenchspacing 
\maketitle
\begin{resumoumacoluna}
 \vspace{\onelineskip}
   Blablabla
 \noindent
 \textbf{Palavras-chave}:
\end{resumoumacoluna}

\renewcommand{\resumoname}{Abstract}
\begin{resumoumacoluna}
 \begin{otherlanguage*}{english}
   \vspace{\onelineskip}
      Blablabla
   \noindent
   \textbf{Keywords}: 
 \end{otherlanguage*}  
\end{resumoumacoluna}

  \printbibliography

\end{document}

xetex 错误日志:

\myptabbox=\box87
\myptabboxwidth=\skip292
Package biblatex Info: XeTeX detected.
(biblatex)             Assuming input encoding 'utf8'.
Package biblatex Info: Automatic encoding selection.
(biblatex)             Assuming data encoding 'utf8'.
\openout4 = `artigo.bcf'.

Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'artigo.bbl' not found.
No file artigo.bbl.
Package biblatex Info: Reference section=0 on input line 380.
Package biblatex Info: Reference segment=0 on input line 380.
Package lastpage Info: Please have a look at the pageslts package at
(lastpage)             https://www.ctan.org/pkg/pageslts
(lastpage)             ! on input line 380.

biblatex 错误日志:

[0] Config.pm:304> INFO - This is Biber 2.12
[1] Config.pm:307> INFO - Logfile is 'artigo.blg'
[39] biber:315> INFO - === Wed Dec 12, 2018, 18:22:11
[61] Utils.pm:209> ERROR - artigo.bcf is malformed, last biblatex run probably failed. Deleted artigo.bbl
[62] Biber.pm:114> INFO - ERRORS: 1

我还检查过:

biber --cache
No cache - you are not running the PAR::Packer executable version of biber

答案1

发布的.log文件(其中不是来自问题中所示的 MWE)在最后显示了一个致命错误

./artigo.tex:384: Undefined control sequence.
<recently read> \theforeigntitle

l.384 

如果这种致命错误导致 TeX 运行中止,则文件可能.bcf未完全写入,因此损坏。在这种情况下,Biber 无法正确读取文件并抱怨

[61] Utils.pm:209> ERROR - artigo.bcf is malformed, last biblatex run probably failed. Deleted artigo.bbl

重新开始的唯一方法是修复编译 TeX 文件时遇到的所有错误。无论如何,这始终是建议的,不仅仅是在运行 Biber 时:必须修复错误,如果 LaTeX 遇到错误,则不能保证输出有效。永远不要忽略错误信息。

显然,如果您想使用 打印标题,该类要求您分别在和abntex2中提供作品的作者、标题和英文标题。否则会引发错误。\autor\titulo\tituloestrangeiro\maketitle

\documentclass[11pt, article, a4paper, oneside, sumario=tradicional, chapter=TITLE, section=TITLE, subsection=Title, subsubsection=title, subsubsubsection=title, english, german, greek, portuguese]{abntex2}

\usepackage{babel}
\usepackage[backend = biber, style = abnt]{biblatex}

\addbibresource{biblatex-examples.bib}


\begin{document}
\selectlanguage{brazil}
\titulo{Brazilian Title}
\tituloestrangeiro{English Title}
\autor{Gustavo}
\maketitle

\cite{sigfridsson}

\printbibliography
\end{document}

工作和生产

Title page, an example citation and the bibliography

相关内容