From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54528 Path: news.gmane.org!not-for-mail From: Curiouslearn Newsgroups: gmane.comp.tex.context Subject: Re: Metapost Code works with MKII not with MKIV Date: Wed, 18 Nov 2009 20:55:29 -0500 Message-ID: <3b4b12310911181755l69e035aeg1d0a6f396200686d@mail.gmail.com> References: <3b4b12310911181731u2394f3d4i92939f8bb5193415@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258595875 12691 80.91.229.12 (19 Nov 2009 01:57:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 01:57:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 19 02:57:47 2009 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.50) id 1NAwHL-0007vd-Ka for gctc-ntg-context-518@m.gmane.org; Thu, 19 Nov 2009 02:57:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CE7DC9B35; Thu, 19 Nov 2009 02:54:44 +0100 (CET) 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 TQqKgbwIDyek; Thu, 19 Nov 2009 02:54:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C725C9AD9; Thu, 19 Nov 2009 02:53:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E109FC9AD9 for ; Thu, 19 Nov 2009 02:53:39 +0100 (CET) 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 99cGZesTuPvm for ; Thu, 19 Nov 2009 02:53:09 +0100 (CET) Original-Received: from mail-pw0-f55.google.com (mail-pw0-f55.google.com [209.85.160.55]) by balder.ntg.nl (Postfix) with ESMTP id 83CF6C9AAA for ; Thu, 19 Nov 2009 02:53:05 +0100 (CET) Original-Received: by pwj19 with SMTP id 19so1087122pwj.34 for ; Wed, 18 Nov 2009 17:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=L4w919senGTJGzqtS4uWb+ReLa3WN1OrzUJI8bcFm5Y=; b=gdKwBifj4p5nS3j2frnSS9I/wHyhQdbkUNC8S/iWDrTpJ8c0I1IQStWqaWXUjpnUBH 4FzIBBLFherb9GIFIhXQI+tdfccakzHPlShJecx6LdQ808C4ulOU8jB0zLLNbbiZ/nCY 4g8ps5OmYSm+BZDkMXjQYC8Jz+MTaY0F0PUZw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dvqDQsAZtICjOG2D/7Scckl6uCOR3Ya/zDa9Anr8rPavA9mpG2popica1sA7zxRjk9 V60EWe78oi9u3V475T1342u3c0D2SzrcJa5c7qNPtTarW1QizTvs3wt7HFZPX9tt+XgL fRPiJPxvmwpVBh3h2m6Qy2h6nc14vdhP3SfpY= Original-Received: by 10.142.62.12 with SMTP id k12mr1330812wfa.138.1258595729819; Wed, 18 Nov 2009 17:55:29 -0800 (PST) In-Reply-To: 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:54528 Archived-At: Thanks. That was a stupid mistake. It works fine now. On Wed, Nov 18, 2009 at 8:43 PM, luigi scarso wrot= e: > On Thu, Nov 19, 2009 at 2:31 AM, Curiouslearn wr= ote: >> Hi, >> >> I am back to trying Metapost. I spent sometime yesterday and today >> learning about clipping, buildcycles etc. to fill areas with patterns. >> I think I will try to write a simple tutorial with it. >> >> Meanwhile, I just updated my installation of Context minimals. The >> following simple Metapost code does not compile with MKIV, but >> compiles okay with MKII. >> > =A0\setuppapersize[letter][letter] > =A0\setupcolors[state=3Dstart] > =A0\setuppagenumbering[state=3Dstop] > > =A0\starttext > > =A0\startuseMPgraphic{Filling} > =A0=A0 =A0 =A0 =A0u :=3D 1cm; > =A0=A0 =A0 =A0 =A0w:=3D 2pt; > =A0=A0 =A0 =A0 =A0%Axes > =A0=A0 =A0 =A0 =A0path xaxis; path yaxis; > =A0=A0 =A0 =A0 =A0xaxis :=3D (0,0)--(12,0) scaled u; > =A0=A0 =A0 =A0 =A0yaxis :=3D (0,0)--(0,12) scaled u; > =A0=A0 =A0 =A0 =A0path demand; path AC; > =A0=A0 =A0 =A0 =A0demand :=3D > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0function (1,"x","10-x",= 0,10,1) scaled u; > =A0=A0 =A0 =A0 =A0AC :=3D > =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0function(1,"x","2+8/x",= 1,10,0.1) scaled u; > > =A0=A0 =A0 =A0 =A0drawarrow xaxis withpen pencircle scaled w; > =A0=A0 =A0 =A0 =A0drawarrow yaxis withpen pencircle scaled w; > =A0=A0 =A0 =A0 =A0draw demand withpen pencircle scaled w withcolor 0.5red; > =A0=A0 =A0 =A0 =A0draw AC withpen pencircle scaled w withcolor 0.5green; > =A0=A0 =A0 =A0 =A0fill fullcircle scaled u shifted (4*u,5*u) withcolor 0.= 1[white,blue] ; > =A0=A0 =A0 =A0 =A0label(btex \tfb S1 etex,(4,5)*u); > =A0\stopuseMPgraphic > =A0\midaligned{\useMPgraphic{Filling}} > =A0\stoptext > > You forgot \stoptext at the end > It works here > -- > luigi > _________________________________________________________________________= __________ > 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-co= ntext > webpage =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________