6

I need to change a page bottom margin, but do that for the first page of ToC only. Sure thing the following does not work as it adjusts all pages of ToC:

{
  % bottom margin must be bigger
  \changepage{-35mm}{}{}{}{}{}{}{}{}
  \tableofcontents
}

So \changepage should be somehow "injected" into \tableofcontens to detect and apply to the first page only.

I need some special LaTeX magic. Please assist.

Update. \changepage may not be used with \addtocontens, but Stefan's suggestion helped:

\addtocontents{toc}{\protect\enlargethispage{-35mm}}
\clearpage
\tableofcontents

I have another problem now (create a separate question?): i'm looking for some general approach, kind of "apply these change to the current page only; limit the scope they affect". Namely: i have to put such frame on the first ToC page, and such one on the rest of ToC pages. (I have frames as PDFs, so i just don't know how to ask LaTeX to place them in required order; tried afterpage and wallpaper packages.)

  • Har you thought about messing with the distance between items in the ToC? Usually they do not contain any shrink or stretch, adding that often helps of the ToC spills a few lines onto page two. – daleif Jun 3 '11 at 11:06
  • 1
    With regard to your update, you should indeed ask a follow-up question. – lockstep Jun 3 '11 at 12:23
  • @daeif If i got you right, it won't help as my ToC is 4 pages long ATM (: – Maxim Vuets Jun 3 '11 at 13:16
  • then I do not understand your need to make the first page longer? I may end up looking odd in the over all design – daleif Jun 3 '11 at 13:18
  • @daleif, i needed that in regard of different frames per ToC pages. Such (if you wish) strange requirements of my master's thesis. – Maxim Vuets Jun 5 '11 at 5:10
5

You can use \addtocontents for this. \enlargethispage is another command you could use. For example:

\addtocontents{toc}{\protect\enlargethispage{35mm}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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