Use bib method when writing articles
first step
Create a new reference document, use Notepad to create a new txt in the same folder of the article, copy and paste the code
@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 = {专利授权日期},
}
When saving as ref.bib
, remember to use the bib suffix, the txt suffix will not work.
Step 2
Quote the package at the beginning
\usepackage{cite}
Insert two lines before the end of the article\end{document}
third step
Use references.
Add code where needed, and use different names for different references.
\cite{article_example}
the fourth step
Compilation:
An error will be reported when compiling for the first time. Don't worry, the reference that comes out is also a [?], just compile again.
Copyright © 2020 by RichardYang. All rights reserved.
For reference only, reprinting is strictly prohibited, thank you.