From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70012 Path: news.gmane.org!not-for-mail From: "Kevin D. Robbins" Newsgroups: gmane.comp.tex.context Subject: Trouble making basic MetaPost graphics using ConTeXt Minimals Date: Thu, 14 Jul 2011 18:59:05 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310691561 9269 80.91.229.12 (15 Jul 2011 00:59:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 00:59:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 15 02:59:16 2011 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.69) (envelope-from ) id 1QhWkO-0006OI-IU for gctc-ntg-context-518@m.gmane.org; Fri, 15 Jul 2011 02:59:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58871CAE3D; Fri, 15 Jul 2011 02:59:15 +0200 (CEST) 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 dEIelYvDaNIa; Fri, 15 Jul 2011 02:59:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5370ECAE3A; Fri, 15 Jul 2011 02:59:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26117CAE3A for ; Fri, 15 Jul 2011 02:59:11 +0200 (CEST) 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 mW4Wl+RjtBns for ; Fri, 15 Jul 2011 02:59:08 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 9CDA2CAC8D for ; Fri, 15 Jul 2011 02:59:08 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6F0x5V1007612 for ; Fri, 15 Jul 2011 02:59:06 +0200 Original-Received: by fxe23 with SMTP id 23so1715182fxe.15 for ; Thu, 14 Jul 2011 17:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=quSFA3HWLfTrbbRDGg0yMv3y8L9J57Je8op4Ux3EW9c=; b=AGKZYL1hy9YnQ/bZQXNCh7rSyjAHG8bGLfGntM881cOpTn7VODUv5qK0JP3/mtBOap DJlKjfsf6J+4/rHcqyRcTJMedVnIZV6Kl2Ehs9HEkEs8CvfngOwXpq3ve2FrHA+wKqr8 XhKqwN5cg4uH00QD4LOFIqYp3Ib2BBb5oTXR0= Original-Received: by 10.223.5.17 with SMTP id 17mr4405243fat.25.1310691545265; Thu, 14 Jul 2011 17:59:05 -0700 (PDT) Original-Received: by 10.223.121.195 with HTTP; Thu, 14 Jul 2011 17:59:05 -0700 (PDT) X-Google-Sender-Auth: FiJLKyVJ8Fj4EupDyfM7M4URB-M X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08F80X5rG - 915fda5b3751 - 20110715 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:70012 Archived-At: Using a fresh install of ConTeXt Minimals today (ConTeXt version 2011.07.14 16:09, luatex version beta-0.70.1-2011051918) I am trying to build the following MetaPost graphics: ---8<--- file: test.mp fontmapfile "=lm-math.map" ; beginfig(1) draw fullcircle scaled 3cm ; endfig ; beginfig(2) ; fill fullcircle scaled 5cm withcolor red ; endfig ; beginfig(3); numeric u; u = 1cm; draw (0,2u)--(0,0)--(4u,0); pickup pencircle scaled 1pt; draw (0,0){up} for i=1 upto 8: ..(i/2,sqrt(i/2))*u endfor; label.lrt(btex $\sqrt x$ etex, (3,sqrt 3)*u); label.bot(btex $x$ etex, (2u,0)); label.lft(btex $y$ etex, (0,u)); endfig; end . ---8<--- Building the file using "mpost test.mp" I get the following: This is MetaPost, version 1.504 (kpathsea version 6.0.0) (mpost.mp (/opt/tools/ConTeXt/beta/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004)) (./test.mp{pdftex.map}{lm-math.map} [1] [2]/opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:570:in `locateseries': undefined method `each' for "tex":String (NoMethodError) from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:397:in `block in expand' from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:392:in `each' from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:392:in `expand' from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/texexec.rb:789:in `
' >> test.mp >> test.mpx ! Unable to make mpx file. l.18 label.lrt(btex $\sqrt x$ etex, (3,sqrt 3)*u); 2 output files written: test.1 .. test.2 The first two graphics are produced correctly, but there is no output for the third graphic with the labels. Building the file using "texexec --mptex test.mp" all three graphics are produced, but the label $\sqrt x$ does not produce the square root symbol. Am I doing something obviously wrong? Can anyone reproduce this? Thanks, Kevin ___________________________________________________________________________________ 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-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________