<?xml version="1.0"?>
<!DOCTYPE entry SYSTEM "../catalogue.dtd">
<entry id="afterpage"
       datestamp="1998/08/13" 
       modifier="Graham.Williams@cmis.csiro.au">
  <about>
    <name>afterpage</name>
    <caption>Execute command after each page.</caption>
    <author>
      <name>David Carlisle</name>
      <email>davidc@nag.co.uk</email>
    </author>
    <license type="lppl"/>
      <version>
        <number>1.08</number>
      </version>
  </about>
  <description>
    <abstract>
      Implements a command that causes the commands specified
      in its argument to be expanded after the curent page is
      output. Useful to flush floats, for example. For example,
      LaTeX's float positioning mechanism sometimes gets overloaded
      and all floating figures and table drift to the end of the
      document. One may flush out all the unprocessed floats by
      issuing a \clearpage command, but this has the effect of
      making the current page end prematurely. Now you can issue
      \afterpage{\clearpage} and the current page will be filled
      up with text as usual, but then a \clearpage| command will
      flush out all the floats before the next text page begins.
    </abstract>
    <documentation location="http" type="pdf">http://www.cmis.csiro.au/Graham.Williams/TeX/docs/afterpage.pdf</documentation>
  </description>
  <distribution>
    <ctan>macros/latex/required/tools</ctan>
    <tetex/>
  </distribution>
</entry>

