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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9049 invoked from network); 22 Oct 2023 16:02:08 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 22 Oct 2023 16:02:08 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 65205483503 for ; Sun, 22 Oct 2023 18:00:47 +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 MNPNSjZQadAq for ; Sun, 22 Oct 2023 18:00:46 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7CF2B4836FF for ; Sun, 22 Oct 2023 17:58:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B6B1E48315D for ; Sun, 22 Oct 2023 17:57:56 +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 S9eVVajUqKbS for ; Sun, 22 Oct 2023 17:57:56 +0200 (CEST) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 2A00E48313F for ; Sun, 22 Oct 2023 17:57:56 +0200 (CEST) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-53e855d7dacso3753804a12.0 for ; Sun, 22 Oct 2023 08:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697990275; x=1698595075; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=cb/sn0cytaGI1qWlWm0k/tNkOH8WdlWqP1s1Dn58ZAc=; b=jS9uMZfZrQ518PaFFO57LGmIOUVh10N5oFDWu5K637HYHittxesubRbSRtgocfEhFf h9wLbnubpxySj11Nj06TINuYs3WxIWmDuDku3Cb/vm4xY9QsrSbhTavK3h/GZScJv6TT ceOYVF/Ex8JDHG2l5H6HkST9tjAGIqMyjN2GIXVXCzoIwZcRmHrBaPYANWERRrKOmMQn SPuboktrUOZjhj/AGd7MrJ9P0bOk3Qxd7YzLL26YQKAoXY9E1vryovmN+j36uEt/iD3L njHjjgVNpS3Ap4V6GevSsEmt8N3klZPRENfJ2xsaHzXot0vARo881qWkCBtgSDRzvSoI ZrKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697990275; x=1698595075; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cb/sn0cytaGI1qWlWm0k/tNkOH8WdlWqP1s1Dn58ZAc=; b=GAvtEsgu+b+jAzUExJQZklrSPM8HCFv3/TNiWzFLJWLhBSQNh8AD7AkjFlwSPZRhjm JbqHps8YQRG7Xw0e+/OgsgwfOahK+ZsIFSYX9lUvmJ61SJLvmUQowOxGaJueEwNBe+bi qmXuoUYMxCsHRPYCY73AJZE/TrvOhhFEVTsW9Xvqxlysr5XBFFiX8wU/Lg5NTcE3obG0 6MDC3LS71HMcwR7YudVHWNSOX6U4dYFqoBOtofFMoIbI7xa6B401Vj6x/LUI5Fd39bJS A35N7IaCMD9Ce0Wx/hMpdPSZs0iEXp7pS67Yzb9zQpL2OWuWnTbOPGnVgGnOKX/MKFSE B+ug== X-Gm-Message-State: AOJu0YxxME5tLtzjeFp3TTp5s8/sQh+6tM6J7Efsxm4rnshVKm+/UfWv e+MoBbZfuhZ4nZjfYvX5yqTvCxacJsegQDKEcu0+oDog5UY= X-Google-Smtp-Source: AGHT+IHDbbte7mybq4/CmuBHfLl6DtLO/0++J3hJ4493nCrS2/bYmGSlHxnyV/kZHWmX4Kj79WizP4TBghaMVpH6y0Q= X-Received: by 2002:a50:c356:0:b0:53f:a433:bb03 with SMTP id q22-20020a50c356000000b0053fa433bb03mr18734edb.11.1697990275332; Sun, 22 Oct 2023 08:57:55 -0700 (PDT) MIME-Version: 1.0 References: <642b9358-2705-6c05-dc97-03874e596c0b@xs4all.nl> In-Reply-To: <642b9358-2705-6c05-dc97-03874e596c0b@xs4all.nl> From: Fabrice Couvreur Date: Sun, 22 Oct 2023 17:59:22 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: DJDYNMZPOL4OU7NJAUIIJERWOMAY3DTE X-Message-ID-Hash: DJDYNMZPOL4OU7NJAUIIJERWOMAY3DTE X-MailFrom: fabrice1.couvreur@gmail.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 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: multipart/mixed; boundary="===============3917245719689349379==" --===============3917245719689349379== Content-Type: multipart/alternative; boundary="000000000000317f2a0608502b7f" --000000000000317f2a0608502b7f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Thanks, it works perfectly. Fabrice Le sam. 21 oct. 2023 =C3=A0 20:33, Hans Hagen a =C3=A9c= rit : > 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 m= y > > 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 t= he > > header and the first exercise. > > \startMPcode makes an image so it will take space > > for definitions use \startMPdefinitions > > > > \startMPcode > > def suite (expr n, t) =3D > > begingroup > > numeric u; > > u :=3D 5mm; > > pickup pencircle scaled 5pt; > > for i=3D0 upto n: > > for j=3D0 upto n: > > drawdot (i*u,j*u) shifted(t*u,0) withcolor \MPcolor{darkred}; > > endfor > > endfor > > endgroup > > enddef; > > > > def Suite (expr n, t) =3D > > begingroup > > numeric u; > > u :=3D 5mm; > > pickup pencircle scaled 5pt; > > for i=3D0 upto n: > > drawdot(i*u,0) shifted(t*u,0) withcolor \MPcolor{blue}; > > endfor > > endgroup > > enddef; > > > > def cross (expr n, t) =3D > > begingroup > > numeric u; > > u :=3D 5mm; > > pickup pencircle scaled 5pt; > > for i=3D-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 > > _________________________________________________________________________= __________ > --000000000000317f2a0608502b7f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Thanks, it works perfectly.
Fabrice

