elsarticle の引用色を変更する

elsarticle の引用色を変更する

私は論文を書く際に elsarticle を使用するのが好きで、以下に示すように Elsevier が発行するジャーナルの色を引用するのが好きです。ここに画像の説明を入力してください

しかし、LaTeX で次のコマンドを使用して citecolor を変更することはできません。

\usepackage[colorlinks=true,linkcolor=black, citecolor=<my_color>, urlcolor=blue]{hyperref}

また、上の写真では何色なのかも分かりません。

どなたか、これをどうやって行うかアドバイスをお願いします。

どうもありがとうございます。

答え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}

ここに画像の説明を入力してください

関連情報