LaTeX使用IEEE模板 相邻参考文献为相同作者 默认用横线代替

原文链接:http://blog.sciencenet.cn/blog-2578568-1122432.html

虽然参考文献格式文件是从IEEE官网下载的,但在LaTeX中遇到同名作者的参考文献时,第一个参考文献的作者可以正常显示,其余参考文献的作者均被被横线(破折号)“——”代替。琢磨了解决方法并整理出来,方便遇到相同问题的朋友相互交流,共同进步。

1. 找到参考文献格式文件位置,我的是“D:\Program Files\MiKTeX 2.9\bibtex\bst\ieeetran”;

2. 打开IEEEtran.bst,我用Texstudio打开的,当然别的文本编辑工具也可以;

3. 找到以下代码:

% #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 }

多编译几次,能看到原先缺省的作者已经正常显示出来。

转载本文请联系原作者获取授权,同时请注明本文来自但阳鹏科学网博客。
链接地址:http://blog.sciencenet.cn/blog-2578568-1122432.html 

上一篇:基于<最简单的基于FFMPEG+SDL的视频播放器 ver2 (采用SDL2.0)>的一些个人总结


下一篇:使用shell做http web接口,可以传递参数