[已解决]EIsevier模板中hyperref包冲突导致无法修改标注颜色

问题描述

提示:这里描述项目中遇到的问题:

笔者使用EIsevier的latex双栏模板写作时,想要修改参考文献引用标号的颜色。正常情况应该使用下面这段代码,但是我用这个代码一直报错如下:

\usepackage[colorlinks,
            linkcolor=blue,
            anchorcolor=blue,
            citecolor=blue]{hyperref}

[已解决]EIsevier模板中hyperref包冲突导致无法修改标注颜色_第1张图片


原因分析:

其实overleaf的这个错误提示已经把原因告诉了我们了:The package hyperref has already been loaded with options: [colorlinks]。因该是colorlinks和hyperref这两个包冲突了。


解决方案:

用下面这段代码替换上面的那段:

\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=blue, anchorcolor=blue, citecolor=blue}

顺利跑通!!!

你可能感兴趣的:(latex,latex,debug,经验分享)