ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Confounding colour conundrums
@ 2013-09-22 20:59 Thangalin
  2013-09-22 21:42 ` Thangalin
  2013-09-22 22:02 ` Thangalin
  0 siblings, 2 replies; 3+ messages in thread
From: Thangalin @ 2013-09-22 20:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 945 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 2087 bytes --]

[-- Attachment #2: ex.tex --]
[-- Type: application/x-tex, Size: 823 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Confounding colour conundrums
  2013-09-22 20:59 Confounding colour conundrums Thangalin
@ 2013-09-22 21:42 ` Thangalin
  2013-09-22 22:02 ` Thangalin
  1 sibling, 0 replies; 3+ messages in thread
From: Thangalin @ 2013-09-22 21:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 482 bytes --]

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
documentation<http://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.

[-- Attachment #1.2: Type: text/html, Size: 944 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Confounding colour conundrums
  2013-09-22 20:59 Confounding colour conundrums Thangalin
  2013-09-22 21:42 ` Thangalin
@ 2013-09-22 22:02 ` Thangalin
  1 sibling, 0 replies; 3+ messages in thread
From: Thangalin @ 2013-09-22 22:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 297 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 412 bytes --]

[-- Attachment #2: ex.tex --]
[-- Type: application/x-tex, Size: 947 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-22 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-22 20:59 Confounding colour conundrums Thangalin
2013-09-22 21:42 ` Thangalin
2013-09-22 22:02 ` Thangalin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).