From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62597 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to center a MP graphics generated by Lua? Date: Thu, 14 Oct 2010 10:00:29 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287043251 27479 80.91.229.12 (14 Oct 2010 08:00:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 08:00:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 14 10:00:50 2010 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 1P6Ik6-0005j7-JY for gctc-ntg-context-518@m.gmane.org; Thu, 14 Oct 2010 10:00:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E039CA74E; Thu, 14 Oct 2010 10:00:50 +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 y4C1yWHPORU3; Thu, 14 Oct 2010 10:00:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C157CA741; Thu, 14 Oct 2010 10:00:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27D95CA741 for ; Thu, 14 Oct 2010 10:00:45 +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 9lh0DizUyxbj for ; Thu, 14 Oct 2010 10:00:34 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 00074CA73E for ; Thu, 14 Oct 2010 10:00:33 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9E80XKV028253 for ; Thu, 14 Oct 2010 10:00:33 +0200 Original-Received: by bwz19 with SMTP id 19so289074bwz.14 for ; Thu, 14 Oct 2010 01:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=XkmowxhJE+iSIE+00RYu9ipXSdBkn4m+NVi22Isnx/Q=; b=SHa3kC1aS4zTnatkWNjeBRkAQF+YiIvfa3M8mRGBxMScME3kFlj6tP87nAo+aONmaf NjuGRq2Hx1/WwcSsdhczq0iKspIw7W/5vIMOA/s5nLeN25+DdFK01JYqHY8nSa4Kdaug qH7HPwbR+pLdq3bUNrPtqiIRDvE6aG/cwc8kE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=bKeW1wVTTtq1zywC0qx6zXN2mc7OjlDy1wBfd/UkSygMT1eruAcU9y9H6QGv+qA2p6 0alncCdLpO306zThui6DyuxFlQGhYoPtQSqDxng50ePe3Yr08z8t5EINk3GNC6gl4Wwx 5VRoo5BeXiSRcuXxGgJFWKsQwGVQRJJhMtPzE= Original-Received: by 10.204.73.1 with SMTP id o1mr8849230bkj.71.1287043233007; Thu, 14 Oct 2010 01:00:33 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2951E8.dip.t-dialin.net [91.41.81.232]) by mx.google.com with ESMTPS id r21sm2458342bkj.10.2010.10.14.01.00.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Oct 2010 01:00:31 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 06Diw0xNj - 2cb552ac0449 - 20101014 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:62597 Archived-At: Am 14.10.2010 um 09:49 schrieb Proch=E1zka Luk=E1=9A Ing. - Pontex s. r. o.: > Hello, > = > I'm trying to center a MP graphics generated by Lua. > = > Although the inline Ctx code is (or seems to be) the same as generated by= Lua, I cannot understand why the red line is drawn on the left and not cen= tered. > = > So how to make the Lua->MP graphics centered? > = > \startalignment[center] \dontleavehmode > \startluacode > context.startMPcode() > context("draw (0,0)--(1in,0) withrgbcolor (1,0,0)") % Red line LEFT? > context.stopMPcode() > \stopluacode > \stopalignment Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________