I'm trying to change the color of the links, generated by the hyperref package, without affecting the colors of other links.
The only command I found changes all the links their color:
This changes the color of all normal internal links. There exists commands to change the color of anchor text, bibligraphical citations, URLs to local files, Acrobat menu items, link to other pages, linked URL's according to the documentation of the hyperref package.
Anybody has any suggestions how to tackle this problem ?
You could use \hypersetup{linkcolor=black} right before the figure link, and then \hypersetup{linkcolor=red} right after it to set it back to red. (Probably it's easiest to define a command for this if you're going to do it often.)
The most tedious thing, I suppose could be to change all your \ref tags for figures to \figref. If these are your only \ref tags, of course, it can easily be done with search and replace. Or if all and only your figure labels begin with fig: you could of course search and replace "\ref{fig:" to \figref{fig:"... or maybe something with a RegEx search/replace if your editor does that.
But it's possible someone else on these boards will have a better idea. (With expandafter or somesuch.)
This works, but I had to change the first color (black) to red. Otherwise the number is in black. Also, the last color (red), I changed to black, other wise all other objects that were \ref changed to red.
So this works, and change the "whatever is \figcolref{xxxx} to red and then back to black until the next \figcolref{xxxx}.
For my final thesis I will change the red to gray (it does not matter really), but with this rule I can change the color in seconds to whatever I want! Excellent!!!
I will also setup a rule for my tables, sections, and chapter \ref's
Is it maybe possible to include all of these in one rule?
I use \ref{fig:xxxxx} or \ref{table:xxxxx} or \ref{chap:xxxxx} or \ref{sec:xxxxx}
This works, but I had to change the first color (black) to red. Otherwise the number is in black. Also, the last color (red), I changed to black, other wise all other objects that were \ref changed to red.
So this works, and change the "whatever is \figcolref{xxxx} to red and then back to black until the next \figcolref{xxxx}.
For my final thesis I will change the red to gray (it does not matter really), but with this rule I can change the color in seconds to whatever I want! Excellent!!!
I will also setup a rule for my tables, sections, and chapter \ref's
Is it maybe possible to include all of these in one rule?
I use \ref{fig:xxxxx} or \ref{table:xxxxx} or \ref{chap:xxxxx} or \ref{sec:xxxxx}