From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67702 Path: news.gmane.org!not-for-mail From: Marco Pessotto Newsgroups: gmane.comp.tex.context Subject: Re: Typesetting url's in ConTeXt? Date: Sun, 10 Apr 2011 20:48:41 +0200 Message-ID: <87vcymq6wm.fsf@universe.krase.net> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302461372 1897 80.91.229.12 (10 Apr 2011 18:49:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2011 18:49:32 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 10 20:49:26 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8zhO-0004dP-8k for gctc-ntg-context-518@m.gmane.org; Sun, 10 Apr 2011 20:49:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8D25CAB99; Sun, 10 Apr 2011 20:49:25 +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 t3qM3poZmvoO; Sun, 10 Apr 2011 20:49:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28EEBCAB6E; Sun, 10 Apr 2011 20:49:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1BB51CAB6E for ; Sun, 10 Apr 2011 20:49:21 +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 zih8EzKPN8hQ for ; Sun, 10 Apr 2011 20:48:55 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 0E971CAB63 for ; Sun, 10 Apr 2011 20:48:55 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3AImsjN030098 for ; Sun, 10 Apr 2011 20:48:54 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q8zgr-0004Kn-Gb for ntg-context@ntg.nl; Sun, 10 Apr 2011 20:48:53 +0200 Original-Received: from 93-137-8-19.adsl.net.t-com.hr ([93.137.8.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2011 20:48:53 +0200 Original-Received: from melmothx by 93-137-8-19.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2011 20:48:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-137-8-19.adsl.net.t-com.hr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:3yLC0x1jLF3J9OhBmioFpcH4mmQ= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEtSMSP4 - e91f5bd34a3b - 20110410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67702 Archived-At: Aditya Mahajan writes: > On Sun, 10 Apr 2011, Alasdair McAndrew wrote: > >> There's a wiki page all about typesetting url's, but I can't seem to get >> them to work. All I want to do is to display a url in a typewriter font, >> for document printing - I don't need a live link. What I want is for the >> output to be similar to that provided by LaTeX's url package, so that, for >> example: \url{https://This_is_a_url.html} would be appropriately typeset, >> including all such ascii characters as underscores. >> >> What's the canonical way to do this? > > \hyphenatedurl{....} > > Aditya Try this: \setupinteraction[state=start] \starttext \goto{\hyphenatedurl{http://domain.tdl:6666/id=15&ln=test\letterpercent 20_test\#2}}[url(http://domain.tdl:6666/id=15&ln=test\%20_test\#2)] \stoptext IIRC there has been a discussion about the percent (%) in url, so maybe this workaround isn't needed anymore. Anyway, this is what I usually use. -- Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________