Confounding colour conundrums
![](https://secure.gravatar.com/avatar/7300d3eb9b50cf7e8728cb7991d01275.jpg?s=120&d=mm&r=g)
Hi, In the attached example, I thought the word *Website* should be *orange*, but it is *blue*. If *color=blue* is removed (from \setupinteraction[state=start]), then the word *Website* is *dark green*, which is also unexpected, because the only place *dark green* occurs is in the setuplist for the chapter's page number (i.e., pagecolor=darkgreen). It appears that the default colour for links embedded with \useurl bucks trendy traditional *blue* hyperlinks, favouring *dark green*. (*Black* would also make sense as a default.) I am confounded because the code explicitly contains the line: \setupurl[color=orange] I thought that that would set the external hyperlink colour to *orange*. In the same document, how do I set: - hyperlink colours to *orange*; - index page number colours to *red*; - table of contents text to *dark cyan*; and - table of contents page numbers to *dark green*. Many thanks. Kindest regards.
![](https://secure.gravatar.com/avatar/7300d3eb9b50cf7e8728cb7991d01275.jpg?s=120&d=mm&r=g)
From http://www.mail-archive.com/ntg-context@ntg.nl/msg44867.html it appears that \setupinteraction affects the \setupurl command when no url is given. This was not obvious from the documentationhttp://wiki.contextgarden.net/Command/setupurl .
It seems that assigning different colours for internal (e.g., cross-references, table of contents, and indexes) vs. external links (e.g., web sites) is not possible without creating new macros that use the \colormacro? Kind regards.
![](https://secure.gravatar.com/avatar/7300d3eb9b50cf7e8728cb7991d01275.jpg?s=120&d=mm&r=g)
Hi, The trick does seem to be that a new macro is required. % External link colours \definecolor[steelblue][h=4682B4] \define[2]\href{% \begingroup \setupinteraction[ style=normal, color=steelblue, ]% \goto{#1}[url(#2)]% \endgroup% } See attached. Kindest regards.
participants (1)
-
Thangalin