# How to create \pagebreak-like command that actually "breaks'' the page?

I want to create a \pagebreak variant that reduces the page (in which the \pagebreak was made) size so that there's NO (besides bottom margin) blank space after the page break. Is that even possible (the output could have pages of different size each)?

-
Welcome to TeX.SE! –  Vivi Dec 21 '12 at 1:37
See the code listed in this post. tex.stackexchange.com/questions/40911/… If you use XeTeX, the answer to that post is necessary. –  GregH Dec 21 '12 at 4:29

After reading the post referenced by GregH I found that pasting the followings line into preamble is almost what I wanted:

\usepackage{everyshi}
\pagestyle{empty}
\textheight500cm
\pdfpageheight500cm
\EveryShipout{\pdfpageheight=\pagetotal

It seems to work well when \documentclass is article (although I wouldn't use the default \textheight of 500cm), but it doesn't work for amsart: for instance everything between a \[small|med|big]skip and the next \pagebreak is cutted off; moreover, some items on itemize/enumerate environments are also cutted.