Two misfeatures in placefigure
Hi, I found two misfeatures in placefigure. 1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter. 2) The paragraph after the figure is indented, even if it comes right after a \section. For example, \setupindenting[medium,yes] \setupfloats[indentnext=no] \starttext \chapter{This is a test} \section{Introduction} \placefigure[top][test] {Sample Figure}{} \input knuth \stoptext Notice that the figure is on the top of the page and the first paragraph of knuth is indented. I could not find any options to turn these features off. I think that (2) is hard to detect, and \noindent before the paragraph is a workaround, but I could not find any work-around for (1) other than moving the \placefigure invocation to somewhere later. Aditya
Aditya Mahajan wrote:
Hi,
I found two misfeatures in placefigure.
1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter.
2) The paragraph after the figure is indented, even if it comes right after a \section.
For moral support only: Yes, twice! Taco
Taco Hoekwater wrote:
Aditya Mahajan wrote:
Hi,
I found two misfeatures in placefigure.
1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter.
2) The paragraph after the figure is indented, even if it comes right after a \section.
For moral support only: Yes, twice!
two misfeatures are below my threshold -) one problem with figures is that one (tex) never really knows where they end up but when i have time i will look into it ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
2) The paragraph after the figure is indented, even if it comes right after a \section.
<wild speculation> Thinking about how I prevented such parindents in my plain TeX days, by using \ignorespaces\noindent in the definition of \section. If that's what ConTeXt does, perhaps the \placefigure code inserts a spurious space, which normally doesn't show up because it's inserted in vertical mode, but it is enough to confuse the \ignorespaces? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
On Wed, 25 Oct 2006, Hans Hagen wrote:
Taco Hoekwater wrote:
Aditya Mahajan wrote:
Hi,
I found two misfeatures in placefigure.
1) with \placefigure[top] the figure can float to the top of the page, even if the page starts a title or a chapter.
2) The paragraph after the figure is indented, even if it comes right after a \section.
For moral support only: Yes, twice!
two misfeatures are below my threshold -)
one problem with figures is that one (tex) never really knows where they end up but when i have time i will look into it
Is it possible to provide an option, say topofnextpage, which is just like top, but does not attempt to place the figure on the top current page? This way, as an author, I can ask tex not to place the figure on the top of current page. Aditya
On Tue, 24 Oct 2006, Aditya Mahajan wrote:
2) The paragraph after the figure is indented, even if it comes right after a \section.
Hello, this seems to be already in the bug-database: http://context.literatesolutions.com/collector/65 Cheers, Peter -- http://pmrb.free.fr/contact/
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Peter Münster
-
Sanjoy Mahajan
-
Taco Hoekwater