From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54946 Path: news.gmane.org!not-for-mail From: Curiouslearn Newsgroups: gmane.comp.tex.context Subject: Re: Metapost code does not work - Can you find the problem? Date: Tue, 1 Dec 2009 16:02:21 -0500 Message-ID: <3b4b12310912011302v591930a6q6216f75087bb3273@mail.gmail.com> References: <3b4b12310912011252w418a359bleb8b1d68ba50e8ba@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 1259701380 16082 80.91.229.12 (1 Dec 2009 21:03:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 21:03:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 01 22:02:51 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 1NFZrs-0000EJ-66 for gctc-ntg-context-518@m.gmane.org; Tue, 01 Dec 2009 22:02:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A7E0C9CBF; Tue, 1 Dec 2009 21:59:30 +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 37PfrQOEGtPr; Tue, 1 Dec 2009 21:59:18 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 406D1C9C9C; Tue, 1 Dec 2009 21:59:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8A99EC9C9C for ; Tue, 1 Dec 2009 21:59:16 +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 6J03NqQdzOgz for ; Tue, 1 Dec 2009 21:59:14 +0100 (CET) Original-Received: from mail-px0-f204.google.com (mail-px0-f204.google.com [209.85.216.204]) by balder.ntg.nl (Postfix) with ESMTP id 0429DC9C9B for ; Tue, 1 Dec 2009 21:59:13 +0100 (CET) Original-Received: by pxi42 with SMTP id 42so4075368pxi.5 for ; Tue, 01 Dec 2009 13:02:21 -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=Ilm0cJg8rC5YSLxqEdcdoeT8ans9RNmLMWDHD3b4zPI=; b=A314T4IRudrs+oDtSsZo4sSOJvSumkWR2ayHaIS5hcftdl0+zRs8hk8qUPd6IxbS/y 7nn+ILNE1KOetckF+G/ovLv8aLNrVsBiaxfKQNWD0pe0MOWrFKsYskePVhGAUXrFW5oZ 0aPqFAUuLnRauIeF05lDN/gmKgv+x1IEdc9u0= 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=lN8TCudjHK4YVU4QZRlEHwN5h4JsMX25QuaSv1ekis83NQAARfCcTyF+Dfpv474EYN wT4xM/bknJHFQx2E7j+KYUjzU1PgKNLloKPr73OoLnIb4VtaEAGQz0TxuN7dKuvNARrx dSqKNi0keujTagrrzaXQLRDJjIY2n/rhP5TeM= Original-Received: by 10.142.56.18 with SMTP id e18mr612670wfa.3.1259701341318; Tue, 01 Dec 2009 13:02:21 -0800 (PST) In-Reply-To: <3b4b12310912011252w418a359bleb8b1d68ba50e8ba@mail.gmail.com> 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:54946 Archived-At: Sorry for the question. I figured it out. I have square brackets instead of braces in the \startuseMPgraphic line. On Tue, Dec 1, 2009 at 3:52 PM, Curiouslearn wrote: > Can someone please tell me why the code below does not work? > > Thanks a ton. > > \starttext > > \startuseMPgraphic[CS] > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0u:=3D1cm; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pickup pencircle scaled 2pt; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0%Paths > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0path demandCS; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0demandCS :=3D (0,5u) -- (10u,0); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0% Draw Demand > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0draw demandCS withcolor 0.5red; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0% The point on demand curve > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0draw ((6,2) -- (6,0)) scaled u dashed even= ly withpen pencircle > scaled 1pt withcolor 0.5white; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0draw ((6,2) -- (0,2)) scaled u dashed even= ly withpen pencircle > scaled 1pt withcolor 0.5white; > \stopuseMPgraphic > > =A0 =A0 =A0 =A0\useMPgraphic{CS} > > \placefigure[here][CS1]{Consumer Surplus}{\useMPgraphic{CS}} > > > > \stoptext > ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________