From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108447 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Re: A dumb question about MetaFun Date: Sun, 16 Aug 2020 20:09:53 +0100 Organization: The PotHole Press Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7552609384357171329==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20971"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 16 21:10:33 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7O37-0005LX-0G for gctc-ntg-context-518@m.gmane-mx.org; Sun, 16 Aug 2020 21:10:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55E6F1A8396; Sun, 16 Aug 2020 21:10:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ucT0DeLbfKvX; Sun, 16 Aug 2020 21:09:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0E2A51A838C; Sun, 16 Aug 2020 21:09:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7DD591A838A for ; Sun, 16 Aug 2020 21:09:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sDeqf2N79iDC for ; Sun, 16 Aug 2020 21:09:56 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=mckaymeister@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8D38A1A8388 for ; Sun, 16 Aug 2020 21:09:56 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id a15so12799526wrh.10 for ; Sun, 16 Aug 2020 12:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=rU3r29AozUSYMYgPG7ZineKtpYNvG1mtMVDDtTimwKg=; b=BjfCmB5s+AnKBbDJ+8HSh8iWfv7Xgfygazkdi76+0NOXy6XpW9bnRTvDHJtjjZs0J1 WesJHqVMoIM+4htBSqeYypcO/9X/soEBvxK9l8YNujyjeVsGzZL+UXHt2vMgw3jYg/OM vryPLMFIW5/8YObCBfBP07Y4Zxe8IPBTCNUpqns8ce5QH4jwl31DHXDsJp4YncNwealH J1bHPQ5aYSebcs9RMLeNac/Yj9ZzxZj96wCLnPzRCFg0QaA8O7T8gIsxdXxPgynBH6jh Y49n5EaHax+rpl57jFkwaBRhootd3eSzxNCbVOng1cBdzotddxJBEOggNbcM8ALDbZoE LBbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=rU3r29AozUSYMYgPG7ZineKtpYNvG1mtMVDDtTimwKg=; b=QIp8gZrXMfiZ+QkzAXf3EX0pgQ1QLfT4NFK5oCDPcxwGxEvU9zO96wJLmsBbTtDVuS zvVk44caUXTJwUNa2aqG0Ne5ImYFz8wZ9otZChrBKrnv3XBRLXiP8qkAOk6fMx664mdu vOlrXF+8yWB7Q53o8W8nENklXhrFnskQTNpVdf4i4KDuxlU1DvUc2reNptD3v7kWPTWE nzA09G9Pm4KEkNaOWSb3f0jbMoI8/fKXr7JEQy7dnRaXr23N4nywB17Cj2iMK2AuNzxR Hx6flAR8bMb952k4BvMHUmNmfxrqv9OGMqLCEXRypGjf+jVuaMaU0ZOxlTssmZFcT9UY WxQg== X-Gm-Message-State: AOAM531/iUIIA7Hz/QxK81DybylNegOSZfKVdPmPz4Ltlo6Oy6CsZwK7 5XhvTgfL4DfcMc5X3wdkXZam4X0QHew= X-Google-Smtp-Source: ABdhPJzOC+sN/C+CmubKxzRl+a7Y4YL+w6GOdRsGG+sgoRJOG6wZH4qliBUv7U5i1NQkiPkR0jN51g== X-Received: by 2002:adf:a195:: with SMTP id u21mr12478893wru.296.1597604995701; Sun, 16 Aug 2020 12:09:55 -0700 (PDT) Original-Received: from Keiths-Mac-mini.local (cpc100294-uddi29-2-0-cust139.20-3.cable.virginm.net. [82.42.59.140]) by smtp.googlemail.com with ESMTPSA id i66sm27871734wma.35.2020.08.16.12.09.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Aug 2020 12:09:55 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108447 Archived-At: This is a multi-part message in MIME format. --===============7552609384357171329== Content-Type: multipart/alternative; boundary="------------F45AB3AA7CA2E17E181C41DB" Content-Language: en-US This is a multi-part message in MIME format. --------------F45AB3AA7CA2E17E181C41DB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Jairo Try draw unitsquare scaled 1cm shifted (xcm, ycm); Page 11 of the manual metafun-p.pdf is your friend here. My recent conversation with Taco on this list will be usefull as well. Best Wishes Keith On 16/08/2020 18:06, Jairo A. del Rio wrote: > Hi list! A simple question: is there an equivalent of thetextext for a > normal picture (an "image(draw ... ;)")? I want to move the center of > a picture to an specific point, like this: > > \startMPpage > > draw thetextext("\tttf hello", origin) ; > draw unitsquare scaled 1cm; > > \stopMPpage > > The "hello" is centered at the origin. I want to achieve the same > result for pictures. I've seen such a command some time ago, but I've > forgotten and I cannot find it again in documentation. Thanks and > sorry for any inconvenience. > > Regards, > > Jairo :) > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ --------------F45AB3AA7CA2E17E181C41DB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Jairo

Try

draw unitsquare scaled 1cm shifted (xcm, ycm);

Page 11 of the manual metafun-p.pdf is your friend here. My recent conversation with Taco on this list will be usefull as well.

Best Wishes

Keith


On 16/08/2020 18:06, Jairo A. del Rio wrote:

Hi list! A simple question: is there an equivalent of thetextext for a normal picture (an "image(draw ... ;)")? I want to move the center of a picture to an specific point, like this:

\startMPpage

draw thetextext("\tttf hello", origin) ;
draw unitsquare scaled 1cm;

\stopMPpage

The "hello" is centered at the origin. I want to achieve the same result for pictures. I've seen such a command some time ago, but I've forgotten and I cannot find it again in documentation. Thanks and sorry for any inconvenience.

Regards,

Jairo :)

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________
--------------F45AB3AA7CA2E17E181C41DB-- --===============7552609384357171329== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7552609384357171329==--