[Tex/LaTex] How to change a color of a specific citation


I want most of my citation to be blue in color. So I used


But I need some of my citation in a different color(say yellow). I tried

{\color{yellow} \cite{eg} }

to change the specific citation brutally but it doesn't work. What should I do.

Best Answer

... \hypersetup{citecolor=yellow}\cite{eg}\hypersetup{citecolor=blue} ...

should do.