Process remaining floats
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
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 -----------------------------------------------------------------
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
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 ___________________________________________________________________________________
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
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 ___________________________________________________________________________________
participants (3)
-
Aditya Mahajan
-
Glen Callaghan
-
Hans Hagen