From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108071 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Text around a figure Date: Thu, 16 Jul 2020 11:10:24 +0200 Message-ID: References: <77fba83e-ef07-acc0-dc6c-38d215cb6e80@gmail.com> <06CE0C5A-ACDA-411A-80C4-29B4B648C905@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2849786536337530239==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15241"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 16 11:12:21 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 1jvzwC-0003s9-Av for gctc-ntg-context-518@m.gmane-mx.org; Thu, 16 Jul 2020 11:12:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 65152185B38; Thu, 16 Jul 2020 11:12:09 +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 AIudJKuxdfog; Thu, 16 Jul 2020 11:12:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 76146185B32; Thu, 16 Jul 2020 11:12:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AC013185B19 for ; Thu, 16 Jul 2020 11:12:07 +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 edHkdvvBsgJQ for ; Thu, 16 Jul 2020 11:12:06 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 69C18185B31 for ; Thu, 16 Jul 2020 11:12:06 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id a6so6272956wrm.4 for ; Thu, 16 Jul 2020 02:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ewrKQF959xkyBTQG09PEzDLbXL+L7wCNpBfxeUa3SBo=; b=TRhXOvYGZOZ+xyaAkd54Xv8sNzxlPsKP8TRONWWehJuGZBrMuOSHzhRN+Nied0i8xU Of61PHi0CHANebr1dhfXTLShcLoKnuYw49zzxMqofV9GFTk7UUev91Y5pM5wnWJZBbDW Wr4S0jlYJgnC99dZra5b6V+DIIkSWG2O15ej8tpXCkpjk1Wz36OwU4n0FNWlrPxBWwFF DvuzU6ZeRSUf7ajVJ0afp1WPvc2tyqiN+rLFYlkJlpLkCcX/Mh2dTbqqBpSghIvmKG2q n9OLC8Y+9dXoEGAVH7gwYi0xWZUDLc1DPNRSP7j3oE7VPfVFVTbKVe7lebaWX6cYGHoz J0Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ewrKQF959xkyBTQG09PEzDLbXL+L7wCNpBfxeUa3SBo=; b=lJHdJe9ojBsnLUm5WjL1aDDEN2in+csLJp3VOgBK+QTvMYe9oDj5nAN3oyID/T/Eyv uCyfxrz0fEkoHwjddVHjlHQr4givO1gOCtvZR/28d4zwHwkH8Zz1/AdPjpZpuaLUctTu TlA0p/ZUztKzfMFlqrurH2GPrqld4e3TeQ/bqo0VBpwqsVfgBKjdaXUuL1RJqicFSANP vq3qaYIAq8AAQVlasBss3mGNNdmq62lZKxE+qTqqZMWcxG4KNr9cHfIJeVN4UwJeKUJG HqR+1xsdbIhUgs0wwLpzbGdDs8Z/hy3w823oXSBP05+xiufP2JQT9JRNMmBSAky4Jy/0 zA+Q== X-Gm-Message-State: AOAM530OodYkYss9cCL6bPTxWcnly2KKPFrFywMtc2EEraTT8zSzy7dq W9dlxa28h3AQGxiRwizgVUaCZPaETlPhiuh8l94tSURs X-Google-Smtp-Source: ABdhPJwCWBOHRu6GhgpHU+pa9E5OZk55MD6HiG+SYAyaBZPbGZDlMMfvLFB1KGdLVezWuhpk5LhdwyWf9xmeyWQMnLM= X-Received: by 2002:adf:dcd0:: with SMTP id x16mr3907475wrm.387.1594890725714; Thu, 16 Jul 2020 02:12:05 -0700 (PDT) In-Reply-To: <06CE0C5A-ACDA-411A-80C4-29B4B648C905@gmail.com> 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:108071 Archived-At: --===============2849786536337530239== Content-Type: multipart/alternative; boundary="000000000000296cf205aa8b6f2f" --000000000000296cf205aa8b6f2f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Otared and Wolfgang, Thanks for your help ; the result is almost what I want (the space between the text and the figure is not colored) but it is likely that we could not do better. Fabrice Le mer. 15 juil. 2020 =C3=A0 22:25, Otared Kavian a =C3= =A9crit : > Hi Fabrice, > > I think what Wolfgang suggests is something like the following: > > \useMPlibrary[dum] > \definecolor[fondpaille][c=3D0,m=3D0,y=3D0.2,k=3D0] > \definetextbackground[fondpaille] > [background=3Dcolor, > backgroundcolor=3Dfondpaille, > frame=3Doff, > location=3Dalways] > > \starttext > > \starttextbackground[fondpaille] > \startplacefigure[number=3Dno,location=3Dright] > \externalfigure[dummy] > \stopplacefigure > \startitemize[n] > \dorecurse{3}{\startitem \input ward \stopitem} > \stopitemize > \stoptextbackground > > \stoptext > > Best regards: Otared K. > > > On 15 Jul 2020, at 22:13, Wolfgang Schuster < > wolfgang.schuster.lists@gmail.com> wrote: > > > > Fabrice Couvreur schrieb am 15.07.2020 um 19:54: > >> Hello, > >> I always encounter difficulties with the placement of figures in such = a > way that the text envelops the figure. > >> Thank you. > >> Fabrice > >> \useMPlibrary[dum] > >> \definecolor[fondpaille][c=3D0,m=3D0,y=3D0.2,k=3D0] > >> \starttext > >> \startframedtext[width=3Dmax,background=3Dcolor,backgroundcolor=3Dfond= paille] > >> \placefloat[][right,none]{} > >> {\externalfigure[dummy]} > >> \startitemize[n] > >> \dorecurse{3}{\startitem \input ward \stopitem} > >> \stopitemize > >> \stopframedtext > >> \stoptext > > > > > > Side floats don't work in frames, use the textbackground environment to > add a colored box behind the text. > > > > Wolfgang > > > _________________________________________________________________________= __________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --000000000000296cf205aa8b6f2f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Otared and Wolfgang,
Thanks for your help ; the result is almost what I= want (the space between the text and the figure is not colored) but it is = likely that we could not do better.
Fabrice

