Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

By default the link color of references created with \in or \at is red.

How can this color be globally changed, so that all links have the same color (e.g. blue)?

\setupinteraction
    [state=start,
     color=blue,
     style=,  % make font non-bold
     ]

\starttext

\placefigure[here][fig:foo]{A figure}{
    \externalfigure[testfigure]
}

Red color: \in{Figure}[fig:foo] \at{page}[fig:foo].  % How to make this blue, too?

Blue color: \goto{Link}[url(http://tex.stackexchange.com/)]

\stoptext
share|improve this question

1 Answer 1

up vote 8 down vote accepted

ConTeXt distinguishes between references to the same page and to references which destination is on other pages. References which destination is on the same page don't obey the color setting. Instead the colour is controlled by a key called contrastcolor, which is red by default.

To change all links to blue set color as well as contrastcolor:

\setupinteraction
  [state=start,
   color=blue,
   contrastcolor=blue]

See ConTeXt wiki - setupinteraction

share|improve this answer
    
Thank you, this works! –  hiddenbit Dec 11 '12 at 8:14
1  
Thank you for adding this to the ConTeXt wiki, @Radon! –  Esteis Dec 15 '12 at 18:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.