以下面段话为例
\section{Introduction}
This is the first preference
X1 (Vaswani et al. \citeyear{vaswani2017attention}) good good good.
With Overleaf, all the formatting and numbering is handled automatically according to the template you've chosen.
There are some preferences (Tu et al. \citeyear{tu2016modeling}; Shaw et al. \citeyear{shaw2018self}),
you can also create new section and subsections
via the buttons in the editor toolbar.
效果展示
\usepackage[numbers,sort&compress]{natbib}
效果展示
但是还缺少年份
\bibliographystyle{plainnat}
效果展示
================================================
END