From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104080 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Text around a figure Date: Wed, 24 Apr 2019 19:50:17 +0200 Message-ID: <66ffe4ba-beb6-c0bd-db6c-32d26a06c59f@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1236210909500185552==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237556"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.15 To: mailing list for ConTeXt users , Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 24 19:54:59 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hJM6l-000zct-NP for gctc-ntg-context-518@m.gmane.org; Wed, 24 Apr 2019 19:54:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8D81B12D93B; Wed, 24 Apr 2019 19:50:18 +0200 (CEST) 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 mQ3WDAzIRShp; Wed, 24 Apr 2019 19:50:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BD45812D945; Wed, 24 Apr 2019 19:50:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AC47B12D943 for ; Wed, 24 Apr 2019 19:50:16 +0200 (CEST) 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 LDQjRKO5OlaZ for ; Wed, 24 Apr 2019 19:50:16 +0200 (CEST) Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0D40B12D93B for ; Wed, 24 Apr 2019 19:50:16 +0200 (CEST) Original-Received: by mail-wr1-f48.google.com with SMTP id a9so8780911wrp.6 for ; Wed, 24 Apr 2019 10:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=IcW5/lOvAMEXtDf0EwsAAAYv0FemnmUfbHhp8f4XYdQ=; b=l3vBRFcBpIv1luQjvuza3py1Ct7dS7B+9pYf4Pz3zlqUCg4mOVEt2EwmyD0HnubHi3 qc75xxzLhk1ADCzr76v0ZHwkP9cAJadH+bck6og3Q+KtkuhqW/HnvOJCMREzCo5SHSXx EynNhczirmP9WWEbZOhtcQeCR665vmDzaMVkrKFlQ5v28JAadePga3yJbzVxcgmYCQTJ TKe1B1epbJXJVESzPWHPb1RiLOXGdNDenj6rc5Ew9Hlcknjfma5DZpVsOOh5Z+Ai23Ma NZxctHHgUF7lgx3OJ9FoY/bndRgtrZt9hKcXhu7IsNitz4vm5uKcWYdq0FAxnv1JxHdK TP4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=IcW5/lOvAMEXtDf0EwsAAAYv0FemnmUfbHhp8f4XYdQ=; b=B43oh3fCj1QC/A17BwMwu4YrTmsPVSfgMe9qcPeXd2SGU33q+hGRXFuOoOLyjyjHo4 qPLHXDkp2QnuhTbdjRRV80zHOhslHIEnSm1OOYNdgOh3HdG9cisjMh0JBeJ9nJFX8EdR OriIke6qR6CsxLp1sdJIHbQv2fz4swkO488TIIIxnRBXIm6k1gZZmJwNTeiKA1zdfwNH 0XLkxWBj5kcTpwKW2zUYY1nNQoyZE0Wx4N9DtX9lKsKlf4chVuaJ9xbPUoBoT88vi0oS Q9HOaDQZeidKVdPB2747nFAJxc4Py+oKpvUWrXP8N6GSm5F9mERoquyX0xJ4YJMsQ0Z8 5frw== X-Gm-Message-State: APjAAAVC4j62/6WIZFh7cHP8rmqy5OgbFr0GFFT+b8bH5/nkDoiZWEw/ l8kZpNTkhqp/T2H73n57eE0= X-Google-Smtp-Source: APXvYqzgwJ90W+0orzBG1MiWJs5UEiI9eCuIzqeWvzV+ctb8b//pW20URey/QfuytSEMq269dTGOmg== X-Received: by 2002:adf:fc09:: with SMTP id i9mr4079821wrr.261.1556128215785; Wed, 24 Apr 2019 10:50:15 -0700 (PDT) Original-Received: from [192.168.1.16] (x5f764130.dyn.telefonica.de. [95.118.65.48]) by smtp.gmail.com with ESMTPSA id u17sm14009105wmj.1.2019.04.24.10.50.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 10:50:14 -0700 (PDT) In-Reply-To: Content-Language: en-US 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.org gmane.comp.tex.context:104080 Archived-At: This is a multi-part message in MIME format. --===============1236210909500185552== Content-Type: multipart/alternative; boundary="------------3815FC3482885BDDC68A5DA4" Content-Language: en-US This is a multi-part message in MIME format. --------------3815FC3482885BDDC68A5DA4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Fabrice Couvreur schrieb am 24.04.2019 um 19:44: > Hi, > Why does bold text touch the figure ? > Thank you. > Fabrice > > > \definefloat >    [recipe] >    [figure] > > \setupfloat > [recipe] >    [default={right,none}] > > > \starttext > > \placerecipe{}{ >       \setupbodyfont[8pt,pagella] > \startMPcode > >         path p, q ; >         p:= unitsquare xyscaled (1.5cm,1.5cm) ; >         q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0); > >         draw p withpen pencircle scaled 1pt ; >         draw q withpen pencircle scaled 1pt ; > >         label.llft("$A$", p) ; >         label.lrt("$M$", p) ; > label.ulft("$P$", p) ; >         label.urt("$N$", p) ; > label.lrt("$B$", q) ; >         label.urt("$Q$", q) ; > label.ulft("$R$", q) ; > >       \stopMPcode >     } >  Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4. > > \m{M} est un point mobile sur le segment \m{[AB]} . > >     \m{AMNP} et \m{MBQR} sont deux carrés. > >     On note \m{x} la distance \m{AM}. >     \blank >       {\bf On cherche les positions de \m{M} telles que la surface > constituée par les deux carrés soit supérieure à 10.} I guess this should work (untested). \dontleavehmode{\bf ...} Wolfgang --------------3815FC3482885BDDC68A5DA4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Fabrice Couvreur schrieb am 24.04.2019 um 19:44:
Hi,
Why does bold text touch the figure ?
Thank you.
Fabrice


\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]


\starttext
 
  \placerecipe{}{
      \setupbodyfont[8pt,pagella]
      \startMPcode
       
        path p, q ;
        p:= unitsquare xyscaled (1.5cm,1.5cm) ;
        q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0);
       
        draw p withpen pencircle scaled 1pt ;
        draw q withpen pencircle scaled 1pt ;
       
        label.llft("$A$", p) ;
        label.lrt("$M$", p) ;
        label.ulft("$P$", p) ;
        label.urt("$N$", p) ;
        label.lrt("$B$", q) ;
        label.urt("$Q$", q) ;
        label.ulft("$R$", q) ;
       
      \stopMPcode
    }
 Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4.

    \m{M} est un point mobile sur le segment \m{[AB]} .

    \m{AMNP} et \m{MBQR} sont deux carrés.

    On note \m{x} la distance \m{AM}.
    \blank
      {\bf On cherche les positions de \m{M} telles que la surface constituée par les deux carrés soit supérieure à 10.}


I guess this should work (untested).

\dontleavehmode{\bf ...}

Wolfgang

--------------3815FC3482885BDDC68A5DA4-- --===============1236210909500185552== 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== --===============1236210909500185552==--