Latex版本:TeXstudio 3.1.2
\documentclass{article}
\usepackage[numbers,compress,super,square]{natbib}
\usepackage{geometry}%设置页边距宏包
\geometry{a4paper,left=1.3cm,right=1.3cm,top=2.2cm,bottom=2.2cm}%页边距的具体设置
\begin{document}
\section{introduction}
This is a citation\cite{1,2}.
\section{system}
This is available\cite{5,7,8}
\section{materials}
This is available\cite{1,2,5,8}..
%关于参考文献所呈现的最终引用序号,本宏包的执行规则是:将你本篇文章所引用的全部参考文献先排个
顺序(按照ref文件里的顺序,例如定义为序列T),然后再以此为基础,你在某处引用的参考文献的序号
是此文献排在T里的顺序。例如你的ref文件里准备了20篇文献,顺序为1~20,但在文章里你引用了其中
的18篇(15和19没引用),那么最终参考文献里的序号的前14篇和ref文件里的顺序一致;15,16,17
对应ref文件里的16,17,18;18对应ref文件里的20.
\bibliographystyle{plain}
\bibliography{ref.bib}
\end{document}
% ref文件的内容
@article{1,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{2,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{3,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{4,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{5,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{6,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{7,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}
@article{8,
title={PID control system analysis, design, and technology},
author={Ang, Kiam Heong and Chong, Gregory and Li, Yun},
journal={IEEE transactions on control systems technology},
volume={13},
number={4},
pages={559--576},
year={2005},
publisher={IEEE}
}