From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14352 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \hyphenatedurl problem Date: Mon, 22 Dec 2003 12:36:53 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20031222123401.01dbee90@localhost> References: <20031221223503.GA16055@physik.fu-berlin.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1072094803 14865 80.91.224.253 (22 Dec 2003 12:06:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2003 12:06:43 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Dec 22 13:06:38 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYOpa-0007dw-00 for ; Mon, 22 Dec 2003 13:06:38 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B859E10B2A; Mon, 22 Dec 2003 13:06:32 +0100 (MET) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 8D7BB10AFC for ; Mon, 22 Dec 2003 12:58:24 +0100 (MET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id hBMBwJ206924 for ; Mon, 22 Dec 2003 12:58:19 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 598D018142; Mon, 22 Dec 2003 12:58:23 +0100 (CET) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1D44F77A for ; Mon, 22 Dec 2003 11:58:22 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: <20031221223503.GA16055@physik.fu-berlin.de> Original-References: <20031221223503.GA16055@physik.fu-berlin.de> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14352 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14352 At 23:35 21/12/2003, you wrote: >Hi, > >I'm sure I miss something obvious but I have no clue what it is. >I have: > >\def\gotoDOI#1{\hyphenatedurl#1} \def\gotoDOI#1{\hyphenatedurl{#1}} otherwise the first token in #1 becomes the argument to \hyphenatedurl > \gotoDOI{10.1016/S0009-2614(01)01361-6} ^ in your def it's now \hyphenatedurl -> #1 == 1 and the 0.... is just text >\hyphenatedurl{10.1016/S0009-2614(01)01361-6} > >and I redefined supp-lan.tex's \scanurl to hyphenate at '(' and ')'. \else\if#1(% \flushurl\splitbefore(% \else\if#1)% \flushurl\splitafter)% ...\fi\fi... Hans