问题
单独使用软件包时无法生成参考书目。可能是因为缺少 .bbl 文件。
细节
故事是这样的,我尝试使用独立包,但是现在,尽管删除了缓存并从头开始构建,我的参考书目仍然被破坏了。
我对 TeX 还不太熟悉,但我做过一个小型项目,并获得了一致的结果。在我自己的电脑上运行最新的 Overleaf 工具包,它的 TeXLive 升级到了完整方案。
日志
查看日志我认为由于某种原因未创建 bbl 文件:
Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'output.bbl' not found.
No file output.bbl.
Package biblatex Warning: citation 'nakamoto2008bitcoin'
(biblatex) was not found at all in the .bbl file,
(biblatex) bibliography labels cannot be generated,
(biblatex) please correct the citation.
Package biblatex Info: Reference section=0 on input line 16.
Package biblatex Info: Reference segment=0 on input line 16.
(./ch/apter.tex
Chapter 1.
LaTeX Warning: Citation 'nakamoto2008bitcoin' on page 1 undefined on input line
24.
)
LaTeX Warning: Empty bibliography on input line 23.
[1
{/usr/local/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./outp
ut.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) output
(biblatex) and rerun LaTeX afterwards.
这些是我收到的唯一警告。
最小项目
文件结构
ch/
apter.tex
main.tex
references.bib
文件内容:
参考文献.bib
@article{nakamoto2008bitcoin,
title={Bitcoin: A peer-to-peer electronic cash system},
author={Nakamoto, Satoshi},
journal={Decentralized business review},
year={2008}
}
主文本
\documentclass{report}
\usepackage[subpreambles=true]{standalone}
\usepackage{import}
\usepackage[
bibstyle=ieee,
citestyle=numeric,
isbn=true,
doi=false,
sorting=none,
url=true,
defernumbers=true,
bibencoding=utf8,
backend=biber
]{biblatex}
\addbibresource{references.bib}
\begin{document}
% Chapters
\import{ch/}{apter.tex}
% Bibliography
\nocite{*} % after conclusion
\printbibliography[title={References}]
\end{document}
ch/apter.tex
\documentclass[class=report, crop=false]{standalone}
\usepackage[subpreambles=true]{standalone}
\usepackage{import}
\ifstandalone
\usepackage[
bibstyle=ieee,
citestyle=numeric,
isbn=true,
doi=false,
sorting=none,
url=true,
defernumbers=true,
bibencoding=utf8,
backend=biber
]{biblatex}
\addbibresource{references.bib}
\fi
\begin{document}
\chapter{Method}
We use Blockchain \autocite{nakamoto2008bitcoin}
\end{document}
总结
无参考书目。提供最少的项目、设置和日志。