Strange behaviour of \dorechecknextindentation inside float
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
Hi, Right now, indentnext key is ignored for floats. I was trying to test how to do it, but something strange is happening. I thought that the following two are equivalent: \def\sometopfloat [#1]{\someelsefloat[#1]} \placefigure[top]{top}{} \nonoindentation\autoindentation\dorechecknextindentation and \def\sometopfloat[#1]% {\someelsefloat[#1]% \nonoindentation\autoindentation\dorechecknextindentation} \placefigure[top]{top}{} The first one works fine, but the second does not. Can anyone explain what is going on here. Here is my test example: \setupindenting[big,yes] \def\sometopfloat [#1]{\someelsefloat[#1]} % This works \section {Test} \placefigure[top]{top}{}\noindentation \input tufte \placefigure[top]{top}{}\doindentation \input tufte \page % This also works \section {Test} \placefigure[top]{top}{} \nonoindentation\autoindentation\dorechecknextindentation \input tufte \placefigure[top]{top}{} \nonoindentation\autoindentation\dorechecknextindentation \input tufte \page % This does not work (why)? \def\sometopfloat[#1]% {\someelsefloat[#1]% \nonoindentation\autoindentation\dorechecknextindentation} \section {Test} \placefigure[top]{top}{} \input tufte \placefigure[top]{top}{} \input tufte \stoptext Thanks, Aditya
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Fri, 2 Mar 2007, Aditya Mahajan wrote:
Hi,
Right now, indentnext key is ignored for floats. I was trying to test how to do it, but something strange is happening. I thought that the following two are equivalent:
\def\sometopfloat [#1]{\someelsefloat[#1]}
\placefigure[top]{top}{} \nonoindentation\autoindentation\dorechecknextindentation
and
\def\sometopfloat[#1]% {\someelsefloat[#1]% \nonoindentation\autoindentation\dorechecknextindentation}
\placefigure[top]{top}{}
The first one works fine, but the second does not. Can anyone explain what is going on here. Here is my test example:
I finally managed to figure out what is wrong. The \nonoindentation...\doreckecknextindentation should be the last line in the defintion of dodocomplexplacefloat. I will post the details of my feature request on dev-context list after doing some testing. Aditya
participants (1)
-
Aditya Mahajan