From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49236 Path: news.gmane.org!not-for-mail From: Wei-Wei Guo Newsgroups: gmane.comp.tex.context Subject: How to use MPgraphic with options? Date: Thu, 09 Apr 2009 14:07:20 +0800 Message-ID: <49DD9098.7070706@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239256659 22597 80.91.229.12 (9 Apr 2009 05:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2009 05:57:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 09 07:58:57 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LrnHr-0003rp-Ln for gctc-ntg-context-518@m.gmane.org; Thu, 09 Apr 2009 07:58:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 559561FB77; Thu, 9 Apr 2009 07:57:29 +0200 (CEST) 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 20709-03; Thu, 9 Apr 2009 07:56:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFD4D1FB1D; Thu, 9 Apr 2009 07:56:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 21AAA1FB1D for ; Thu, 9 Apr 2009 07:56:53 +0200 (CEST) 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 20707-02 for ; Thu, 9 Apr 2009 07:56:46 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 9D4AA1FADB for ; Thu, 9 Apr 2009 07:56:46 +0200 (CEST) Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.184]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n395M6nn021012 for ; Thu, 9 Apr 2009 07:22:07 +0200 Original-Received: by ti-out-0910.google.com with SMTP id 24so429015tim.14 for ; Wed, 08 Apr 2009 22:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=IAq9mcqzKy9KLZZq6v2yASw4H/AJhRLY603mH2rQwPU=; b=L3vnTM0s9DOs5clVpSRs7d+YYg0fgrC9/AKxHmln+gj15/8FJgRoRl6673PHjyHxdM nHyB0VSwpCf85fmhaB0iF7PGvx5asfZpfJu0P/21+FULssCGuf95oACQhgt+XDOeHcu5 TjG0pgm6bEpch3VKy2vD/MrqH7GDkKjgHeoxk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=OAL+cHVM/zHR+N/VDv8PXnBezhAfJdQve5vDBb9at8A0TqDQMh166+lXh7M6xGsVV2 dXAkuHopwjDIaiJWw5NP0gfTOq8rOvuxOI41AZByVoRC01nGnGH4aFACi+0HLEA/GpBl 9SwzS4WxKDldnsm/6btacB5vfyUSsD3y2afxE= Original-Received: by 10.110.2.2 with SMTP id 2mr2860947tib.29.1239256603435; Wed, 08 Apr 2009 22:56:43 -0700 (PDT) Original-Received: from ?172.16.148.204? ([60.12.143.3]) by mx.google.com with ESMTPS id y3sm105407tia.3.2009.04.08.22.56.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 08 Apr 2009 22:56:42 -0700 (PDT) User-Agent: Thunderbird 2.0.0.19 (X11/20081209) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.142.184; 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: 206179191 - a882e31eeddb - 20090409 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:49236 Archived-At: Dear all, I need to use many rules with different lengths. Is there any way to implement function like below: \startuniqueMPgraphic{ARule}{length} draw origin -- (\MPvar{length},0) ; \stopuniqueMPgraphic \uniqueMPgraphic[length=5mm]{ARule} The example cannot be run. I only use it to explain what I want. Any suggestion is appreciated. Best wishes, Wei-Wei ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________