我有一个 LaTeX 项目,正在尝试在 macOS Big Sur(MacTeX 发行版)上编译它。我使用以下命令:
INTERACTION=errorstopmode
OUTDIR=dist
JOBNAME=report
SYNCTEX=1
latexmk -cd -dvi- -f -pdf -ps- -time \
-jobname=${JOBNAME} \
-outdir=${OUTDIR} \
--synctex=${SYNCTEX} \
--interaction=${INTERACTION} \
main
我将项目缩小到 MWE,如下所示(main.tex
):
\documentclass{article}
\usepackage[
backend=biber,
style=numeric,
giveninits=true,
sorting=nyvt,
maxbibnames=1000
]{biblatex}
\bibliography{bibfile}
\begin{document}
\title{Report title}
\author{Report Authors}
\date{}
\maketitle
\begin{abstract}
Abstract goes here.
\end{abstract}
\section{Introduction}
Intro goes here.
And one reference~\cite{practical-ore}.
\printbibliography%
\end{document}
以及bibfile.bib
:
@inproceedings{practical-ore,
author = {Chenette, Nathan and Lewi, Kevin and Weis, Stephen A. and Wu, David J.},
title = {Practical Order-Revealing Encryption with Limited Leakage},
booktitle = {Fast Software Encryption},
year = {2016},
publisher = {Springer Berlin Heidelberg},
pages = {474--493}
}
我能够在日志中看到这一点。我相信,执行不应该在之后停止Found BibTeX data source
。
[0] Config.pm:304> INFO - This is Biber 2.14
[0] Config.pm:307> INFO - Logfile is 'dist/report.blg'
[94] biber-darwin:322> INFO - === Thu Mar 18, 2021, 22:28:25
[118] Biber.pm:415> INFO - Reading 'dist/report.bcf'
[232] Biber.pm:943> INFO - Found 3 citekeys in bib section 0
[249] Biber.pm:4256> INFO - Processing section 0
[250] Utils.pm:75> INFO - Globbing data source 'bibfile.bib'
[250] Utils.pm:91> INFO - Globbed data source 'bibfile.bib' to bibfile.bib
[264] Biber.pm:4455> INFO - Looking for bibtex format file 'bibfile.bib' for section 0
[265] bibtex.pm:1653> INFO - LaTeX decoding ...
[271] bibtex.pm:1471> INFO - Found BibTeX data source 'bibfile.bib'
知道哪里出了问题吗?
答案1
有时 biber 的缓存会被损坏,需要重新制作。
运行biber --cache
,这将报告一个文件,删除它并重试(请耐心等待,因为重新创建缓存需要一些时间)。