ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two misfeatures in placefigure
@ 2006-10-25  1:38 Aditya Mahajan
  2006-10-25  9:20 ` Taco Hoekwater
  2006-10-25 19:11 ` Peter Münster
  0 siblings, 2 replies; 6+ messages in thread
From: Aditya Mahajan @ 2006-10-25  1:38 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Two misfeatures in placefigure
  2006-10-25  1:38 Two misfeatures in placefigure Aditya Mahajan
@ 2006-10-25  9:20 ` Taco Hoekwater
  2006-10-25 12:10   ` Hans Hagen
  2006-10-25 19:11 ` Peter Münster
  1 sibling, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2006-10-25  9:20 UTC (permalink / raw)




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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Two misfeatures in placefigure
  2006-10-25  9:20 ` Taco Hoekwater
@ 2006-10-25 12:10   ` Hans Hagen
  2006-10-25 12:57     ` Sanjoy Mahajan
  2006-10-25 14:00     ` Aditya Mahajan
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2006-10-25 12:10 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Two misfeatures in placefigure
  2006-10-25 12:10   ` Hans Hagen
@ 2006-10-25 12:57     ` Sanjoy Mahajan
  2006-10-25 14:00     ` Aditya Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Sanjoy Mahajan @ 2006-10-25 12:57 UTC (permalink / raw)


> >> 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?

</wild speculation>

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Two misfeatures in placefigure
  2006-10-25 12:10   ` Hans Hagen
  2006-10-25 12:57     ` Sanjoy Mahajan
@ 2006-10-25 14:00     ` Aditya Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2006-10-25 14:00 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Two misfeatures in placefigure
  2006-10-25  1:38 Two misfeatures in placefigure Aditya Mahajan
  2006-10-25  9:20 ` Taco Hoekwater
@ 2006-10-25 19:11 ` Peter Münster
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Münster @ 2006-10-25 19:11 UTC (permalink / raw)


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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-25 19:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-25  1:38 Two misfeatures in placefigure Aditya Mahajan
2006-10-25  9:20 ` Taco Hoekwater
2006-10-25 12:10   ` Hans Hagen
2006-10-25 12:57     ` Sanjoy Mahajan
2006-10-25 14:00     ` Aditya Mahajan
2006-10-25 19:11 ` Peter Münster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).