From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25445 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Venn diagram Date: Fri, 20 Jan 2006 19:22:36 +0100 Message-ID: <6faad9f00601201022s7039a64r9eec7bd4da965e4d@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137782983 7514 80.91.229.2 (20 Jan 2006 18:49:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 18:49:43 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 19:49:40 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 1F01Jr-0007Y6-Gc for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jan 2006 19:49:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 98E8E1285A; Fri, 20 Jan 2006 19:49:06 +0100 (CET) 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 24488-04; Fri, 20 Jan 2006 19:49:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B075E12831; Fri, 20 Jan 2006 19:49:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FE1112831 for ; Fri, 20 Jan 2006 19:49:02 +0100 (CET) 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 24638-01 for ; Fri, 20 Jan 2006 19:49:01 +0100 (CET) Original-Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.199]) by ronja.ntg.nl (Postfix) with SMTP id 3419A127C8 for ; Fri, 20 Jan 2006 19:49:00 +0100 (CET) Original-Received: by uproxy.gmail.com with SMTP id m2so99816uge for ; Fri, 20 Jan 2006 10:49:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jw8UXEcS3f+7b9RTdVkk8bxLcz/bTXr7IHkOKpJuAv9YHGTv8WtZyZoedCl5SSpkFQXfSVxFAjTmjcxS9XLEbZl3DJvq1uSifVMbmSM60d3alLgnyuB+rzx2iEvQdTjoSkX6C64/4NYucKUlb0Rp+DB6zaUC1Ve2fU9YNus+CYQ= Original-Received: by 10.48.235.6 with SMTP id i6mr166312nfh; Fri, 20 Jan 2006 10:22:36 -0800 (PST) Original-Received: by 10.48.162.5 with HTTP; Fri, 20 Jan 2006 10:22:36 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25445 Archived-At: On 1/20/06, Aditya Mahajan wrote: > <--- On Jan 19, David Arnold wrote ---> > > I need an easy way of shading these areas: > > > > 1. A intersect B > > 2. A union B > > 3. A intersect (complement of B) > > 4. (complement of A) intersect B > > There is venn.mp on ctan. Using it you can do basic shading of > intersection, union etc for 0,1,2 or 3 sets very quickly. Read the > documentation in source for details. For example Thanks a lot for the very nice example; > \startMPinclusions > input venn; > pair A,B,T[]; > A =3D (.4venn_width-.5venn_circle_diameter,.5venn_height); > B =3D (.6venn_width+.5venn_circle_diameter,.5venn_height); > T1 =3D (.5venn_width , 0); > T2 =3D (.5venn_width,.5venn_height-.5venn_circle_diameter); > vardef venn_shade =3D red; vardef venn_shade =3D red enddef; I tried the (transparent(.8,3,blue)) at that place, but it seems that either ConTeXt or Acrobat have problems here. It either compiled, but then Adobe Reader complained, if I tried to compile fill fullcircle scaled 3cm withcolor (transparent(.8,3,blue)); manually, then I got an error **\relax venn-mpgraph.3 (venn-mpgraph.3 ! Undefined control sequence. \handleMPspecialscommentx #1 ->\doifelse {#1}{10000}{\settrue \manyMPspecia= l... l.15 %%MetaPostSpecials: 2.0 123 1000 ? Missing character: There is no 1 in font nullfont! ... > Perhaps one can combine the transparent color functionality of > metapost with venn.mp to get really nice colors for intersections etc. Hans: please fix the typo on line 488 in mp-spec.mp. I copied the example from there and wondered why it didn't work (well, it still doesn't work - the problem described above). Mojca