問題場景
首先使用下面語句添加參考文獻:
\addbibresource{bib/thesis.bib}
發(fā)現下列語句無效:
%% 參考資料
\printbibliography[heading=bibintoc, title={參考文獻}]
無法顯示參考文獻,并且文章內引用后,編譯出現警告 undefined铅乡。
解決方案
使用 biber 命令碗硬,為文件添加參考文獻。例如我的文章是 thesis.tex
吏恭,則執(zhí)行命令:
$ biber thesis
INFO - This is Biber 2.1
INFO - Logfile is 'thesis.blg'
INFO - Reading 'thesis.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'bib/thesis.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'bib/thesis.bib'
WARN - Overwriting field 'year' with year value from field 'date' for entry 'Meta_CN'
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 'none' of type 'entry' with scheme 'none' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'thesis.bbl' with encoding 'UTF-8'
INFO - Output to thesis.bbl
INFO - WARNINGS: 1
然后就可以正常使用參考文獻了。