* Process remaining floats
@ 2011-07-18 22:23 Aditya Mahajan
2011-07-18 23:40 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-07-18 22:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
Is there a command that will flush all unprocessed floats. For example,
consider the following:
%--------
text 1
\placefigure[fig:1]{...}{...}
\FLUSHALLFLOATS
text 2
%-----------
I don't want text 2 to be placed unless fig:1 has been processed (even if
it means an under filled page).
Thanks,
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Process remaining floats
2011-07-18 22:23 Process remaining floats Aditya Mahajan
@ 2011-07-18 23:40 ` Hans Hagen
2011-07-19 1:50 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2011-07-18 23:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 19-7-2011 12:23, Aditya Mahajan wrote:
> Hi,
>
> Is there a command that will flush all unprocessed floats. For example,
> consider the following:
>
> %--------
>
> text 1
>
> \placefigure[fig:1]{...}{...}
>
> \FLUSHALLFLOATS
>
> text 2
>
> %-----------
>
> I don't want text 2 to be placed unless fig:1 has been processed (even
> if it means an under filled page).
[always,here]
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Process remaining floats
2011-07-18 23:40 ` Hans Hagen
@ 2011-07-19 1:50 ` Aditya Mahajan
2011-07-19 2:00 ` Glen Callaghan
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-07-19 1:50 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
On Tue, 19 Jul 2011, Hans Hagen wrote:
> On 19-7-2011 12:23, Aditya Mahajan wrote:
>> Hi,
>>
>> Is there a command that will flush all unprocessed floats. For example,
>> consider the following:
>>
>> %--------
>>
>> text 1
>>
>> \placefigure[fig:1]{...}{...}
>>
>> \FLUSHALLFLOATS
>>
>> text 2
>>
>> %-----------
>>
>> I don't want text 2 to be placed unless fig:1 has been processed (even
>> if it means an under filled page).
>
> [always,here]
Does not work as expected:
\starttext
\placefigure[here,nonumber]{The first fig}{\externalfigure[cow]}
\input tufte
\input ward
\placefigure[here,nonumber]{The second fig}{\externalfigure[cow]}
\placefigure[here,always,nonumber]{Another fig}{\externalfigure[mill]}
\input knuth
\stoptext
The mill is placed on the bottom of page 1, while the second cow is placed
on the top of page 2; so the figure order is reversed.
But more importantly, I don't want this "float barrier" to be a float
itself. I want it to be the end of a section so that all floats in a
section do not float to another section.
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Process remaining floats
2011-07-19 1:50 ` Aditya Mahajan
@ 2011-07-19 2:00 ` Glen Callaghan
2011-07-19 2:20 ` Aditya Mahajan
2011-08-08 17:47 ` Aditya Mahajan
0 siblings, 2 replies; 7+ messages in thread
From: Glen Callaghan @ 2011-07-19 2:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
I use \doflushfloats
Glen
On 19/07/2011, at 11:50 AM, Aditya Mahajan wrote:
> On Tue, 19 Jul 2011, Hans Hagen wrote:
>
>> On 19-7-2011 12:23, Aditya Mahajan wrote:
>>> Hi,
>>> Is there a command that will flush all unprocessed floats. For example,
>>> consider the following:
>>> %--------
>>> text 1
>>> \placefigure[fig:1]{...}{...}
>>> \FLUSHALLFLOATS
>>> text 2
>>> %-----------
>>> I don't want text 2 to be placed unless fig:1 has been processed (even
>>> if it means an under filled page).
>>
>> [always,here]
>
> Does not work as expected:
>
> \starttext
> \placefigure[here,nonumber]{The first fig}{\externalfigure[cow]}
> \input tufte
>
> \input ward
>
> \placefigure[here,nonumber]{The second fig}{\externalfigure[cow]}
> \placefigure[here,always,nonumber]{Another fig}{\externalfigure[mill]}
> \input knuth
>
> \stoptext
>
> The mill is placed on the bottom of page 1, while the second cow is placed on the top of page 2; so the figure order is reversed.
>
> But more importantly, I don't want this "float barrier" to be a float itself. I want it to be the end of a section so that all floats in a section do not float to another section.
>
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Process remaining floats
2011-07-19 2:00 ` Glen Callaghan
@ 2011-07-19 2:20 ` Aditya Mahajan
2011-08-08 17:47 ` Aditya Mahajan
1 sibling, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2011-07-19 2:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 19 Jul 2011, Glen Callaghan wrote:
> I use \doflushfloats
Thanks. This works perfectly!
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Process remaining floats
2011-07-19 2:00 ` Glen Callaghan
2011-07-19 2:20 ` Aditya Mahajan
@ 2011-08-08 17:47 ` Aditya Mahajan
2011-08-22 5:10 ` Glen Callaghan
1 sibling, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-08-08 17:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 19 Jul 2011, Glen Callaghan wrote:
>
> On 19/07/2011, at 11:50 AM, Aditya Mahajan wrote:
>>
>> Is there a command that will flush all unprocessed floats.
>>
> I use \doflushfloats
Both MkII and MkIV define \placefloats to be same as \doflushfloats. I
think that, as a user command, \placefloats is easier to remember.
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Process remaining floats
2011-08-08 17:47 ` Aditya Mahajan
@ 2011-08-22 5:10 ` Glen Callaghan
0 siblings, 0 replies; 7+ messages in thread
From: Glen Callaghan @ 2011-08-22 5:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
Yes, that's much nicer… thanks :-)
On 09/08/2011, at 3:47 AM, Aditya Mahajan wrote:
> On Tue, 19 Jul 2011, Glen Callaghan wrote:
>>
>> On 19/07/2011, at 11:50 AM, Aditya Mahajan wrote:
>>>
>>> Is there a command that will flush all unprocessed floats.
>>>
>> I use \doflushfloats
>
> Both MkII and MkIV define \placefloats to be same as \doflushfloats. I think that, as a user command, \placefloats is easier to remember.
>
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-08-22 5:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-18 22:23 Process remaining floats Aditya Mahajan
2011-07-18 23:40 ` Hans Hagen
2011-07-19 1:50 ` Aditya Mahajan
2011-07-19 2:00 ` Glen Callaghan
2011-07-19 2:20 ` Aditya Mahajan
2011-08-08 17:47 ` Aditya Mahajan
2011-08-22 5:10 ` Glen Callaghan
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).