我使用的是natbib
IEEE 引用样式的包。引用主要是数字,但我还想提及作者、年份和参考编号(因为样式实际上是数字,只有一个参考书目)。为此,我使用以下命令
\newcommand{\citeauyear}[1]{%
\citeauthor{#1}~[\citeyear{#1}] [Ref. \citenum{#1}]}
这是答案的修改版本在 Natbib 中切换数字和作者年份. 上述命令与 plainnat 书目样式配合使用效果很好,但与 IEEEtran 配合使用时会提供未识别的作者和年份
\begin{filecontents*}{sample.bib}
@article{aldaoudeyeh2016,
title={{Photovoltaic-battery scheme to enhance PV array characteristics in partial shading conditions}},
author={Aldaoudeyeh, Al-Motasem I},
journal={IET Renewable Power Generation},
volume={10},
number={1},
pages={108--115},
year={2016},
publisher={IET}
}
@ARTICLE{wu2017,
title={{Assessing Impact of Renewable Energy Integration on System Strength Using Site-Dependent Short Circuit Ratio}},
author={Wu, Di and Li, Gangan and Javadi, Milad and Malyscheff, Alexander M and Hong, Mingguo and Jiang, John Ning},
journal={IEEE Transactions on Sustainable Energy},
year={2017},
publisher={IEEE}
}
@article{wu2019,
title={A method to identify weak points of interconnection of renewable energy resources},
author={Wu, Di and Aldaoudeyeh, Al Motasem and Javadi, Milad and Ma, Feng and Tan, Jin and Jiang, John N and others},
journal={International Journal of Electrical Power \& Energy Systems},
volume={110},
pages={72--82},
year={2019},
publisher={Elsevier}
}
\end{filecontents*}
\documentclass[]{book}
\usepackage[x11names, svgnames]{xcolor}
\usepackage[square, nonamebreak, sort&compress, comma, numbers]{natbib} % For IEEE
\newcommand{\citeauyear}[1]{%
\citeauthor{#1}~[\citeyear{#1}] [Ref. \citenum{#1}]}
\usepackage{hyperref}
\hypersetup{citecolor=SlateBlue2, citebordercolor=SlateBlue2,
linkbordercolor=DodgerBlue3, linkcolor=DodgerBlue3, urlcolor=Blue1, colorlinks=true}
\begin{document}
\citeauyear{wu2017}, \cite{aldaoudeyeh2016,wu2019,wu2017}
\bibliographystyle{IEEEtran}
\bibliography{sample}
\end{document}