在用sublime+LatexTools一段時間之后,發現用它來寫Latex真的是非常方便,配置好TexLive之后直接CTRL+B就可以直接編譯運行了,so cool!但是最近寫課程論文的時候,我在引用參考文獻時碰到了一些麻煩。不怕大家笑話,本來我寫參考文獻都是直接手動標注[1],[2]...然后手動寫參考文獻的。一旦參考文獻多起來,這簡直要命。所以我這次終於決定換一種方式,看看有沒有什么好辦法可以自動導出參考文獻的。一找,辦法果然還是很多的。這里簡單記錄我使用的一種辦法。
首先,你需要維護一個.bib文件,里面是特定格式的你的參考文獻。一般是如下的形式:
@article{simonyan2015very,
title="Very Deep Convolutional Networks for Large-Scale Image Recognition",
author="Karen {Simonyan} and Andrew {Zisserman}",
journal="international conference on learning representations",
year="2015"
}
@inproceedings{krizhevsky2012imagenet,
title="ImageNet Classification with Deep Convolutional Neural Networks",
author="Alex {Krizhevsky} and Ilya {Sutskever} and Geoffrey E. {Hinton}",
booktitle="Advances in Neural Information Processing Systems 25",
pages="1097--1105",
year="2012"
}
@inproceedings{he2016deep,
title="Deep Residual Learning for Image Recognition",
author="Kaiming {He} and Xiangyu {Zhang} and Shaoqing {Ren} and Jian {Sun}",
booktitle="2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)",
pages="770--778",
year="2016"
}
article
,inproceedings
等表示的是文獻類型,simonyan2015very
,he2016deep
表示的參考文獻的id,這個id必須必須是獨一無二的,后面會使用\cite{simonyan2015very}
這種形式來引用參考文獻。你可能會問,上面.bib文件難道需要手動填寫嗎?當然不會啦,有一種最簡便的方法可以自動生成.bib文件,那就是去google scholar(可能需要翻牆)或者bing scholar(推薦),搜索你引用的文獻,它會自動生成.bib文件。以bing scholar為例,如圖1所示:
