From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110233 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Problem with show command in MetaFun Date: Thu, 7 Jan 2021 15:11:45 +0000 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7078487852436731701==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17387"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 07 16:12:15 2021 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 1kxWxQ-0004Hf-W9 for gctc-ntg-context-518@m.gmane-mx.org; Thu, 07 Jan 2021 16:12:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B5FEA1C1959; Thu, 7 Jan 2021 16:11:49 +0100 (CET) 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 JTKMZqmZG9kH; Thu, 7 Jan 2021 16:11:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DD12F1C1977; Thu, 7 Jan 2021 16:11:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 13C611C1974 for ; Thu, 7 Jan 2021 16:11:48 +0100 (CET) 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 okrRXCOCEGB8 for ; Thu, 7 Jan 2021 16:11:47 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.50; helo=mail-wm1-f50.google.com; envelope-from=mckaymeister@gmail.com; receiver= Original-Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 8642E1C1959 for ; Thu, 7 Jan 2021 16:11:47 +0100 (CET) Original-Received: by mail-wm1-f50.google.com with SMTP id q75so5848625wme.2 for ; Thu, 07 Jan 2021 07:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=V9SBwFhTEYeMmekWqLGlknt4ODjnJh+gINqHI2yG2yo=; b=qBzC5SsFd9/TYCEH1HzjGc+RS1GOFsuIh/crkFBFFhVtTOqXvkAceAvphT4btn5rm5 ipq+zJtO6M5yOn3JPOUO+WBHdoByl9fb7JAm+ao4qT0iWv9KeTf6TXa1nOIuES2vyz6l CTgccmR7XCgEzf0qPztfX47pdAro99+jaBZHBrZMVnxrIJxrfB60kb6vg1WkY1tZUM9m YgQ0jSqBDCxgjwcmAstIhRKdw2umtg3vlOz+u8SU112govif7BpivS4+E8WUYlrC6k0G DJPA0QBRR422RiLpla4PvfKMA3NFmfB9si84U25StAOe6C/U/OaxhZMn3bpvgAe0y0k+ eq9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=V9SBwFhTEYeMmekWqLGlknt4ODjnJh+gINqHI2yG2yo=; b=ssJugK2uptp8vsHq0Y16enCrumeVuO8imKYWiqnKtXRNZRc8/ba+nNycFuRuBq4nND Kz4QBKORptGVYdoEWKqMtXVJwUH58+FYIKxEPGvtat1qxv0nnaRGgtipqFoNHsj318jR tQuMg4LLtE1HvHh0cFlxzn+iWIJGP5x/NihTyXUzaP5Ge0NWBvOKAq1Rs0ejdp+ehWCG mOatzE3Qq0Nwm+MqonVYpv1b/hZQBIt/4ZWT9kEZmi1K2u1wXPK7/XtMpmlU2QIij9rE ACAwAE0fOGuljdROSMeXujuRvMkRp/gCuntfb9YxScftqiKilGbXNT05F/sW2/2umAhJ tqhg== X-Gm-Message-State: AOAM533vBQJylJV3lUPPVoiaWJuD/oXd4+uXdRmEeDKMa+3DMap1l4s/ XJk35kSsZx0KvtBSLbSxmsExrrCGBU0= X-Google-Smtp-Source: ABdhPJxHcER7PLa6edMNZ5Ut/YrYz1jeKeoINKWcTSnCEuPzq9hPpLz5I3g+4bFXYfTYrA61pCZlzw== X-Received: by 2002:a7b:c959:: with SMTP id i25mr8524901wml.74.1610032306781; Thu, 07 Jan 2021 07:11:46 -0800 (PST) Original-Received: from Keiths-Mac-mini-2.local (cpc100594-uddi29-2-0-cust51.20-3.cable.virginm.net. [82.42.107.52]) by smtp.gmail.com with ESMTPSA id v65sm3523619wme.23.2021.01.07.07.11.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 07:11:46 -0800 (PST) Content-Language: en-GB 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:110233 Archived-At: This is a multi-part message in MIME format. --===============7078487852436731701== Content-Type: multipart/alternative; boundary="------------0D1B35F714559F0EEE0689BA" Content-Language: en-GB This is a multi-part message in MIME format. --------------0D1B35F714559F0EEE0689BA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit In the MWE below I would expect the "show" command to print the value of p in the console output (I use Texworks), however this does not seem to be happening. I haven't used "show" in MetaFun for a while, am I implementing it correctly? Best Wishes Keith McKay %%%%%%%% MWE %%%%%%%%% \setuppapersize[A4, portrait] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; numeric p; p := 0; for q = 0 step 1 until 10: show p; p := p + 1; fill fullcircle xyscaled(3cm,4cm) shifted ((p +2)*cm, (p + 2)*cm) withcolor red ; endfor; StopPage; \stopMPpage \stoptext --------------0D1B35F714559F0EEE0689BA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

In the MWE below I would expect the "show" command to print the value of p in the console output (I use Texworks), however this does not seem to be happening. I haven't used "show" in MetaFun for a while, am I implementing it correctly?

Best Wishes

Keith McKay

%%%%%%%% MWE %%%%%%%%%

\setuppapersize[A4, portrait]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

numeric p;

p := 0;

for q = 0 step 1 until 10:

show p;

p := p + 1;

fill fullcircle xyscaled(3cm,4cm) shifted ((p +2)*cm, (p + 2)*cm) withcolor red ;

endfor;

StopPage;

\stopMPpage

\stoptext

--------------0D1B35F714559F0EEE0689BA-- --===============7078487852436731701== 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== --===============7078487852436731701==--