ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indentation after \placefigure
@ 2020-11-10  8:42 Sylvain Hubert
  2020-11-10  9:04 ` mf
  0 siblings, 1 reply; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-10  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 422 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 667 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indentation after \placefigure
  2020-11-10  8:42 Indentation after \placefigure Sylvain Hubert
@ 2020-11-10  9:04 ` mf
  2020-11-10  9:15   ` Sylvain Hubert
  2020-11-10 16:58   ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: mf @ 2020-11-10  9:04 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indentation after \placefigure
  2020-11-10  9:04 ` mf
@ 2020-11-10  9:15   ` Sylvain Hubert
  2020-11-10 16:58   ` Aditya Mahajan
  1 sibling, 0 replies; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-10  9:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 937 bytes --]

On Tue, 10 Nov 2020 at 10:05, mf <massifr@fastwebnet.it> 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

[-- Attachment #1.2: Type: text/html, Size: 1522 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indentation after \placefigure
  2020-11-10  9:04 ` mf
  2020-11-10  9:15   ` Sylvain Hubert
@ 2020-11-10 16:58   ` Aditya Mahajan
  2020-11-10 17:08     ` Sylvain Hubert
  1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2020-11-10 16:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indentation after \placefigure
  2020-11-10 16:58   ` Aditya Mahajan
@ 2020-11-10 17:08     ` Sylvain Hubert
  0 siblings, 0 replies; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-10 17:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1249 bytes --]

On Tue, 10 Nov 2020 at 18:05, Aditya Mahajan <adityam@umich.edu> 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

[-- Attachment #1.2: Type: text/html, Size: 1938 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-10 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10  8:42 Indentation after \placefigure Sylvain Hubert
2020-11-10  9:04 ` mf
2020-11-10  9:15   ` Sylvain Hubert
2020-11-10 16:58   ` Aditya Mahajan
2020-11-10 17:08     ` Sylvain Hubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).