From: Michael Ash <mash@econs.umass.edu>
To: ntg-context@ntg.nl
Subject: Change URL color to match layer
Date: Tue, 30 Jul 2013 17:57:01 -0400 [thread overview]
Message-ID: <CAKTWfUN1aCU2s_5eoZvwzcdqD_AhscSdBVKmE0w3ekd3Qoc6mg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1611 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2550 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
___________________________________________________________________________________
next reply other threads:[~2013-07-30 21:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 21:57 Michael Ash [this message]
2013-07-30 22:27 ` Wolfgang Schuster
2013-07-31 1:11 ` Michael Ash
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKTWfUN1aCU2s_5eoZvwzcdqD_AhscSdBVKmE0w3ekd3Qoc6mg@mail.gmail.com \
--to=mash@econs.umass.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).