LaTex IEEE-----參考文獻中同名作者被默認缺省的問題

LaTex IEEE-----參考文獻中同名作者被默認缺省的問題

問題

如下圖所示,兩篇文獻作者同名,會出現缺省橫線的情況。
在這裏插入圖片描述

解決辦法

  1. 打開IEEEtran.bst;

  2. 找到以下代碼:

% #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 }
在這裏插入圖片描述

在這裏插入圖片描述