-
注释掉bibtex文件中一个参考文献的某个特定项:
[2]% is actually not a comment character in .bib files! So, inserting a % in .bib files not only fails to comment out the line, it also causes some BibTEX errors. To get BibTEX to ignore a particular field we just need to rename the field to something that BibTEX doesn’t recognise. For example, if you want to keep a date field around but prefer that it’s ignored (perhaps because you want BibTEX to use the year field instead) write Tdate = {…} or the more human-readable IGNOREdate = {…}.
例如,
@article{foo2019, ..., url = {...} }
将url 改为MYurl 即可“注释掉”url项:
@article{foo2019, ..., MYurl = {...} }
尝试过使用
%
或//
来注释掉url项,实际编译后也能在论文参考文献中不显示网址,但是编译log中该行会提示error。 -
注释掉某个完整参考文献:
[1,2] To get BibTEX to ignore an entire entry you can remove the @ before the entry type. A valid reference entry always starts with a @ followed by the entry type; without the @ character BibTEX skips the lines until it encounters another @.
即在.bib文件中把entry type前的
@
符号去掉。
例如,@article{foo2019, ... }
改为(删除掉@符号):
article{foo2019, ... }
在Bibtex中注释掉某个项(field/attribute)以及某个完整参考文献
最新推荐文章于 2023-04-22 21:40:53 发布