答案1
您需要在开始文档时设置颜色,否则elsarticle
选择自己的颜色。
\begin{filecontents*}{\jobname.bib}
@article{GBU,
author={Eastwood, Clint and Van Cleef, Lee and Wallach, Eli},
title={How to find a tomb with a treasure},
journal={J. Treasure Searching},
year=1966,
}
@article{SLIH,
author={Curtis, Tony and Lemmon, Jack},
title={How to play bass and saxophone},
journal={J. Chicago Mafia},
year=1959,
}
\end{filecontents*}
\documentclass[authoryear]{elsarticle}
\usepackage[x11names]{xcolor}
\usepackage[
colorlinks,
]{hyperref}
\AtBeginDocument{\hypersetup{citecolor=DodgerBlue4}}
\begin{document}
\begin{frontmatter}
\title{A title}
\author{A. Uthor}
\end{frontmatter}
We cite \citet{GBU} \citep{SLIH}.
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}