在Bibtex中注释掉某个项(field/attribute)以及某个完整参考文献

  1. 注释掉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。

  2. 注释掉某个完整参考文献:

    [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,
     ...
    }
    

参考原文

[1] Comments in BibTex

[2] Comment out sections of text in bib file

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值