拓新分享 http://blog.sciencenet.cn/u/DanYangpeng

博文

解决IEEE参考文献中同名作者被默认缺省的问题

已有 10113 次阅读 2018-7-5 18:03 |个人分类:LaTex|系统分类:科研笔记| LaTex, BibTex, 参考文献, IEEE, BibTex

    虽然参考文献格式文件是从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 }

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



https://blog.sciencenet.cn/blog-2578568-1122432.html


下一篇:解决Latex无法编译的Error:Could not start the command: pdflattex.exe
收藏 IP: 202.114.107.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-18 12:38

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部