Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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)?

share|improve this question
    
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

1 Answer 1

up vote 2 down vote accepted

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
\advance\pdfpageheight by 2in
\advance\pdfpageheight by 2\topmargin
\advance\pdfpageheight by \footskip
\advance\pdfpageheight by \textheight
\advance\pdfpageheight by -\pagegoal}

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.

So, I guess it might be usefull for some, I'm still looking for a way that at least works with amsart..

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.