From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83579 Path: news.gmane.org!not-for-mail From: Michael Ash Newsgroups: gmane.comp.tex.context Subject: Change URL color to match layer Date: Tue, 30 Jul 2013 17:57:01 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0276235255==" X-Trace: ger.gmane.org 1375221943 17753 80.91.229.3 (30 Jul 2013 22:05:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2013 22:05:43 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 31 00:05:46 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 1V4I36-0005a9-C6 for gctc-ntg-context-518@m.gmane.org; Wed, 31 Jul 2013 00:05:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DDA44101E4; Wed, 31 Jul 2013 00:05:14 +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 ednfTUuqQO9D; Wed, 31 Jul 2013 00:05:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AA529101E9; Wed, 31 Jul 2013 00:05:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84225101E4 for ; Wed, 31 Jul 2013 00:05:11 +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 cNDidesPfeQS for ; Wed, 31 Jul 2013 00:05:10 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 67522101E5 for ; Wed, 31 Jul 2013 00:04:49 +0200 (CEST) Original-Received: from mailhub1.oit.umass.edu (mailhub1.oit.umass.edu [128.119.103.53]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6UM5BKv010657 for ; Wed, 31 Jul 2013 00:05:13 +0200 Original-Received: from mailhub1.oit.umass.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 69D30326192 for ; Tue, 30 Jul 2013 18:05:08 -0400 (EDT) Original-Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) (Authenticated sender: maash) by mailhub1.oit.umass.edu (Postfix) with ESMTPSA id 3DA2332618A for ; Tue, 30 Jul 2013 18:05:08 -0400 (EDT) Original-Received: by mail-ve0-f178.google.com with SMTP id ox1so4128530veb.9 for ; Tue, 30 Jul 2013 15:05:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=sjeQArSxbsq7vU88vBTwDRY14CSjyLo95mEu0XVGILU=; b=kKmlL3yAxhZk/jaU/REnfW+Ugi4PhUpVfkPylrbrAnNGSht05gTyA5L1XSpOjIpt10 IxDrOdVCrGmFeEHGsgHyNGMzgK/SO6tEu7+awvliHZ7JZo7Hn51i4eDaEgz8PtoWmUCo q+7bs5wbPOk+MLYU80QlQ87CgJibXBbsSjP+fKDeLD7jW+dz56G8ZPq7eOjAaa4UgDsM zkJbF43PR/0KELh/ivUm4ZXIIdw/hmcSnUdueZEtui6I3YzHYE/TR1BJYzpQFiULbyEL yBElCaqMRSE2XAqySor7OZnRXSBa3xuWkAxtDNnQzis+cN71/0P5qiPbAA68Fjrzz8LO Xs+g== X-Received: by 10.58.75.41 with SMTP id z9mr28557110vev.4.1375221909566; Tue, 30 Jul 2013 15:05:09 -0700 (PDT) Original-Received: by 10.52.185.102 with HTTP; Tue, 30 Jul 2013 14:57:01 -0700 (PDT) X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.7.30.215726 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CTYPE_MULTIPART_NO_QUOTE 0, DATE_TZ_NA 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HTML_FONT_BLUE 0, __HTML_FONT_RED 0, __MIME_HTML 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __YOUTUBE_RCVD 0' X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=128.119.103.53; country=US; region=MA; city=Amherst; postalcode=01003; latitude=42.3804; longitude=-72.5231; metrocode=543; areacode=413; http://maps.google.com/maps?q=42.3804,-72.5231&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03K6K5bvR - 07ee0b7fea3a - 20130731 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:83579 Archived-At: --===============0276235255== Content-Type: multipart/alternative; boundary=089e012942aa683d0604e2c1cda3 --089e012942aa683d0604e2c1cda3 Content-Type: text/plain; charset=ISO-8859-1 I would like to change the color of URL's in parts of a document. In particular I am using the letter module and would like to have the color of URL's match the color of text in the letterhead and then change to match the color in the main body of the letter. I can set the URL color once with \setupinteraction but I do not see how to change it thereafter. Thank you very much for your guidance. Best, Michael \usemodule[letter] \setupinteraction[state=start,color=black] %% \setupinteraction[state=start,color=red] %% Would like this URL to match the color of the return address ("location") \useURL[author-email][mailto:mash@econs.umass.edu][][mash@econs.umass.edu] %% Would like this URL to match the color of the recipient's address ("address") \useURL[recipient-email][mailto:addressee@gmail.com][][addressee@gmail.com] %% Would like this URL to match the color of the main body \useURL[knuthbio][ http://en.wikipedia.org/wiki/Donald_Knuth][][http://en.wikipedia.org/wiki/Donald_Knuth ] \setupletter[ name={Michael Ash}, email={\from[author-email]} ] \setupletter[signature={Michael Ash}] \defineletterelement[layer][location][example]{\correspondenceparameter{name} \correspondenceparameter{email}\par} \setupletterlayer[location][alternative=example,color=red] \defineletterelement[layer][address][example]{\correspondenceparameter{toname}\par} \setupletterlayer[address][alternative=example,color=blue] \starttext \startletter[ toname={The Addressee\\\from[recipient-email]}, opening={Dear Addressee:}, closing={Best regards,}] Enjoy \from[knuthbio] \stopletter \stoptext --089e012942aa683d0604e2c1cda3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I would like to change the color of URL's in parts of a document.<= /div>

In particular I am using the letter module and wou= ld like to have the color of URL's match the color of text in the lette= rhead and then change to match the color in the main body of the letter.

I can set the URL color once with \setupinteraction but= I do not see how to change it thereafter.

Thank y= ou very much for your guidance.

Best,
Michael



\usemodule[l= etter]

\setupinteraction[state=3Dstart,color= =3Dblack]
%% \setupinteraction[state=3Dstart,color=3Dred]

%% Would like this URL to match the color of the return address = ("location")
\useURL[author-email][mailto:mash@econs.umass.edu][][mash@econs.umass.edu]
%% Would like this URL to match the color of the recipient's addre= ss ("address")
\useURL[recipient-email][mailto:addressee@gmail.com][][addressee@gmail.com]
%% Would like this URL to match the color of the main body=A0
\useURL[knuthbio][http://en.wikipedia.org/wiki/Do= nald_Knuth][][http://en.wikipedia.org/wiki/Donald_Knuth]

\setupletter[
=A0 name=3D{Michael Ash},
=
=A0 email=3D{\from[author-email]}
=A0 ]

=
\setupletter[signature=3D{Michael Ash}]

\defi= neletterelement[layer][location][example]{\correspondenceparameter{name} \c= orrespondenceparameter{email}\par}
\setupletterlayer[location][alternative=3Dexample,color=3Dred]

\defineletterelement[layer][address][example]{\correspond= enceparameter{toname}\par}
\setupletterlayer[address][alternative= =3Dexample,color=3Dblue]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0
\starttext
\startletter[
=A0 toname= =3D{The Addressee\\\from[recipient-email]},
=A0 opening=3D{Dear A= ddressee:},
=A0 closing=3D{Best regards,}]

=A0 Enjoy \from[knuthbio]

\sto= pletter
\stoptext

--089e012942aa683d0604e2c1cda3-- --===============0276235255== 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 ___________________________________________________________________________________ --===============0276235255==--