考虑这个例子:
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{bibtextest.bib}
\begin{document}
See \cite{bookentry}
\printbibliography
\end{document}
和bibtextest.bib
:
@book{bookentry,
title = "{Title}",
series = "Technical Design Report",
year = "1997",
}
该条目bookentry
缺少必填字段author
(第 8 页http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf)。
我怎样才能迫使 Biber 发出类似这样的警告
Warning--empty author in bookentry
答案1
您可以要求 Biber.bib
使用选项--validate-datamodel
/来验证您的文件-V
。
如果运行 Biber
biber -V <filename>
对于问题中的例子,我们得到
INFO - This is Biber 2.13
INFO - Logfile is 'warningsforbiber.blg'
INFO - Reading 'warningsforbiber.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Globbing data source 'warningsforbiber.bib'
INFO - Globbed data source 'warningsforbiber.bib' to warningsforbiber.bib
INFO - Looking for bibtex format file 'warningsforbiber.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'warningsforbiber.bib'
INFO - Datamodel validation starting
WARN - Datamodel: Entry 'bookentry' (warningsforbiber.bib): Missing mandatory field 'author'
INFO - Datamodel validation complete
INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'warningsforbiber.bbl' with encoding 'UTF-8'
INFO - Output to warningsforbiber.bbl
INFO - WARNINGS: 1