From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31590 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: url compared to hyperref Date: Thu, 26 Oct 2006 13:07:22 +0100 Message-ID: References: <87vem86ock.wl%schutz_m@usp.ac.fj> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161864483 20859 80.91.229.2 (26 Oct 2006 12:08:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2006 12:08:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 26 14:07:57 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gd41P-0002FF-3z for gctc-ntg-context-518@m.gmane.org; Thu, 26 Oct 2006 14:07:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CD7451FF60; Thu, 26 Oct 2006 14:07:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01094-01; Thu, 26 Oct 2006 14:07:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C6CE1FA9E; Thu, 26 Oct 2006 14:07:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DACCF1FB49 for ; Thu, 26 Oct 2006 14:07:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01036-02 for ; Thu, 26 Oct 2006 14:07:24 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id 1E1831FA2F for ; Thu, 26 Oct 2006 14:07:23 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1Gd414-0005ms-9f; Thu, 26 Oct 2006 13:07:22 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1Gd414-00029a-00; Thu, 26 Oct 2006 13:07:22 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Thu, 26 Oct 2006 10:07:55 +1200." <87vem86ock.wl%schutz_m@usp.ac.fj> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31590 Archived-At: Your demimed ConTeXt source: ================================== \starttext \useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu] An interesting project can be found at \url[imara-web-page]. \stoptext ================================== (by the way, I find it easiest if example tex code is placed inline in a message, unless it needs attaching due to strange character codes or whitespace issues, in which case quoted-printable encoding makes it easier to scan than base64 encoding does.) >>From an earlier message in this thread: Here is an example that I put on the wiki (because I kept forgetting how to do it and wanted one place to find it again, but I never can find it quickly there anyway, so now it's in the list archives at least): \setupcolors[state=start] \setupinteraction[state=start,color=middlered] \useURL [garden][http://contextgarden.net][][Context garden] \starttext The \from[garden] is useful. \stoptext I just tested it on the live context and it works fine with an active link in the pdf file. But it didn't work in the 2006.10.05 beta (the space in the "Context garden" caused problems). Maybe your example didn't have \setupinteraction[state=start] ? Which looks like one of the problems. For the other, you need to replace \url with \from, giving: \setupinteraction[state=start] \starttext \useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu] An interesting project can be found at \from[imara-web-page]. \stoptext which works fine here. If you want colored links (green by default), add \setupcolors[state=start] And to change the link color, use the color= option to \setupinteraction: \setupinteraction[state=start,color=middlered] -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.