Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 18:05, Aditya Mahajan  wrote:

> On Tue, 10 Nov 2020, mf wrote:
>
> > Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > > Dear List,
> > >
> > > Does anyone know how to indent the paragraph beneath \placefigure in
> the
> > > following example?
> > >
> > >  \indenting[2em]
> > >  \setupindenting[yes]
> > >
> > >  \starttext
> > >
> > >  \dorecurse{50}{a b c }
> > >
> > >  \placefigure[here,none][indentnext=yes]{}{
> > >  \startMPcode
> > >  draw fullcircle scaled 1cm;
> > >  \stopMPcode
> > >  }
> > >
> > >  \dorecurse{50}{d e f } % not indented
> > >
> > >  \dorecurse{50}{g h i }
> > >  \stoptext
> > >
> >
> > The second bracket group of \placefigure is for references.
> > Instead of
> >
> > \placefigure[here,none][indentnext=yes]{}{...
> >
> > write
> >
> > \setupfloat[figure][indentnext=yes]
> > \placefigure[here,none]{}{...
> >
> > That way you enable indentation after every figure.
>
> If you want to change the behavior for a particular figure, you can also
> use the \start...stop variant:
>
> \startplacefigure[location={here,none}, indentnext=yes]
>
> \stopplacefigure
>

Thanks for the information, Aditya!

Sylvain
___
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
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, mf wrote:

> Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > Dear List,
> > 
> > Does anyone know how to indent the paragraph beneath \placefigure in the 
> > following example?
> > 
> >      \indenting[2em]
> >      \setupindenting[yes]
> > 
> >      \starttext
> > 
> >      \dorecurse{50}{a b c }
> > 
> >      \placefigure[here,none][indentnext=yes]{}{
> >      \startMPcode
> >      draw fullcircle scaled 1cm;
> >      \stopMPcode
> >      }
> > 
> >      \dorecurse{50}{d e f } % not indented
> > 
> >      \dorecurse{50}{g h i }
> >      \stoptext
> > 
> 
> The second bracket group of \placefigure is for references.
> Instead of
> 
> \placefigure[here,none][indentnext=yes]{}{...
> 
> write
> 
> \setupfloat[figure][indentnext=yes]
> \placefigure[here,none]{}{...
> 
> That way you enable indentation after every figure.

If you want to change the behavior for a particular figure, you can also use 
the \start...stop variant:

\startplacefigure[location={here,none}, indentnext=yes]
   
\stopplacefigure

Aditya___
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
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 10:05, mf  wrote:

> Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > Dear List,
> >
> > Does anyone know how to indent the paragraph beneath \placefigure in the
> > following example?
> >
> >  \indenting[2em]
> >  \setupindenting[yes]
> >
> >  \starttext
> >
> >  \dorecurse{50}{a b c }
> >
> >  \placefigure[here,none][indentnext=yes]{}{
> >  \startMPcode
> >  draw fullcircle scaled 1cm;
> >  \stopMPcode
> >  }
> >
> >  \dorecurse{50}{d e f } % not indented
> >
> >  \dorecurse{50}{g h i }
> >  \stoptext
> >
>
> The second bracket group of \placefigure is for references.
> Instead of
>
> \placefigure[here,none][indentnext=yes]{}{...
>
> write
>
> \setupfloat[figure][indentnext=yes]
> \placefigure[here,none]{}{...
>
> That way you enable indentation after every figure.
>
> Massi
>

Hi Massi,

It works! Thanks for the help!

Sylvain
___
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
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread mf

Il 10/11/20 09:42, Sylvain Hubert ha scritto:

Dear List,

Does anyone know how to indent the paragraph beneath \placefigure in the 
following example?


     \indenting[2em]
     \setupindenting[yes]

     \starttext

     \dorecurse{50}{a b c }

     \placefigure[here,none][indentnext=yes]{}{
     \startMPcode
     draw fullcircle scaled 1cm;
     \stopMPcode
     }

     \dorecurse{50}{d e f } % not indented

     \dorecurse{50}{g h i }
     \stoptext



The second bracket group of \placefigure is for references.
Instead of

\placefigure[here,none][indentnext=yes]{}{...

write

\setupfloat[figure][indentnext=yes]
\placefigure[here,none]{}{...

That way you enable indentation after every figure.

Massi
___
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
___


[NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
Dear List,

Does anyone know how to indent the paragraph beneath \placefigure in the
following example?

\indenting[2em]
\setupindenting[yes]

\starttext

\dorecurse{50}{a b c }

\placefigure[here,none][indentnext=yes]{}{
\startMPcode
draw fullcircle scaled 1cm;
\stopMPcode
}

\dorecurse{50}{d e f } % not indented

\dorecurse{50}{g h i }
\stoptext

Thanks!

Best,
Sylvain
___
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
___