From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17579 Path: main.gmane.org!not-for-mail From: Adam Duck Newsgroups: gmane.comp.tex.context Subject: Re: Problems with uniqueMPgraphic Date: Sat, 18 Dec 2004 01:40:31 +0100 Message-ID: <86u0qkmoao.fsf@oumu.localdomain> References: <864qimjl73.fsf@oumu.localdomain> <41C2B9B5.9030203@wxs.nl> <41C2BF7E.4070300@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103407802 8393 80.91.229.6 (18 Dec 2004 22:10:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2004 22:10:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 18 23:09:26 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CfmlD-0004ci-00 for ; Sat, 18 Dec 2004 23:09:11 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DB12127DC; Sat, 18 Dec 2004 23:08:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26869-08-5; Sat, 18 Dec 2004 23:08:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD2DB127CF; Sat, 18 Dec 2004 23:08:47 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3EB92127B5 for ; Sat, 18 Dec 2004 01:40:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21802-09 for ; Sat, 18 Dec 2004 01:40:34 +0100 (CET) Original-Received: from mail-in-03.arcor-online.net (unknown [151.189.21.43]) by ronja.ntg.nl (Postfix) with ESMTP id A2157127B4 for ; Sat, 18 Dec 2004 01:40:34 +0100 (CET) Original-Received: from oumu.localdomain (dsl-213-023-224-070.arcor-ip.net [213.23.224.70]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 4D04212C80D for ; Sat, 18 Dec 2004 01:40:34 +0100 (CET) Original-To: mailing list for ConTeXt users In-Reply-To: <41C2BF7E.4070300@wxs.nl> (Hans Hagen's message of "Fri, 17 Dec 2004 12:14:06 +0100") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 X-Virus-Scanned: by amavisd-new at ntg.nl X-Mailman-Approved-At: Sat, 18 Dec 2004 23:08:45 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17579 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17579 Hans Hagen writes: [... stuff I didn't understand ...] > alternative > > \startuniqueMPgraphic{underline} > numeric w,h; w := OverlayWidth; h := ExHeight/6; > path p; p := (0, -h)..(w/2,0 + (h/3 randomized h/3))..(w, -h); > draw p withpen pencircle scaled 1 withcolor OverlayColor ; > setbounds currentpicture to unitsquare xyscaled > (OverlayWidth,OverlayHeight); \stopuniqueMPgraphic > > \defineoverlay[underline][\uniqueMPgraphic{underline}] > > \def\aidul{\dosingleempty\doaidul} > \def\doaidul[#1]{\inframed[background=underline,frame=off,#1]} > > \setupcolors[state=start] Thanks for the fast response and the many lines you've written (although I didn't understand everything). The OverlayColor works fine and as underlining is in the background, I'll take this aproach. So, one last question remains: why doesn't this work? \def\uli{backgroundcolor=peachpuff} \aidul[\uli]{test} bye, Adam.