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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31786 invoked from network); 21 Oct 2023 20:42:25 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2023 20:42:25 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BCEC04820BE for ; Sat, 21 Oct 2023 22:42:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl 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 1_RhbI3u57e8 for ; Sat, 21 Oct 2023 22:42:22 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CFB6148348C for ; Sat, 21 Oct 2023 22:32:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 65D90483456 for ; Sat, 21 Oct 2023 22:32:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl 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 beisingxj-L9 for ; Sat, 21 Oct 2023 22:32:10 +0200 (CEST) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.167]) (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 2991A483453 for ; Sat, 21 Oct 2023 22:32:10 +0200 (CEST) X-KPN-MessageId: e6ab90da-7050-11ee-a95f-005056abbe64 Received: from smtp.kpnmail.nl (unknown [10.31.155.39]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id e6ab90da-7050-11ee-a95f-005056abbe64; Sat, 21 Oct 2023 22:32:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=FtVhmbE+0BnNLZV8HQk8njD6vUXaE+0h799wivT5GpA=; b=vTlIlrg9/VdUPzZXK1OMvcWVNsvisP5Ix4FwqxPC2Myej8b1LMpwrnOTAr0dv/RjZAx05y3TSR4fE 61ju/FQr8aijroPoE1N3TwJ2+mykZNh30fI89xv02tzqqfQfEiHa2rFyqPE71B9IjykydqRXs0NtLt l0OR0uVCXyFt0kZJ2LCQ8NrbjCmKBXVpDU61Z73JAr/bXO+xK/AtCIbtLKZFk7m1xfHZtx70A1ySA4 zFOptktPNJ2VYihmhVPe4Z5NM0CpBB+44gv2/0pqMypFkGlGdrsQv3OUmpkih+G2PpS8KYXG4F5CXl FaeSSIgKOh8uueZaPrRyVMUT4xPsMNw== X-KPN-MID: 33|2yFuAaX+gh39QHXlUPdaXLjU9xrcbYZVqyP8yRWj3PZkmkTHW3g+ydcyq8aUb1K XFzfilAIWFxinjtEGg0nd7fnLIS9Yd+XuQx+jIZkQGZ8= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|QMt1TMN3MiolfPNV9STcJsVdzHxf67ViJlTy3gt8cwwDVocKgpURDZ6Xhq9M9QI 8MvSR8XhkZ6GqSHHIJUOykw== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.106] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id e87b71b8-7050-11ee-a7aa-005056ab7447; Sat, 21 Oct 2023 22:32:09 +0200 (CEST) Message-ID: <642b9358-2705-6c05-dc97-03874e596c0b@xs4all.nl> Date: Sat, 21 Oct 2023 22:32:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: ntg-context@ntg.nl References: From: Hans Hagen In-Reply-To: Message-ID-Hash: GF6PLTWN7QXNW3N4NZMRSCWYOHBTZ3YV X-Message-ID-Hash: GF6PLTWN7QXNW3N4NZMRSCWYOHBTZ3YV X-MailFrom: j.hagen@xs4all.nl 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 Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Large unwanted white space List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 10/21/2023 9:43 PM, Fabrice Couvreur wrote: > Hi, > I don't know if I will explain my problem clearly but I will try. For my > students' tests, I use a master file. If I insert this piece of code, there > is a large white space that is created between the horizontal line of the > header and the first exercise. \startMPcode makes an image so it will take space for definitions use \startMPdefinitions > \startMPcode > def suite (expr n, t) = > begingroup > numeric u; > u := 5mm; > pickup pencircle scaled 5pt; > for i=0 upto n: > for j=0 upto n: > drawdot (i*u,j*u) shifted(t*u,0) withcolor \MPcolor{darkred}; > endfor > endfor > endgroup > enddef; > > def Suite (expr n, t) = > begingroup > numeric u; > u := 5mm; > pickup pencircle scaled 5pt; > for i=0 upto n: > drawdot(i*u,0) shifted(t*u,0) withcolor \MPcolor{blue}; > endfor > endgroup > enddef; > > def cross (expr n, t) = > begingroup > numeric u; > u := 5mm; > pickup pencircle scaled 5pt; > for i=-n upto n: > drawdot(0,i*u) shifted(t*u,0) withcolor \MPcolor{blue}; > endfor > endgroup > enddef; > \stopMPcode > __________________________________________________________ %horizontal line > % big unwanted white space > \starttext > % \startex First exercise > \startlinecorrection[blank] > \startmidaligned > \startcombination[1*2] > {\startMPcode > Suite(2,0); > cross(1,1); > Suite(4,4); > cross(2,6); > Suite(6,10); > cross(3,13); > \stopMPcode > }{\tfx \bf Suite 1} > {\startMPcode > suite(0,0); > suite(1,2); > suite(2,5); > \stopMPcode > }{\tfx \bf Suite 2} > \stopcombination > \stopmidaligned > \stoplinecorrection > %\stopex > \stoptext > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________