[NTG-context] Confounding colour conundrums
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. ex.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Confounding colour conundrums
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. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Confounding colour conundrums
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. ex.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___