latex中使用elsart格式时algorithm2e包的问题

来源:互联网 发布:可以看病的软件 编辑:程序博客网 时间:2024/06/06 15:50
在latex中使用elsart格式文件时,如果用到了algorithm2e的包,
编译时会出现:
! Too many }'s.
l.1616     }

这是由于elsart自己的算法包和algorithm2e的包冲突,可以直接在文件开头加入
下面5句话,即可正常运行。

/makeatletter
/newif/if@restonecol
/makeatother
/let/algorithm/relax
/let/endalgorithm/relax 


原创粉丝点击