From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106885 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Text around an image Date: Thu, 16 Apr 2020 12:33:34 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5202119512961059954==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112160"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 16 12:34:08 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jP1qR-000T3o-Q7 for gctc-ntg-context-518@m.gmane-mx.org; Thu, 16 Apr 2020 12:34:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 594901823D0; Thu, 16 Apr 2020 12:33:57 +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 lYGaafyPKgEj; Thu, 16 Apr 2020 12:33:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7E408182364; Thu, 16 Apr 2020 12:33:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BE410182364 for ; Thu, 16 Apr 2020 12:33:55 +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 lD0d5QDyzdhh for ; Thu, 16 Apr 2020 12:33:55 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.52; helo=mail-wm1-f52.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2C243182362 for ; Thu, 16 Apr 2020 12:33:55 +0200 (CEST) Original-Received: by mail-wm1-f52.google.com with SMTP id x25so4050498wmc.0 for ; Thu, 16 Apr 2020 03:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ZNzt4aFNxchgvyI3eq9lCpEuJfEjw4CebGZeL32FNgw=; b=MrTVyYawG2VYOc8QB7FrI5R4FXSZnTjd6URgQLTI3HX0lo/opQaX5F6BbxaO3n6/p+ NBxql3cQYIscod8D5S6xV/ZDh/q8RAm6LC1cZi4TdrOvY3+LXjhJw9zIs5iPfHNDi28v kn2ddzFmobyNHRQZBEK9mb+DltQqK0PrbKUMvPNcKW2nFkzY9+CUgxH3vpMDnF+QMYOC 67k/EsZ+vTfly7GG38a4UsX8A4CogK3uMrdHvmrub+uTELRCGIIiO/TWmLmpqeKNj3YE mfMZ+qD1GqXngAuYjrJVIIppyxW7N850JPllidow2llYaCn/o+07eUAIb34dQ7BMPTNo 4ocA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZNzt4aFNxchgvyI3eq9lCpEuJfEjw4CebGZeL32FNgw=; b=X14QXfTgSbspOj/mi66UaAvlrXZtjJ6w8HKIumNM6IRrThk/oQ5NvoShSaMnWu+fUX Czuio4bh/WIiHbLofpgmerCSGyw73N0yn1nS7FUZi0qZn1MSqaOOg/wuDlcFb1qiNEpG qR/59//+k7CfSeVFlpP/Q7EzNwwawXV+NcrvsvUqBzRytmfp5aOwTUnMlNQ19wwTox84 srXCeGEHf3cbGtbeGbETz7TNcw3b2q7AXsci3UO4BCrsELuhqbUY47LPH0LB4gDdrAwK KG1nETQJATcLXVX24Wc/MeWd0BiLS4em6iGU+A5XcwJCwrZAl08Etk2SSNdTQalF9fLS ipTg== X-Gm-Message-State: AGi0PuZGXHYUaMMNORgibVIBTzOLBEmU+B5DEJnNAXQ1rgWAYxmqqcPp IjQ7jsa6WwoVmaMYT7j592m5uA3xxTkExi3TlrBBYudx X-Google-Smtp-Source: APiQypJWu3sRR3IUPm7kpn6tfIbohoUW3HNv8319Tf+pPcitAxqMOWPkmNzhTKR36oVHf8OUnHQ2M1JnD3d/cTb7h3Y= X-Received: by 2002:a1c:e906:: with SMTP id q6mr4082216wmc.62.1587033234519; Thu, 16 Apr 2020 03:33:54 -0700 (PDT) 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.io gmane.comp.tex.context:106885 Archived-At: --===============5202119512961059954== Content-Type: multipart/alternative; boundary="00000000000030ba6d05a365f88c" --00000000000030ba6d05a365f88c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I know that this question has been raised several times (especially by me !), but the solutions provided sometimes work and sometimes not, especially in this example. Thanks for your help. Fabrice \useMPlibrary [dum] \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=3Dblack, style=3Dbold, distance=3D\zeropoint] \setupitemgroup [itemize:1] [option=3D{n,packed,fit,intext}, command=3D\ItemCommand] \setupitemgroup [itemize:2] [lefttext=3D, righttext=3D, option=3D{a,text}] \starttext \startitemize \startitem Justifier que \m{x>4} et \m{y>2}. \stopitem \placefigure[right,none]{}{\externalfigure [dummy]} \startitem Pour calculer la valeur de \m{y} en fonction de \m{x}, l'urbaniste a =C3=A9crit la fonction en Python. \startitemize \startitem Son algorithme est-il correct ? \stopitem\par \startitem Programmer une fonction \m{A(x)} qui renvoie l'aire totale du terrain en fonction de la longueur \m{x}. \stopitem \stopitemize \stopitem \startitem On consid=C3=A8re la fonction suivante. \startitemize \startitem Qu'affiche l'instruction ? \stopitem\par \startitem Interpr=C3=A9ter les r=C3=A9sultats renvoy=C3=A9s. \stopitem \stopitemize \stopitem \stopitemize \stoptext --00000000000030ba6d05a365f88c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I know that this qu= estion has been raised several times (especially by me !), but the solution= s provided sometimes work and sometimes not, especially in this example.
Thanks for your help.
F= abrice