Le=C2=A0mer. 15 juil. 2020 =C3=A0=C2=A022:25, Otared Kavian= <otared@gmail.com> a =C3=A9c= rit=C2=A0:
Hi Fa= brice,

I think what Wolfgang suggests is something like the following:

\useMPlibrary[dum]
\definecolor[fondpaille][c=3D0,m=3D0,y=3D0.2,k=3D0]
\definetextbackground[fondpaille]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [background=3Dcolor,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 backgroundcolor=3Dfondpaille,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 frame=3Doff,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 location=3Dalways]

\starttext

\starttextbackground[fondpaille]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \startplacefigure[number=3Dno,location=3Dright]=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \externalfigure[dum= my]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopplacefigure
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \startitemize[n]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \dorecurse{3}{\star= titem \input ward \stopitem}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopitemize
\stoptextbackground

\stoptext

Best regards: Otared K.

> On 15 Jul 2020, at 22:13, Wolfgang Schuster <wolfgang.schuster.lists@gm= ail.com> wrote:
>
> Fabrice Couvreur schrieb am 15.07.2020 um 19:54:
>> Hello,
>> I always encounter difficulties with the placement of figures in s= uch a way that the text envelops the figure.
>> Thank you.
>> Fabrice
>> \useMPlibrary[dum]
>> \definecolor[fondpaille][c=3D0,m=3D0,y=3D0.2,k=3D0]
>> \starttext
>> \startframedtext[width=3Dmax,background=3Dcolor,backgroundcolor=3D= fondpaille]
>>=C2=A0 =C2=A0 =C2=A0 \placefloat[][right,none]{}
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 {\externalfigure[dummy]}
>>=C2=A0 =C2=A0 =C2=A0 \startitemize[n]
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 \dorecurse{3}{\startitem \input ward \s= topitem}
>>=C2=A0 =C2=A0 =C2=A0 \stopitemize
>>=C2=A0 =C2=A0 \stopframedtext
>>=C2=A0 =C2=A0 \stoptext
>
>
> Side floats don't work in frames, use the textbackground environme= nt to add a colored box behind the text.
>
> Wolfgang
> ______________________________________________________________________= _____________
> If your question is of interest to others as well, please add an entry= to the Wiki!
>
> maillist : ntg= -context@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000296cf205aa8b6f2f-- --===============2849786536337530239== 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== --===============2849786536337530239==--