如下圖所示,兩篇文獻作者同名,會出現缺省橫線的情況。
打開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 }