1.確保把texstudio設成如下形式:
步驟:texstudio-選項-設置texstudio-構建·····
2.創建tex文件,確保在導言區寫入①,在正文區最後要出現參考文獻的地方寫入②,在正文中要出現參考文獻標號的地方寫入③
3.創建bib文件。先創建txt文件,從網上下載某個參考文獻的bibtex文件,然後保存到txt文件裏,再將該txt文件另存爲bib類型,放到和tex文件同一目錄下。
4.依次使用快捷鍵,缺一個都不可以哦~
F6 F8 F6 F6
5.大功告成
源碼
tex部分:
%導言區
\documentclass{article}
%下面這句話要寫,plain是可選參數
\bibliographystyle{plain}
%正文區
\begin{document}
\section{Some words}
%哪裏要放參考文獻序號,就在哪裏寫\cite
Some excellent books, for example, \cite{isermann1997supervision}
%下面這句話也要寫,會顯示References的那部分
%這裏的dandan是放bib那個的文件名,建議和tex文件放在同一個目錄下,
%網上說這裏的dandan也可以寫入絕對路徑,也就是說不一定要和tex文件放在同一個目錄下
\bibliography{dandan}
\end{document}
bib部分
@article{isermann1997supervision,
title={Supervision, fault-detection and fault-diagnosis methods—an introduction},
author={Isermann, Rolf},
journal={Control engineering practice},
volume={5},
number={5},
pages={639--652},
year={1997},
publisher={Elsevier}
}