[NTG-context] Strange behaviour of \start/stopplacefigure

Aditya Mahajan adityam at umich.edu
Tue Apr 3 00:38:15 CEST 2018


On Mon, 2 Apr 2018, Wolfgang Schuster wrote:

> The problem is that float with the “bottom” or “auto” positions don’t 
> indent the paragraph
> which appears after the float while “top” does it.
>
>
> %%%% begin example
> \setupindenting[yes,6cm]
> \setupfloat[figure][indentnext=yes]
>
> \starttext
>
> \setupbodyfont[modern]
>
> {\bf NONE:} \input lorem
>
> \placefigure[here]{HERE}{\blackrule[width=6cm,height=2cm]}
>
> {\bf HERE:} \input lorem
>
> \placefigure[top]{TOP}{\blackrule[width=6cm,height=2cm]}
>
> {\bf TOP:} \input lorem
>
> \placefigure[bottom]{BOTTOM}{\blackrule[width=6cm,height=2cm]}
>
> {\bf BOTTOM:} \input lorem
>
> \placefigure[auto]{AUTO}{\blackrule[width=6cm,height=2cm]}
>
> {\bf AUTO:} \input lorem
>
> \stoptext
> %%%% end example
>
>
> The reason for this are these line in page-one.mkiv:
>
> \def\page_one_place_float_auto       {\page_one_place_float_otherwise}
> \def\page_one_place_float_top 
> {\page_one_place_float_otherwise\nonoindentation}
> \def\page_one_place_float_bottom     {\page_one_place_float_otherwise}

Older discussion on the same topic:

https://www.mail-archive.com/ntg-context@ntg.nl/msg83098.html

Aditya


More information about the ntg-context mailing list