<= div class=3D"gmail_quote">
Le=C2=A0sam= . 21 oct. 2023 =C3=A0=C2=A020:33, Hans Hagen <j.hagen@xs4all.nl> a =C3=A9crit=C2=A0:
On 10/21/2023 9:43 PM, Fabrice Cou= vreur 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 co= de, 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
>=C2=A0 =C2=A0 def suite (expr n, t) =3D
>=C2=A0 =C2=A0 begingroup
>=C2=A0 =C2=A0 =C2=A0numeric u;
>=C2=A0 =C2=A0 =C2=A0u :=3D 5mm;
>=C2=A0 =C2=A0 =C2=A0pickup pencircle scaled 5pt;
>=C2=A0 =C2=A0 =C2=A0for i=3D0 upto n:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0for j=3D0 upto n:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawdot (i*u,j*u) shifted(t*u,= 0) withcolor \MPcolor{darkred};
>=C2=A0 =C2=A0 =C2=A0 =C2=A0endfor
>=C2=A0 =C2=A0 =C2=A0endfor
>=C2=A0 =C2=A0 endgroup
>=C2=A0 =C2=A0 enddef;
>
>=C2=A0 =C2=A0 def Suite (expr n, t) =3D
>=C2=A0 =C2=A0 begingroup
>=C2=A0 =C2=A0 numeric u;
>=C2=A0 =C2=A0 u :=3D 5mm;
>=C2=A0 =C2=A0 pickup pencircle scaled 5pt;
>=C2=A0 =C2=A0 for i=3D0 upto n:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0drawdot(i*u,0) shifted(t*u,0) withcolor \MPc= olor{blue};
>=C2=A0 =C2=A0 endfor
>=C2=A0 =C2=A0 endgroup
>=C2=A0 =C2=A0 enddef;
>
>=C2=A0 =C2=A0 def cross (expr n, t) =3D
>=C2=A0 =C2=A0 begingroup
>=C2=A0 =C2=A0 numeric u;
>=C2=A0 =C2=A0 u :=3D 5mm;
>=C2=A0 =C2=A0 pickup pencircle scaled 5pt;
>=C2=A0 =C2=A0 for i=3D-n upto n:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0drawdot(0,i*u) shifted(t*u,0) withcolor \MPc= olor{blue};
>=C2=A0 =C2=A0 endfor
>=C2=A0 =C2=A0 endgroup
>=C2=A0 =C2=A0 enddef;
> \stopMPcode
> __________________________________________________________ %horizontal= line
>=C2=A0 =C2=A0 =C2=A0% big unwanted white space
>=C2=A0 =C2=A0 =C2=A0\starttext
>=C2=A0 =C2=A0 =C2=A0% \startex First exercise
> \startlinecorrection[blank]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \startmidaligned
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \startcombination[1*2]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {\startMPcode
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Suite(2,0);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cross(1,1);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Suite(4,4);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cross(2,6);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Suite(6,10); >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cross(3,13); >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopMPcode
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }{\tfx \bf Suite 1} >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{\startMPcode
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 suite(0,0);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 suite(1,2);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 suite(2,5);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopMPcode
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }{\tfx \bf Suite 2} >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopcombination
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stopmidaligned
>=C2=A0 =C2=A0 =C2=A0 =C2=A0\stoplinecorrection
>=C2=A0 =C2=A0 %\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=C2=A0 : https://www.pragma-ade.nl / https://context.aanhe= t.net (mirror)
> archive=C2=A0 : https://github.com/contextgarden/contex= t
> wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
> ______________________________________________________________________= _____________

--

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--000000000000317f2a0608502b7f-- --===============3917245719689349379== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============3917245719689349379==--