我不知道发生了什么。我正尝试用 Latex 写作业,但参考文献没有显示出来。我把这个放在了序言中:
\usepackage{biblatex}
\addbibresource{ref.bib}
我的文件夹被分成不同的文件,因此我在主文件上有这个:
\import{sections/}{Referencias}
在文件 Referencias.tex 中我有以下内容:
\section*{\centering REFERÊNCIAS}
\printbibliography
我的文件 ref.bib 有如下 Biblatex 引用:
@book{NISE:2013,
author = {Norman S. Nise},
title = {Engenharia de sistemas de controle},
publisher = {LTC},
year = {2013},
address = {Rio de Janeiro},
edition = {6},
}
@book{OGATA:2010,
author = {Katsuhiko Ogata},
title = {Engenharia de controle moderno},
publisher = {Pearson Prentice Hall},
year = {2010},
address = {São Paulo},
edition = {5},
}
@misc{Deepanshu:2016,
author = {Deepanshu Singh, Himanshu Jain }
title = {Reinforcement Learning},
howpublished = {\url{http://courseprojects.souravsengupta.com/cds2016/reinforcement-learning/}},
note = {Accessed: 2019-04-14}
}
我引用如下:
\cite{Deepanshu:2016}
但参考资料不会显示。如果有人能帮我或给我指明正确的方向,我将不胜感激,因为说实话,我甚至不知道该用 Google 来解决这个问题。
编辑
所以,这是我的 .blg 文件的输出:
[0] Config.pm:302> INFO - This is Biber 2.9
[0] Config.pm:305> INFO - Logfile is '0_0_Arquivo_Principal.blg'
[23] biber:313> INFO - === Sat Apr 20, 2019, 18:31:16
[43] Biber.pm:371> INFO - Reading '0_0_Arquivo_Principal.bcf'
[103] Biber.pm:857> INFO - Found 5 citekeys in bib section 0
[113] Biber.pm:3981> INFO - Processing section 0
[123] Biber.pm:4154> INFO - Looking for bibtex format file 'ref.bib' for section 0
[123] bibtex.pm:1468> INFO - LaTeX decoding ...
[131] bibtex.pm:1294> INFO - Found BibTeX data source 'ref.bib'
[164] Utils.pm:169> WARN - ISBN '1886529302, 9781886529304' in entry 'Bertsekas:2007:DPO:1396348' is invalid - run biber with '--validate_datamodel' for details.
[169] Utils.pm:185> ERROR - BibTeX subsystem: /tmp/6CNc3TdK7G/ref.bib_9127.utf8, line 21, syntax error: found "title", expected end of entry ("}" or ")") (skipping to next "@")
[169] Biber.pm:110> INFO - WARNINGS: 1
[169] Biber.pm:114> INFO - ERRORS: 1
以下是日志文件的部分内容
Package biblatex Warning: Conflicting options.
(biblatex) '<namepart>inits' conflicts with 'uniquename=full'.
(biblatex) Setting 'uniquename=init' on input line 112.
Package amsmath Warning: Foreign command \over;
(amsmath) \frac or \genfrac should be used instead
(amsmath) on input line 39.
LaTeX Warning: Citation 'DBLP:journals/corr/abs-1806-07366' on page 3 undefined
on input line 62.
LaTeX Warning: Citation 'wiki:File:Lorenz_attractor_yb.svg' on page 5 undefined
on input line 119.
LaTeX Font Info: Font shape `T1/ptm/bx/n' in size <10.95> not available
(Font) Font shape `T1/ptm/b/n' tried instead on input line 119.
LaTeX Warning: Citation 'wiki:File:Lorenz_attractor_yb.svg' on page 5 undefined
on input line 119.
LaTeX Warning: Citation 'Deepanshu:2016' on page 6 undefined on input line 145.
LaTeX Warning: Citation 'Deepanshu:2016' on page 6 undefined on input line 145.
LaTeX Warning: Citation 'Bertsekas:2007:DPO:1396348' on page 6 undefined on inp
ut line 149.
LaTeX Warning: Citation 'Wolfram2002' on page 6 undefined on input line 155.
LaTeX Warning: Empty bibliography on input line 7.
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) 0_0_Arquivo_Principal
(biblatex) and rerun LaTeX afterwards.
答案1
由于评论,我解决了这个问题,只是想把它留在这里,如果有帮助的话。正如在文件中看到的,文件.blg
中的作者后面缺少一个逗号.bib
。我无法通过使用 overleaf 进行编译来注意到这一点,因为我无法从那里看到这个文件,我解决了它,从头开始编译,它运行良好,但出于某种奇怪的原因,同样的修复在 overleaf 上不起作用。