elsarticle에서 인용 색상 변경하기

elsarticle에서 인용 색상 변경하기

저는 논문을 작성할 때 elsarticle을 사용하는 것을 좋아하고 아래와 같이 Elsevier에서 출판된 저널의 색상을 인용하는 것을 좋아합니다.여기에 이미지 설명을 입력하세요

그러나 라텍스에서는 다음 명령을 사용하여 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}

여기에 이미지 설명을 입력하세요

관련 정보