* Disabling Floats on certain pages
@ 2001-06-14 16:11 Taco Hoekwater
2001-06-14 16:12 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Taco Hoekwater @ 2001-06-14 16:11 UTC (permalink / raw)
Hi all,
Sometimes I want to prevent floats from appearing on a certain page
(like e.g. the title page). I now have a macro that seems to work, but
it is extremely ugly. Does anyone know of a cleaner way to do this
(besides testing if \beforefinaloutput really is empty)?
\def\nofloatsonthispage{%
\gdef\beforefinaloutput{% for this page
\global\nofloatpermittedtrue
\gdef\beforefinaloutput{% for the next page
\global\nofloatpermittedfalse
\gdef\beforefinaloutput{}% for all following pages
}%
}%
Greetings, Taco
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Disabling Floats on certain pages
2001-06-14 16:11 Disabling Floats on certain pages Taco Hoekwater
@ 2001-06-14 16:12 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-06-14 16:12 UTC (permalink / raw)
Cc: ntg-context
At 04:11 PM 6/14/01 +0000, Taco Hoekwater wrote:
>Hi all,
>
>Sometimes I want to prevent floats from appearing on a certain page
>(like e.g. the title page). I now have a macro that seems to work, but
>it is extremely ugly. Does anyone know of a cleaner way to do this
>(besides testing if \beforefinaloutput really is empty)?
>
>\def\nofloatsonthispage{%
> \gdef\beforefinaloutput{% for this page
> \global\nofloatpermittedtrue
> \gdef\beforefinaloutput{% for the next page
> \global\nofloatpermittedfalse
> \gdef\beforefinaloutput{}% for all following pages
> }%
>}%
slightly cleaner is this:
\def\nofloatsonthispage%
{\global\nofloatspermittedtrue
\gdef\checkfloatpermissions{\global\nofloatspermittedfalse}}
\def\nofloatsonnextpage%
{\global\let\checkfloatpermissions\nofloatsonthispage}
\appendtoks
\checkfloatpermissions
\global\let\checkfloatpermissions\relax
\to \aftereverypage
! ! ! ! untested ! ! ! !
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-14 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-14 16:11 Disabling Floats on certain pages Taco Hoekwater
2001-06-14 16:12 ` Hans Hagen
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).