From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84388 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Re: Confounding colour conundrums Date: Sun, 22 Sep 2013 15:02:57 -0700 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e013a2d80fba4b704e7001029 X-Trace: ger.gmane.org 1379887380 6664 80.91.229.3 (22 Sep 2013 22:03:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Sep 2013 22:03:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 23 00:03:05 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VNrk8-0005rt-TG for gctc-ntg-context-518@m.gmane.org; Mon, 23 Sep 2013 00:03:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB8F0101EA; Mon, 23 Sep 2013 00:01:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RwV0Bycdn6J9; Mon, 23 Sep 2013 00:00:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 53CB3101E5; Mon, 23 Sep 2013 00:00:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E0BB101E5 for ; Mon, 23 Sep 2013 00:00:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y5qdUxR0gbjO for ; Mon, 23 Sep 2013 00:00:57 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 2B6C510193 for ; Mon, 23 Sep 2013 00:00:56 +0200 (CEST) Original-Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r8MM2wj4017871 for ; Mon, 23 Sep 2013 00:02:59 +0200 Original-Received: by mail-ie0-f181.google.com with SMTP id tp5so5174771ieb.12 for ; Sun, 22 Sep 2013 15:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yxms22vSIetULAroXYwwF+OH5S7X/4ILx3HQDLlsMxo=; b=SWLu+QIkfgbqdIaSnwzSXcfTmI/wyJrelagtcq0AdEDQErNO5L2he7jyZhGAdq4M3Z uGCsTro2a659SdFYDAQCKFobMNMf3hNoxR0uzQQPwwEY1s1irpMZBwTW9J6IC+K/GI6r zA4RqDpdLC7Y0aNQNI6zvo6AD+gHa77TZzMtbpqHmlVDR76p/Bdie6ZhiJ1t+JUyFt0x fZ1x5xP6rhp/siUAMvvpIYqzkScKVrlyv9gDLoq7E/1p3BrhEkI+CKuLThlpGbxDOYBl ba3Qi5XNsLKuiOCUWxV1gwVHnrbivF79lN0cHinZftYHkq/5nTrW23xUTDogzEaSUC3s wGoA== X-Received: by 10.50.111.48 with SMTP id if16mr10254565igb.23.1379887377683; Sun, 22 Sep 2013 15:02:57 -0700 (PDT) Original-Received: by 10.42.6.203 with HTTP; Sun, 22 Sep 2013 15:02:57 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.9959 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::235; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Ksm2WtB - 12c17f881f3e - 20130923 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84388 Archived-At: --089e013a2d80fba4b704e7001029 Content-Type: multipart/alternative; boundary=089e013a2d80fba4b404e7001027 --089e013a2d80fba4b404e7001027 Content-Type: text/plain; charset=ISO-8859-1 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. --089e013a2d80fba4b404e7001027 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

The trick does seem to be that a new= macro is required.

% External link colours
\definecolor[ste= elblue][h=3D4682B4]
\define[2]\href{%
=A0 \begingroup
=A0=A0=A0 \s= etupinteraction[
=A0=A0=A0=A0=A0 style=3Dnormal,
=A0=A0=A0=A0=A0 color=3Dsteelblue,
= =A0=A0=A0 ]%
=A0=A0=A0 \goto{#1}[url(#2)]%
=A0 \endgroup%
}
See attached.

Kindest regards.
--089e013a2d80fba4b404e7001027-- --089e013a2d80fba4b704e7001029 Content-Type: application/x-tex; name="ex.tex" Content-Disposition: attachment; filename="ex.tex" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hlwtcida1 JSBFbmFibGUgZG9jdW1lbnQgY29sb3Vycwpcc2V0dXBjb2xvcnNbc3RhdGU9c3RhcnQsXQoKJSBJ bnRlcm5hbCBsaW5rIGNvbG91cnMKXHNldHVwaW50ZXJ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e3N5bnRheH0uCiAgXHN0 b3BjaGFwdGVyCgpccGxhY2VpbmRleAoKXHN0b3B0ZXh0Cgo= --089e013a2d80fba4b704e7001029 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --089e013a2d80fba4b704e7001029--