From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,NICE_REPLY_A,NO_RECEIVED,NO_RELAYS, T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/118038 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Braslau via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: MPcode inserts page Date: Thu, 6 Jul 2023 12:02:15 +0200 Message-ID: References: <1781b843-9b69-8955-4259-ff3f66396725@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10592"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cc: Alan Braslau To: mailing list for ConTeXt users , Henning Hraban Ramm Archived-At: Original-X-From: ntg-context-bounces+gctc-ntg-context-518=m.gmane-mx.org@ntg.nl Thu Jul 06 12:03:26 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from cgl.ntg.nl ([5.39.185.202]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qHLpe-0002Ye-9d for gctc-ntg-context-518@m.gmane-mx.org; Thu, 06 Jul 2023 12:03:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3BE8A48232F for ; Thu, 6 Jul 2023 12:02:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Original-Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mcNKiz5qpTQE for ; Thu, 6 Jul 2023 12:02:39 +0200 (CEST) Original-Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 60FBD4822C3 for ; Thu, 6 Jul 2023 12:02:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2EE5C4814C1 for ; Thu, 6 Jul 2023 12:02:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Original-Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03s-ehAf-35c for ; Thu, 6 Jul 2023 12:02:31 +0200 (CEST) Original-Received: from st43p00im-ztbu10063601.me.com (st43p00im-ztbu10063601.me.com [17.58.63.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 03A3548129E for ; Thu, 6 Jul 2023 12:02:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1688637750; bh=CK0LV8bj8KnfodIslpGNDp6hW9DI2v11LhDi33fRlCs=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; b=z9mbL/DpRb/UzWfQoI67dHhYpyrxDqmQjG9sAUQGCZcBk2aAMJnorJMihSir9co1T CQKrH6QieUs1ho8y7zdL0G8dfCrIoDvLQzzm9nf+N5+NUsVBC+R1BUV/Ls3v2hl093 AJ8pNeWbtbkPrRFtxf6/fatd9lyhpzGapY0aP3QGsvef8p4Er4IqoW9Lf9DtqiL5Wt yTHwq6LvkIdVbHUzCgyrYRDAR7o98fMEcOcWLT3Q3AZg2vQ7AyZQTEZTrZS8ZyfLxV hY7h7J/FDWxARtLNYM7tbXoCwRvLZJ3KYV3jqXb3LYpTbz9rQuGFgzm3QxRyBSQcej g5mfJ45X/6vdg== Original-Received: from [192.168.1.167] (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztbu10063601.me.com (Postfix) with ESMTPSA id 8C3FD8C0250; Thu, 6 Jul 2023 10:02:19 +0000 (UTC) Content-Language: en-US In-Reply-To: <1781b843-9b69-8955-4259-ff3f66396725@fiee.net> X-Proofpoint-GUID: BVSnqgP-2na01t9Ru7Ff0i3ReJ64ui82 X-Proofpoint-ORIG-GUID: BVSnqgP-2na01t9Ru7Ff0i3ReJ64ui82 X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.957,17.11.170.22.0000000_definitions?= =?UTF-8?Q?=3D2023-05-18=5F15:2020-02-14=5F02,2023-05-18=5F15,2023-02-09?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 clxscore=1015 spamscore=0 adultscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=623 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2307060089 Message-ID-Hash: XFKJP5CWMG3YIJO4WCAEXS4NTVWXTH7Q X-Message-ID-Hash: XFKJP5CWMG3YIJO4WCAEXS4NTVWXTH7Q X-MailFrom: alan.braslau@icloud.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: mailing list for ConTeXt users List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Xref: news.gmane.io gmane.comp.tex.context:118038 Archived-At: On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote: > Hi, if I use \startMPcode to declare variables etc. that I need in > several MP graphics, it always inserts an empty page. How can I avoid that? > (Actually, I load an external mp file, and for random value reasons I > must load it only once. But the MWE already shows the problem.) > > > """ > \startMPcode > numeric something; > something := 1; > \stopMPcode > > \starttext > \chapter{Something} > > Anything. > > \stoptext > """ \startMPinitializations % used by ALL MP instances % also called repeatedly \stopMPinitializations \startMPdefinitions \stopMPdefinitions This is what you want. -- Alan ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________