目的:希望\cite後直接自動顯示li et al. [1],而不是每個引用都手動拼寫作者名字。
引用包及語句:
...
\usepackage[numbers]{natbib}
...
\begin{document}
...
The grayscale image can be colorized by propagating the scribble from users. \citet{Levin2004Colorization} proposed a colorization method, which is based on the user-specific scribbles. The main idea is to solve the cost function of the luminance difference between a special pixel and its contiguous pixels using least-square optimization. While this method only considers the luminance between pixels, the color bleeding may appear at the boundaries in original images.
...
\bibliographystyle{plainnat}
\bibliography{IEEE_Trans}
...
\end{document}
效果:
需要注意的點:
- 導入包\usepackage[numbers]{natbib},必須有[numbers]不然在文中顯示的效果就會是作者加年份。因爲natbib包默認是author-year的風格。
- 使用\citet{}進行引用,如果使用\cite{}最後只會出現序號。
- 在導入參考文獻bib文件的前面添加參考格式\bibliographystyle{plainnat}。
參看資料:
Why do I get (author?) when I use \citet with natbib?
怕內地訪問不了,截取了有用信息。