From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Large unwanted white space
Date: Sun, 22 Oct 2023 17:59:22 +0000 [thread overview]
Message-ID: <CACyK-er=LqUfMxXT7D2UC=ZT-2X2FWSPthe1xsp_fzYcmD=NeQ@mail.gmail.com> (raw)
In-Reply-To: <642b9358-2705-6c05-dc97-03874e596c0b@xs4all.nl>
[-- Attachment #1.1: Type: text/plain, Size: 3844 bytes --]
Hi,
Thanks, it works perfectly.
Fabrice
Le sam. 21 oct. 2023 à 20:33, Hans Hagen <j.hagen@xs4all.nl> a écrit :
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 6059 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2023-10-22 16:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-21 19:43 [NTG-context] " Fabrice Couvreur
2023-10-21 18:13 ` [NTG-context] " Henning Hraban Ramm
2023-10-21 20:32 ` Hans Hagen
2023-10-22 17:59 ` Fabrice Couvreur [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACyK-er=LqUfMxXT7D2UC=ZT-2X2FWSPthe1xsp_fzYcmD=NeQ@mail.gmail.com' \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).