问题
如下图所示,两篇文献作者同名,会出现缺省横线的情况。
解决办法
-
打开IEEEtran.bst;
-
找到以下代码:
% #0 turns off the “dashification” of repeated (i.e., identical to those
% of the previous entry) names. The IEEE normally does this.
% #1 enables
FUNCTION {default.is.dash.repeated.names} { #1 }
可以看到这里有对重名作者的默认设置,“1”表示设置重名参考文献用破折号(dash)代替,这也是IEEE默认的。“0”表示关掉默认设置,将原代码修改并保存:
% #0 turns off the “dashification” of repeated (i.e., identical to those
% of the previous entry) names. The IEEE normally does this.
% #1 enables
FUNCTION {default.is.dash.repeated.names} { #0 }