Tomas Hala
30. März 2018 um 19:01
Hi,

in the example below I came across the very strange behaviour of key
location: if I use values none or top, the following paragraph is indented
according to the settings whereas if I use the value bottom,
the first line of the following paragraph starts just on the left,
without any indentation.

What am I doing wrong?

Thanks for a help,

Tomáš

%%%%%%%%%%%%%%%%%%%%%% TL2017

\starttext
\indenting[yes,2em,first]
\setupfloat[indentnext=yes]

1none. \input knuth

\startplacefigure[location={none,}]
\setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure

1top. \input knuth

\startplacefigure[location={top,none,}]
\setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure

1bottom. \input knuth

\startplacefigure[location={bottom,none,}]
\setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure

1end. \input knuth !!! NOT INDENTED

\stoptext

%%%%%%%%%%%%%%%%%%%%%%
___________________________________________________________________________________
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
___________________________________________________________________________________
Hans Hagen
2. April 2018 um 15:41

That key only is for regular (here) floats

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}


Wolfgang