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

2018-04-03 Thread Hans Hagen

On 4/3/2018 12:38 AM, Aditya Mahajan wrote:

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


the question is: do we accept an incompatibility when we do that


--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Strange behaviour of \start/stopplacefigure

2018-04-02 Thread Aditya Mahajan

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___
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] Strange behaviour of \start/stopplacefigure

2018-03-30 Thread Tomas Hala
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
___