Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
Hi Otared and Wolfgang, It's great, the following code does the job! Thank you so much. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \setupfloats[freeregion=no] \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, fram

Re: [NTG-context] Text around a figure

2020-07-16 Thread Wolfgang Schuster
Otared Kavian schrieb am 16.07.2020 um 11:58: Hi Fabrice, Maybe you can play with different settings of your textbackground, as in \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=paragraph, % or: text, always,

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
Hi Fabrice, Maybe you can play with different settings of your textbackground, as in \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=paragraph, % or: text, always, paragraph backgroundoffset=4pt] % change

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
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 à 22:25, Otared Kavian a écrit : > Hi Fabrice, > > I think what Wolfgang suggests

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
Hi Fabrice, I think what Wolfgang suggests is something like the following: \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=always] \starttext \sta

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
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=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,backg

Re: [NTG-context] Text around a figure

2019-04-24 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 24.04.2019 um 19:51: Hi Wolfgang, Thank you t works but why should you add this command ? ConTeXt has to update the number of remaining lines for side floats at the begin each each paragraph but when you start a paragraph in a group, e.g. {\bf ...} to information is

Re: [NTG-context] Text around a figure

2019-04-24 Thread Wolfgang Schuster
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 ;

Re: [NTG-context] Text around a figure

2017-04-15 Thread Fabrice Couvreur
Hi Rik, Thank you, I did not follow the forum this week, I should have seen it. Fabrice 2017-04-14 18:44 GMT+02:00 Rik Kabel : > On 2017-04-14 10:36, Fabrice Couvreur wrote: > > Is it possible that the first line of text starts at the top of the figure? > > Blablablablablablablablablablablabla >

Re: [NTG-context] Text around a figure

2017-04-14 Thread Rik Kabel
On 2017-04-14 10:36, Fabrice Couvreur wrote: Is it possible that the first line of text starts at the top of the figure? Blablablablablablablablablablablabla ## blablablablablablablabla Fig blablablablablablablabla ## blablablablablablablabla \starttext \placefigure [left,none]

Re: [NTG-context] Text around a figure in a framedtext

2015-08-14 Thread Fabrice Couvreur
Hi Rik, I actually read that Wolfgang had written, but there is some confusion for me. Indeed, my environment uses a frame and Wolfgang said to be used \ starthanging ... \stophanging rather than \placefigure. But my text contains a blank line which is to create a new paragraph and so I should use

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Rik Kabel
On 2015-08-13 11:19, Fabrice Couvreur wrote: Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure. Why ? Fabrice \setupcolors [state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
Hi, Well, I think I have solved the problem : it is because of the blank line. Why ? Fabrice 2015-08-13 17:19 GMT+02:00 Fabrice Couvreur : > Hi, > Sorry to revive this discussion (which I initiated), but the text in the > following code does not wrapped around the figure. > Why ? > Fabrice > > >

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure. Why ? Fabrice \setupcolors [state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyTe

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Jeong Dal
Dear Otared and Wolfgang, It works fine after replacing the text itself. Thank you for the info. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maill

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Fabrice Couvreur
Hi Wolfgang, Thank you for all these explanations that make me progress in the use of Context. Fabrice 2015-08-08 10:40 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 8. August 2015 00:49 > Hi, > Why the text does not move in the first framedtext like the second > framedtext ? > > You have t

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Wolfgang Schuster
Jeong Dal 8. August 2015 15:49 Dear Wolfgang, Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{ \startfiguretext[right

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Otared Kavian
Hi Jeong, You are right, but probably this is due to the way the source file knuth.tex is encoded: if you replace \input knuth by the text itself, that is by the following Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large-

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Jeong Dal
Dear Wolfgang, > You have to use \starthanging instead of \placefgure when you’re in a frame. > > \starttext > > \startframedtext[width=max] > \starthanging[location=right] > {\startMPcode > draw unitsquare scaled 2cm ; > \stopMPcode} > \input tufte > \stoph

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Wolfgang Schuster
Fabrice Couvreur 8. August 2015 00:49 Hi, Why the text does not move in the first framedtext like the second framedtext? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[lo

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Fabrice Couvreur
Hi Otared, A small mistake on your part : do not write \input knuth.tex but \input knuth. Then I want the text in the first framedtext wrapped around the figure as in the second. Fabrice 2015-08-08 6:18 GMT+02:00 Otared Kavian : > Hi, > > You should use the same width if you want to obtain the sa

Re: [NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Otared Kavian
Hi, You should use the same width if you want to obtain the same result (by the way, you have to say also \stopframedtext in your source file): \startframedtext[width=\textwidth]{ \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth.tex } \stopfra