在写文章中使用bib方式进行
第一步
新建一个引用文档,使用记事本在文章同一个文件夹下新建一个txt,复制粘贴一下代码
@article{article_example,
author = {作者},
title = {题目},
journal = {刊名(全称)},
year = {年},
number = {卷},
volume = {期},
pages = {页码},
}
@inproceedings{inproceedings_example,
author = {作者},
title = {文章题目},
booktitle = {Proceedings of the ... (会议名称)},
address = {会议召开城市, 会议召开城市所在国家},
year = {年},
pages = {页码},
}
@incollection{incollection_example,
author = {作者},
title = {文章题目},
editor = {编者},
booktitle = {文集标题},
address = {出版地},
publisher = {出版社},
year = {出版年},
pages = {页码},
}
@book{book_example,
author = {作者},
title = {书名},
edition = {版次(初版不写)},
address = {出版社地点},
publisher = {出版社},
year = {出版年},
}
@phdthesis{phdthesis_example,
author = {作者},
title = {文章题目},
school = {单位名称},
address = {单位地点},
year = {年},
}
@mastersthesis{mastersthesis_example,
author = {作者},
title = {文章题目},
school = {单位名称},
address = {单位地点},
year = {年},
}
@techreport{techreport_example,
author = {作者},
title = {文章题目},
address = {单位地点},
institution = {单位},
number = {报告编号},
year = {年},
}
@patent{patent_example,
author = {专利拥有人},
title = {专利名称, 专利授权国家},
date = {专利授权日期},
}
保存为 ref.bib
切记为bib后缀,txt后缀不行的。
第二步
在开头引用宏包
\usepackage{cite}
在文章的末尾\end{document}之前
插入两行
第三步
使用引用
在需要的地方加入代码,不同的引用使用不同的名称即可。
\cite{article_example}
第四步
编译
第一遍编译的时候会报错,不用担心,出来的引用也是一个[?],再次编译就可以了。
Copyright © 2020 by RichardYang. All rights reserved.
仅供参考,严禁转载,感谢。