Comprehensive TeX Archive Network

afterpage – Execute command after the next page break

Im­ple­ments a com­mand that causes the com­mands spec­i­fied in its ar­gu­ment to be ex­panded af­ter the cur­rent page is out­put. For ex­am­ple, 's float po­si­tion­ing mech­a­nism some­times gets over­loaded and all float­ing fig­ures and ta­ble drift to the end of the doc­u­ment. One may flush out all the un­pro­cessed floats by is­su­ing a \clearpage com­mand, but this has the ef­fect of mak­ing the cur­rent page end pre­ma­turely. Now you can is­sue \af­ter­page{\clearpage} and the cur­rent page will be filled up with text as usual, but then the \clearpage com­mand will flush out all the floats be­fore the next text page be­gins.

This pack­age is part of the la­tex-tools bun­dle in the re­quired dis­tri­bu­tion.

Sources /macros/latex/required/tools
Ver­sion 1.08
Li­cense The Project Public Li­cense 1.3
Main­tainer David Carlisle
The Team
TDS archive latex-tools.tds.zip
Con­tained in TeX Live as tools
MiKTeX as tools
Topics sup­port for de­vel­op­ment of macros

Down­load the con­tents of this pack­age in one zip archive (6.5M).

Com­mu­nity Com­ments

Guest Book Sitemap Contact Contact Author