=C2=A0 \useMP= library [dum]

=C2=A0 =C2=A0\define\ItemCommand
=C2=A0 =C2=A0{\hsk= ip\zeropoint\relax\autoinsertnextspace}

=C2=A0 \setupitemgroup
= =C2=A0 =C2=A0 [itemize]
=C2=A0 =C2=A0 [color=3Dblack,
=C2=A0 =C2=A0 = =C2=A0style=3Dbold,
=C2=A0 =C2=A0 =C2=A0distance=3D\zeropoint]

= =C2=A0 \setupitemgroup
=C2=A0 =C2=A0 [itemize:1]
=C2=A0 =C2=A0 [optio= n=3D{n,packed,fit,intext},
=C2=A0 =C2=A0 command=3D\ItemCommand]

= =C2=A0 \setupitemgroup
=C2=A0 =C2=A0 [itemize:2]
=C2=A0 =C2=A0 [leftt= ext=3D,
=C2=A0 =C2=A0 righttext=3D,
=C2=A0 =C2=A0 option=3D{a,text}]<= br>
=C2=A0 \starttext

=C2=A0 =C2=A0 \startitemize
=C2=A0 =C2= =A0 =C2=A0 \startitem
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Justifier que \m{x>= 4} et \m{y>2}.
=C2=A0 =C2=A0 =C2=A0 \stopitem
=C2=A0 =C2=A0 =C2=A0= \placefigure[right,none]{}{\externalfigure [dummy]}
=C2=A0 =C2=A0 =C2= =A0 \startitem
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Pour calculer la valeur de \m= {y} en fonction de \m{x}, l'urbaniste a =C3=A9crit la fonction en Pytho= n.
=C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \startite= mize
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \startitem
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Son algorithme est-il correct ?
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 \stopitem\par
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \s= tartitem
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Programmer une foncti= on \m{A(x)} qui renvoie l'aire totale du terrain en fonction de la long= ueur \m{x}.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopitem
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 \stopitemize
=C2=A0 =C2=A0 =C2=A0 \stopitem
=C2=A0 = =C2=A0 =C2=A0 \startitem
=C2=A0 =C2=A0 =C2=A0 =C2=A0 On consid=C3=A8re l= a fonction suivante.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 \startitemize
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \startitem
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 Qu'affiche l'instruction ?
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 \stopitem\par
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \star= titem
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Interpr=C3=A9ter les r= =C3=A9sultats renvoy=C3=A9s.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopite= m
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopitemize
=C2=A0 =C2=A0 =C2=A0 \stop= item
=C2=A0 =C2=A0 \stopitemize
=C2=A0 \stoptext
<= /div> --00000000000030ba6d05a365f88c-- --===============5202119512961059954== 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== --===============5202119512961059954==--