[Tex/LaTex] Different style/color for some specific references using Bibtex


I need to differentiate some specific references from the others, for both the text and the reference list at the end of the document. Let say I want the "regular" ones in blue and the specific (i.e. mine actually) in orange.

For now, I have something quite standard like this:

in the .tex file:


Something to say \citep{one_regular_ref01,another_regular_ref02,my_specific01}.

My .bib is normal as I parsed the entrees from journal's website.

This gives me something like this:

Something to say [RegRef et al, 2001; aRegRef et al, 2002; My_paper, 2010].

Everything has the same color. But I'd like my own ref in a different one.

Ok I can edit the bib file but it seems odd to me as I can potentially use the same bib for another document without this very specific need.

I was thinking that adding * (for instance) to the end of the citation call (i.e. \citep{my_specific01*}) could be a way to discriminate the specific citations but now how can I tell bibtex to change the way these references are displayed (again in the text and the reference list) to a different color or potentially any font style.

I did not find anything on the web that treat and solve this very specific task using bibtex but any ideas would be more than appreciated.


Best Answer

Here there are two preparations the user must make

\preparecolorrefs{integer} where integer is greater or equal to the total number of references in the document

\refcolor{cite-label}{color} to indicate the color for particular citations that aren't black.

EDITED to make a self-compiling example (no external files required).

    \expandafter\def\csname\therefindex color\endcsname{black}%
  author = {Author, A.},
  year = {2001},
  title = {Alpha}
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo}
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie}
  author = {Duthor, D.},
  year = {2004},
  title = {Delta}
cite \cite{A01, B02, C03, D04}

enter image description here